Package net.minecraft.world.level.block
Record Class PitcherCropBlock.PosAndState
java.lang.Object
java.lang.Record
net.minecraft.world.level.block.PitcherCropBlock.PosAndState
- Enclosing class:
- PitcherCropBlock
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final BlockPosThe field for theposrecord component.private final BlockStateThe field for thestaterecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionPosAndState(BlockPos pos, BlockState state) Creates an instance of aPosAndStaterecord class.
- 
Method SummaryModifier 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- 
posThe field for theposrecord component.
- 
stateThe field for thestaterecord component.
 
- 
- 
Constructor Details- 
PosAndStatePosAndState(BlockPos pos, BlockState state) Creates an instance of aPosAndStaterecord class.- Parameters:
- pos- the value for the- posrecord component
- state- the value for the- staterecord 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. All components in this record class are compared withObjects::equals(Object,Object).
- 
posReturns the value of theposrecord component.- Returns:
- the value of the posrecord component
 
- 
stateReturns the value of thestaterecord component.- Returns:
- the value of the staterecord component
 
 
-