Class RenderTypeToken
java.lang.Object
team.lodestar.lodestone.systems.rendering.rendeertype.RenderTypeToken
- Direct Known Subclasses:
ComplexRenderTypeToken
A token representing a render type
Currently does not support a definition without a texture
Each unique token will create a unique render type and as such tokens are cached depending on the texture.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionRenderTypeToken(UUID identifier, net.minecraft.resources.ResourceLocation texture) protectedRenderTypeToken(net.minecraft.client.renderer.RenderStateShard.TextureStateShard texture) protectedRenderTypeToken(net.minecraft.resources.ResourceLocation texture) -
Method Summary
Modifier and TypeMethodDescriptionaddUniformHandler(Consumer<ShaderUniformHandler> uniformHandler) addUniformHandler(ShaderUniformHandler uniformHandler) static RenderTypeTokencreateToken(net.minecraft.client.renderer.RenderStateShard.TextureStateShard texture) static RenderTypeTokencreateToken(net.minecraft.resources.ResourceLocation texture) booleannet.minecraft.resources.ResourceLocationinthashCode()toString()protected RenderTypeTokenunique()
-
Constructor Details
-
RenderTypeToken
protected RenderTypeToken(net.minecraft.client.renderer.RenderStateShard.TextureStateShard texture) -
RenderTypeToken
protected RenderTypeToken(net.minecraft.resources.ResourceLocation texture) -
RenderTypeToken
-
-
Method Details
-
createToken
-
createToken
public static RenderTypeToken createToken(net.minecraft.client.renderer.RenderStateShard.TextureStateShard texture) -
addUniformHandler
-
addUniformHandler
-
addModifier
public ComplexRenderTypeToken addModifier(Consumer<LodestoneRenderTypes.LodestoneCompositeStateBuilder> modifier) -
unique
-
getIdentifier
-
getTexture
public net.minecraft.resources.ResourceLocation getTexture() -
toString
-
equals
-
hashCode
public int hashCode()
-