Record Class RenderTypeProvider.RenderTypeProviderKey
java.lang.Object
java.lang.Record
team.lodestar.lodestone.systems.rendering.rendeertype.RenderTypeProvider.RenderTypeProviderKey
- Enclosing class:
RenderTypeProvider
public static record RenderTypeProvider.RenderTypeProviderKey(RenderTypeToken token, ShaderUniformHandler uniformHandler, Consumer<LodestoneRenderTypes.LodestoneCompositeStateBuilder> modifier)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRenderTypeProviderKey(RenderTypeToken token, Consumer<LodestoneRenderTypes.LodestoneCompositeStateBuilder> modifier) RenderTypeProviderKey(RenderTypeToken token, ShaderUniformHandler uniformHandler) RenderTypeProviderKey(RenderTypeToken token, ShaderUniformHandler uniformHandler, Consumer<LodestoneRenderTypes.LodestoneCompositeStateBuilder> modifier) Creates an instance of aRenderTypeProviderKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.modifier()Returns the value of themodifierrecord component.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuniformHandlerrecord component.
-
Constructor Details
-
RenderTypeProviderKey
-
RenderTypeProviderKey
-
RenderTypeProviderKey
public RenderTypeProviderKey(RenderTypeToken token, Consumer<LodestoneRenderTypes.LodestoneCompositeStateBuilder> modifier) -
RenderTypeProviderKey
public RenderTypeProviderKey(RenderTypeToken token, ShaderUniformHandler uniformHandler, Consumer<LodestoneRenderTypes.LodestoneCompositeStateBuilder> modifier) Creates an instance of aRenderTypeProviderKeyrecord class.- Parameters:
token- the value for thetokenrecord componentuniformHandler- the value for theuniformHandlerrecord componentmodifier- the value for themodifierrecord component
-
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
uniformHandler
Returns the value of theuniformHandlerrecord component.- Returns:
- the value of the
uniformHandlerrecord component
-
modifier
Returns the value of themodifierrecord component.- Returns:
- the value of the
modifierrecord component
-