Record Class BakedModelRenderable.Context
java.lang.Object
java.lang.Record
net.minecraftforge.client.model.renderable.BakedModelRenderable.Context
- Enclosing class:
BakedModelRenderable
public static record BakedModelRenderable.Context(@Nullable BlockState state, Direction[] faces, RandomSource randomSource, long seed, ModelData data, org.joml.Vector4f tint)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Direction[]
private final ModelData
The field for thedata
record component.private final Direction[]
The field for thefaces
record component.private final RandomSource
The field for therandomSource
record component.private final long
The field for theseed
record component.private final @Nullable BlockState
The field for thestate
record component.private final org.joml.Vector4f
The field for thetint
record component.private static final org.joml.Vector4f
-
Constructor Summary
ConstructorDescriptionContext
(@Nullable BlockState state, Direction[] faces, RandomSource randomSource, long seed, ModelData data, org.joml.Vector4f tint) Creates an instance of aContext
record class. -
Method Summary
Modifier and TypeMethodDescriptiondata()
Returns the value of thedata
record component.final boolean
Indicates whether some other object is "equal to" this one.faces()
Returns the value of thefaces
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of therandomSource
record component.long
seed()
Returns the value of theseed
record component.@Nullable BlockState
state()
Returns the value of thestate
record component.org.joml.Vector4f
tint()
Returns the value of thetint
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
state
The field for thestate
record component. -
faces
The field for thefaces
record component. -
randomSource
The field for therandomSource
record component. -
seed
private final long seedThe field for theseed
record component. -
data
The field for thedata
record component. -
tint
private final org.joml.Vector4f tintThe field for thetint
record component. -
ALL_FACES_AND_NULL
-
WHITE
private static final org.joml.Vector4f WHITE
-
-
Constructor Details
-
Context
-
Context
public Context(@Nullable @Nullable BlockState state, Direction[] faces, RandomSource randomSource, long seed, ModelData data, org.joml.Vector4f tint) Creates an instance of aContext
record class.- Parameters:
state
- the value for thestate
record componentfaces
- the value for thefaces
record componentrandomSource
- the value for therandomSource
record componentseed
- the value for theseed
record componentdata
- the value for thedata
record componenttint
- the value for thetint
record component
-
-
Method Details
-
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. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
state
Returns the value of thestate
record component.- Returns:
- the value of the
state
record component
-
faces
Returns the value of thefaces
record component.- Returns:
- the value of the
faces
record component
-
randomSource
Returns the value of therandomSource
record component.- Returns:
- the value of the
randomSource
record component
-
seed
public long seed()Returns the value of theseed
record component.- Returns:
- the value of the
seed
record component
-
data
Returns the value of thedata
record component.- Returns:
- the value of the
data
record component
-
tint
public org.joml.Vector4f tint()Returns the value of thetint
record component.- Returns:
- the value of the
tint
record component
-