Record Class CollectingNeighborUpdater.ShapeUpdate
java.lang.Object
java.lang.Record
net.minecraft.world.level.redstone.CollectingNeighborUpdater.ShapeUpdate
- All Implemented Interfaces:
- CollectingNeighborUpdater.NeighborUpdates
- Enclosing class:
- CollectingNeighborUpdater
static record CollectingNeighborUpdater.ShapeUpdate(Direction direction, BlockState state, BlockPos pos, BlockPos neighborPos, int updateFlags, int updateLimit)
extends Record
implements CollectingNeighborUpdater.NeighborUpdates
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final DirectionThe field for thedirectionrecord component.private final BlockPosThe field for theneighborPosrecord component.private final BlockPosThe field for theposrecord component.private final BlockStateThe field for thestaterecord component.private final intThe field for theupdateFlagsrecord component.private final intThe field for theupdateLimitrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionShapeUpdate(Direction direction, BlockState state, BlockPos pos, BlockPos neighborPos, int updateFlags, int updateLimit) Creates an instance of aShapeUpdaterecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thedirectionrecord 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.booleanstate()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theupdateFlagsrecord component.intReturns the value of theupdateLimitrecord component.
- 
Field Details- 
directionThe field for thedirectionrecord component.
- 
stateThe field for thestaterecord component.
- 
posThe field for theposrecord component.
- 
neighborPosThe field for theneighborPosrecord component.
- 
updateFlagsprivate final int updateFlagsThe field for theupdateFlagsrecord component.
- 
updateLimitprivate final int updateLimitThe field for theupdateLimitrecord component.
 
- 
- 
Constructor Details- 
ShapeUpdateShapeUpdate(Direction direction, BlockState state, BlockPos pos, BlockPos neighborPos, int updateFlags, int updateLimit) Creates an instance of aShapeUpdaterecord class.- Parameters:
- direction- the value for the- directionrecord component
- state- the value for the- staterecord component
- pos- the value for the- posrecord component
- neighborPos- the value for the- neighborPosrecord component
- updateFlags- the value for the- updateFlagsrecord component
- updateLimit- the value for the- updateLimitrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
directionReturns the value of thedirectionrecord component.- Returns:
- the value of the directionrecord component
 
- 
stateReturns the value of thestaterecord component.- Returns:
- the value of the staterecord component
 
- 
posReturns the value of theposrecord component.- Returns:
- the value of the posrecord component
 
- 
neighborPosReturns the value of theneighborPosrecord component.- Returns:
- the value of the neighborPosrecord component
 
- 
updateFlagspublic int updateFlags()Returns the value of theupdateFlagsrecord component.- Returns:
- the value of the updateFlagsrecord component
 
- 
updateLimitpublic int updateLimit()Returns the value of theupdateLimitrecord component.- Returns:
- the value of the updateLimitrecord component
 
 
-