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.resources.Identifier
     
    final net.minecraft.client.renderer.rendertype.RenderType
     
    final net.minecraft.client.renderer.texture.DynamicTexture
     
  • Constructor Summary

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

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

    Methods inherited from class 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 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:
      close in interface AutoCloseable