net.minecraft.world.block

public class ChainRestrictedNeighborUpdater

implements NeighborUpdater

net.minecraft.world.level.redstone.CollectingNeighborUpdater
net.minecraft.class_7159
net.minecraft.world.block.ChainRestrictedNeighborUpdater

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_37829
LOGGER
private final World
level
field_37830
world
private final int
maxChainedNeighborUpdates
field_38276
maxChainDepth
private final ArrayDeque<ChainRestrictedNeighborUpdater$Entry>
stack
field_37831
queue
private final List<ChainRestrictedNeighborUpdater$Entry>
addedThisLayer
field_37832
pending
private int
count
field_37833
depth
private Consumer<BlockPos>
debugListener
field_62924
neighborUpdateCallback

Constructor summary

ModifierConstructor
public (World world, int maxChainDepth)

Method summary

Modifier and TypeMethod
public void
setDebugListener(Consumer<BlockPos> debugListener)
method_74694(Consumer<class_2338> arg0)
setNeighborUpdateCallback(Consumer<BlockPos> neighborUpdateCallback)
public void
shapeUpdate(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int updateFlags, int updateLimit)
method_42392(class_2350 arg0, class_2680 arg1, class_2338 arg2, class_2338 arg3, int arg4, int arg5)
replaceWithStateForNeighborUpdate(Direction arg0, BlockState arg1, BlockPos arg2, BlockPos arg3, int arg4, int arg5)
public void
neighborChanged(BlockPos pos, Block block, Orientation orientation)
method_41704(class_2338 arg0, class_2248 arg1, class_9904 arg2)
updateNeighbor(BlockPos arg0, Block arg1, WireOrientation arg2)
public void
neighborChanged(BlockState state, BlockPos pos, Block block, Orientation orientation, boolean movedByPiston)
method_41703(class_2680 arg0, class_2338 arg1, class_2248 arg2, class_9904 arg3, boolean arg4)
updateNeighbor(BlockState arg0, BlockPos arg1, Block arg2, WireOrientation arg3, boolean arg4)
public void
updateNeighborsAtExceptFromFacing(BlockPos pos, Block block, Direction skipDirection, Orientation orientation)
method_41705(class_2338 arg0, class_2248 arg1, class_2350 arg2, class_9904 arg3)
updateNeighbors(BlockPos arg0, Block arg1, Direction arg2, WireOrientation arg3)
private void
addAndRun(BlockPos pos, CollectingNeighborUpdater$NeighborUpdates update)
method_41706(class_2338 arg0, class_7159$class_7162 arg1)
enqueue(BlockPos pos, ChainRestrictedNeighborUpdater$Entry entry)
private void
runUpdates()
method_41702()
runQueuedUpdates()