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
FieldsModifier and TypeFieldDescriptionprivate static final Direction[]private final ModelDataThe field for thedatarecord component.private final Direction[]The field for thefacesrecord component.private final RandomSourceThe field for therandomSourcerecord component.private final longThe field for theseedrecord component.private final @Nullable BlockStateThe field for thestaterecord component.private final org.joml.Vector4fThe field for thetintrecord component.private static final org.joml.Vector4f -
Constructor Summary
ConstructorsConstructorDescriptionContext(@Nullable BlockState state, Direction[] faces, RandomSource randomSource, long seed, ModelData data, org.joml.Vector4f tint) Creates an instance of aContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.faces()Returns the value of thefacesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of therandomSourcerecord component.longseed()Returns the value of theseedrecord component.@Nullable BlockStatestate()Returns the value of thestaterecord component.org.joml.Vector4ftint()Returns the value of thetintrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
state
The field for thestaterecord component. -
faces
The field for thefacesrecord component. -
randomSource
The field for therandomSourcerecord component. -
seed
private final long seedThe field for theseedrecord component. -
data
The field for thedatarecord component. -
tint
private final org.joml.Vector4f tintThe field for thetintrecord 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 aContextrecord class.- Parameters:
state- the value for thestaterecord componentfaces- the value for thefacesrecord componentrandomSource- the value for therandomSourcerecord componentseed- the value for theseedrecord componentdata- the value for thedatarecord componenttint- the value for thetintrecord 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 thestaterecord component.- Returns:
- the value of the
staterecord component
-
faces
Returns the value of thefacesrecord component.- Returns:
- the value of the
facesrecord component
-
randomSource
Returns the value of therandomSourcerecord component.- Returns:
- the value of the
randomSourcerecord component
-
seed
public long seed()Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
tint
public org.joml.Vector4f tint()Returns the value of thetintrecord component.- Returns:
- the value of the
tintrecord component
-