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.resources.Identifierfinal net.minecraft.client.renderer.rendertype.RenderTypefinal net.minecraft.client.renderer.texture.DynamicTexture -
Constructor Summary
ConstructorsConstructorDescriptionGoldTextureInstance(net.minecraft.resources.Identifier loc, Function<net.minecraft.resources.Identifier, net.minecraft.client.renderer.rendertype.RenderType> renderTypeGetter) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()fromEntity(net.minecraft.resources.Identifier loc, Function<net.minecraft.resources.Identifier, net.minecraft.client.renderer.rendertype.RenderType> renderTypeGetter) fromItemStack(net.minecraft.resources.Identifier loc, net.minecraft.client.resources.model.geometry.BakedQuad quad) static com.mojang.blaze3d.platform.NativeImagegetNativeImage(net.minecraft.resources.Identifier loc) static net.minecraft.client.renderer.texture.DynamicTexturerecolorTexture(com.mojang.blaze3d.platform.NativeImage image, String label)
-
Field Details
-
texture
public final net.minecraft.client.renderer.texture.DynamicTexture texture -
renderType
public final net.minecraft.client.renderer.rendertype.RenderType renderType -
id
public final net.minecraft.resources.Identifier id
-
-
Constructor Details
-
GoldTextureInstance
public GoldTextureInstance(net.minecraft.resources.Identifier loc, Function<net.minecraft.resources.Identifier, net.minecraft.client.renderer.rendertype.RenderType> renderTypeGetter)
-
-
Method Details
-
fromItemStack
public static GoldRenderer.GoldTextureInstance fromItemStack(net.minecraft.resources.Identifier loc, net.minecraft.client.resources.model.geometry.BakedQuad quad) -
fromEntity
public static GoldRenderer.GoldTextureInstance fromEntity(net.minecraft.resources.Identifier loc, Function<net.minecraft.resources.Identifier, net.minecraft.client.renderer.rendertype.RenderType> renderTypeGetter) -
getNativeImage
public static com.mojang.blaze3d.platform.NativeImage getNativeImage(net.minecraft.resources.Identifier loc) -
recolorTexture
public static net.minecraft.client.renderer.texture.DynamicTexture recolorTexture(com.mojang.blaze3d.platform.NativeImage image, String label) -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-