Record Class BakedModelRenderable.Context
java.lang.Object
java.lang.Record
net.neoforged.neoforge.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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionContext(@Nullable BlockState state, Direction[] faces, RandomSource randomSource, long seed, ModelData data, org.joml.Vector4f tint) Creates an instance of aContextrecord class.
- 
Method SummaryModifier 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- 
stateThe field for thestaterecord component.
- 
facesThe field for thefacesrecord component.
- 
randomSourceThe field for therandomSourcerecord component.
- 
seedprivate final long seedThe field for theseedrecord component.
- 
dataThe field for thedatarecord component.
- 
tintprivate final org.joml.Vector4f tintThe field for thetintrecord component.
- 
ALL_FACES_AND_NULL
- 
WHITEprivate static final org.joml.Vector4f WHITE
 
- 
- 
Constructor Details- 
Context
- 
Contextpublic 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 the- staterecord component
- faces- the value for the- facesrecord component
- randomSource- the value for the- randomSourcerecord component
- seed- the value for the- seedrecord component
- data- the value for the- datarecord component
- tint- the value for the- tintrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
stateReturns the value of thestaterecord component.- Returns:
- the value of the staterecord component
 
- 
facesReturns the value of thefacesrecord component.- Returns:
- the value of the facesrecord component
 
- 
randomSourceReturns the value of therandomSourcerecord component.- Returns:
- the value of the randomSourcerecord component
 
- 
seedpublic long seed()Returns the value of theseedrecord component.- Returns:
- the value of the seedrecord component
 
- 
dataReturns the value of thedatarecord component.- Returns:
- the value of the datarecord component
 
- 
tintpublic org.joml.Vector4f tint()Returns the value of thetintrecord component.- Returns:
- the value of the tintrecord component
 
 
-