Record Class Display.BlockDisplay.BlockRenderState
java.lang.Object
java.lang.Record
net.minecraft.world.entity.Display.BlockDisplay.BlockRenderState
- Enclosing class:
Display.BlockDisplay
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockStateThe field for theblockStaterecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBlockRenderState(BlockState blockState) Creates an instance of aBlockRenderStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockStaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
blockState
The field for theblockStaterecord component.
-
-
Constructor Details
-
BlockRenderState
Creates an instance of aBlockRenderStaterecord class.- Parameters:
blockState- the value for theblockStaterecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
blockState
Returns the value of theblockStaterecord component.- Returns:
- the value of the
blockStaterecord component
-