Java Code Examples for net.minecraft.client.texture.SpriteAtlasTexture#Data
The following examples show how to use
net.minecraft.client.texture.SpriteAtlasTexture#Data .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MixinSpriteAtlasTexture.java From patchwork-api with GNU Lesser General Public License v2.1 | 4 votes |
@Inject(method = "stitch", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/texture/SpriteAtlasTexture;loadSprites(Lnet/minecraft/resource/ResourceManager;Ljava/util/Set;)Ljava/util/Collection;", ordinal = 0), locals = LocalCapture.CAPTURE_FAILHARD) private void onStitch(ResourceManager resourceManager, Iterable<Identifier> iterable, Profiler profiler, CallbackInfoReturnable<SpriteAtlasTexture.Data> cir, Set<Identifier> set) { RenderEvents.onTextureStitchPre((SpriteAtlasTexture) (Object) this, set); }
Example 2
Source File: MixinSpriteAtlasTexture.java From patchwork-api with GNU Lesser General Public License v2.1 | 4 votes |
@Inject(method = "upload", at = @At("RETURN")) private void onUpload(SpriteAtlasTexture.Data data, CallbackInfo ci) { RenderEvents.onTextureStitchPost((SpriteAtlasTexture) (Object) this); }