Record Class PitcherCropBlock.PosAndState
java.lang.Object
java.lang.Record
net.minecraft.world.level.block.PitcherCropBlock.PosAndState
- Enclosing class:
PitcherCropBlock
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockPosThe field for theposrecord component.private final BlockStateThe field for thestaterecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePosAndState(BlockPos pos, BlockState state) Creates an instance of aPosAndStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pos()Returns the value of theposrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pos
The field for theposrecord component. -
state
The field for thestaterecord component.
-
-
Constructor Details
-
PosAndState
Creates an instance of aPosAndStaterecord class.- Parameters:
pos- the value for theposrecord componentstate- the value for thestaterecord 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). -
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-