Package com.wdiscute.starcatcher.shaders
Class GoldRenderer
java.lang.Object
com.wdiscute.starcatcher.shaders.GoldRenderer
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Map<net.minecraft.resources.ResourceLocation, GoldRenderer.GoldTextureInstance> static final GoldRenderer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static net.minecraft.client.renderer.texture.TextureAtlasSpritegetItemSprite(net.minecraft.world.item.ItemStack stack) getOrCreateEntity(net.minecraft.resources.ResourceLocation loc, Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.renderer.RenderType> renderTypeGetter) getOrCreateItem(net.minecraft.world.item.ItemStack stack, boolean cull) static net.minecraft.resources.ResourceLocationgetTextureLoc(net.minecraft.resources.ResourceLocation resourceLoc)
-
Field Details
-
cache
-
INSTANCE
-
-
Constructor Details
-
GoldRenderer
public GoldRenderer()
-
-
Method Details
-
getItemSprite
public static net.minecraft.client.renderer.texture.TextureAtlasSprite getItemSprite(net.minecraft.world.item.ItemStack stack) -
getTextureLoc
public static net.minecraft.resources.ResourceLocation getTextureLoc(net.minecraft.resources.ResourceLocation resourceLoc) -
getOrCreateItem
public GoldRenderer.GoldTextureInstance getOrCreateItem(net.minecraft.world.item.ItemStack stack, boolean cull) -
getOrCreateEntity
public GoldRenderer.GoldTextureInstance getOrCreateEntity(net.minecraft.resources.ResourceLocation loc, Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.renderer.RenderType> renderTypeGetter) -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-