Class GoldRenderer.GoldTextureInstance

java.lang.Object
com.wdiscute.starcatcher.shaders.GoldRenderer.GoldTextureInstance
All Implemented Interfaces:
AutoCloseable
Enclosing class:
GoldRenderer

public static class GoldRenderer.GoldTextureInstance extends Object implements AutoCloseable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.client.renderer.RenderType
     
    final net.minecraft.client.renderer.texture.DynamicTexture
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    GoldTextureInstance(net.minecraft.resources.ResourceLocation loc, Function<net.minecraft.resources.ResourceLocation,net.minecraft.client.renderer.RenderType> renderTypeGetter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    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.NativeImage
    getNativeImage(net.minecraft.resources.ResourceLocation loc)
     
    static net.minecraft.client.renderer.texture.DynamicTexture
    recolorTexture(com.mojang.blaze3d.platform.NativeImage image)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      close in interface AutoCloseable