Record Class CollectingNeighborUpdater.SimpleNeighborUpdate
java.lang.Object
java.lang.Record
net.minecraft.world.level.redstone.CollectingNeighborUpdater.SimpleNeighborUpdate
- All Implemented Interfaces:
- CollectingNeighborUpdater.NeighborUpdates
- Enclosing class:
- CollectingNeighborUpdater
static record CollectingNeighborUpdater.SimpleNeighborUpdate(BlockPos pos, Block block, BlockPos neighborPos)
extends Record
implements CollectingNeighborUpdater.NeighborUpdates
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionSimpleNeighborUpdate(BlockPos pos, Block block, BlockPos neighborPos) Creates an instance of aSimpleNeighborUpdaterecord class.
- 
Method SummaryModifier and TypeMethodDescriptionblock()Returns the value of theblockrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theneighborPosrecord component.pos()Returns the value of theposrecord component.booleanfinal StringtoString()Returns a string representation of this record class.
- 
Field Details- 
posThe field for theposrecord component.
- 
blockThe field for theblockrecord component.
- 
neighborPosThe field for theneighborPosrecord component.
 
- 
- 
Constructor Details- 
SimpleNeighborUpdateCreates an instance of aSimpleNeighborUpdaterecord class.- Parameters:
- pos- the value for the- posrecord component
- block- the value for the- blockrecord component
- neighborPos- the value for the- neighborPosrecord component
 
 
- 
- 
Method Details- 
runNext- Specified by:
- runNextin interface- CollectingNeighborUpdater.NeighborUpdates
 
- 
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
 
- 
blockReturns the value of theblockrecord component.- Returns:
- the value of the blockrecord component
 
- 
neighborPosReturns the value of theneighborPosrecord component.- Returns:
- the value of the neighborPosrecord component
 
 
-