Package com.wdiscute.starcatcher.shaders
Class GoldRenderer.GoldTextureInstance
java.lang.Object
com.wdiscute.starcatcher.shaders.GoldRenderer.GoldTextureInstance
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
GoldRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal net.minecraft.client.renderer.RenderTypefinal net.minecraft.client.renderer.texture.DynamicTexture -
Constructor Summary
ConstructorsConstructorDescriptionGoldTextureInstance(net.minecraft.resources.ResourceLocation loc, Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.renderer.RenderType> renderTypeGetter) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()fromEntity(net.minecraft.resources.ResourceLocation loc, Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.renderer.RenderType> renderTypeGetter) fromItemStack(net.minecraft.resources.ResourceLocation loc, boolean cull) static com.mojang.blaze3d.platform.NativeImagegetNativeImage(net.minecraft.resources.ResourceLocation loc) static net.minecraft.client.renderer.texture.DynamicTexturerecolorTexture(com.mojang.blaze3d.platform.NativeImage image)
-
Field Details
-
texture
public final net.minecraft.client.renderer.texture.DynamicTexture texture -
renderType
public final net.minecraft.client.renderer.RenderType renderType
-
-
Constructor Details
-
GoldTextureInstance
public GoldTextureInstance(net.minecraft.resources.ResourceLocation loc, Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.renderer.RenderType> renderTypeGetter)
-
-
Method Details
-
fromItemStack
public static GoldRenderer.GoldTextureInstance fromItemStack(net.minecraft.resources.ResourceLocation loc, boolean cull) -
fromEntity
public static GoldRenderer.GoldTextureInstance fromEntity(net.minecraft.resources.ResourceLocation loc, Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.renderer.RenderType> renderTypeGetter) -
getNativeImage
public static com.mojang.blaze3d.platform.NativeImage getNativeImage(net.minecraft.resources.ResourceLocation loc) -
recolorTexture
public static net.minecraft.client.renderer.texture.DynamicTexture recolorTexture(com.mojang.blaze3d.platform.NativeImage image) -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-