Class CollectingNeighborUpdater
java.lang.Object
net.minecraft.world.level.redstone.CollectingNeighborUpdater
- All Implemented Interfaces:
NeighborUpdater
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
(package private) static final class
(package private) static interface
(package private) static final record
(package private) static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<CollectingNeighborUpdater.NeighborUpdates>
private int
private final Level
private static final org.slf4j.Logger
private final int
private final ArrayDeque<CollectingNeighborUpdater.NeighborUpdates>
Fields inherited from interface net.minecraft.world.level.redstone.NeighborUpdater
UPDATE_ORDER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addAndRun
(BlockPos p_230661_, CollectingNeighborUpdater.NeighborUpdates p_230662_) void
neighborChanged
(BlockPos p_230653_, Block p_230654_, BlockPos p_230655_) void
neighborChanged
(BlockState p_230647_, BlockPos p_230648_, Block p_230649_, BlockPos p_230650_, boolean p_230651_) private void
void
shapeUpdate
(Direction p_230664_, BlockState p_230665_, BlockPos p_230666_, BlockPos p_230667_, int p_230668_, int p_230669_) void
updateNeighborsAtExceptFromFacing
(BlockPos p_230657_, Block p_230658_, Direction p_230659_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
level
-
maxChainedNeighborUpdates
private final int maxChainedNeighborUpdates -
stack
-
addedThisLayer
-
count
private int count
-
-
Constructor Details
-
CollectingNeighborUpdater
-
-
Method Details
-
shapeUpdate
public void shapeUpdate(Direction p_230664_, BlockState p_230665_, BlockPos p_230666_, BlockPos p_230667_, int p_230668_, int p_230669_) - Specified by:
shapeUpdate
in interfaceNeighborUpdater
-
neighborChanged
- Specified by:
neighborChanged
in interfaceNeighborUpdater
-
neighborChanged
public void neighborChanged(BlockState p_230647_, BlockPos p_230648_, Block p_230649_, BlockPos p_230650_, boolean p_230651_) - Specified by:
neighborChanged
in interfaceNeighborUpdater
-
updateNeighborsAtExceptFromFacing
public void updateNeighborsAtExceptFromFacing(BlockPos p_230657_, Block p_230658_, @Nullable Direction p_230659_) - Specified by:
updateNeighborsAtExceptFromFacing
in interfaceNeighborUpdater
-
addAndRun
-
runUpdates
private void runUpdates()
-