net.minecraft.block

public interface SideChaining

net.minecraft.world.level.block.SideChainPartBlock
net.minecraft.class_11587
net.minecraft.block.SideChaining

Method summary

Modifier and TypeMethod
SideChainPart
getSideChainPart(BlockState state)
method_72619(class_2680 arg0)
getSideChainPart(BlockState state)
BlockState
setSideChainPart(BlockState state, SideChainPart newPart)
method_72617(class_2680 arg0, class_11598 arg1)
withSideChainPart(BlockState state, SideChainPart sideChainPart)
Direction
getFacing(BlockState state)
method_72620(class_2680 arg0)
getFacing(BlockState state)
boolean
isConnectable(BlockState state)
method_72621(class_2680 arg0)
canChainWith(BlockState state)
int
getMaxChainLength()
method_72618()
getMaxSideChainLength()
default List<BlockPos>
getAllBlocksConnectedTo(LevelAccessor level, BlockPos pos)
method_72623(class_1936 arg0, class_2338 arg1)
getPositionsInChain(WorldAccess world, BlockPos pos)
private void
addBlocksConnectingTowards(IntFunction<SideChainPartBlock$Neighbor> getNeighbor, SideChainPart endPart, Consumer<BlockPos> accumulator)
method_72628(IntFunction<class_11587$class_11589> arg0, class_11598 arg1, Consumer<class_2338> arg2)
forEachNeighborTowards(IntFunction<SideChaining$Neighbor> neighborGetter, SideChainPart part, Consumer<BlockPos> posConsumer)
default void
updateNeighborsAfterPoweringDown(LevelAccessor level, BlockPos pos, BlockState state)
method_72629(class_1936 arg0, class_2338 arg1, class_2680 arg2)
disconnectNeighbors(WorldAccess world, BlockPos pos, BlockState state)
default void
updateSelfAndNeighborsOnPoweringUp(LevelAccessor level, BlockPos pos, BlockState state, BlockState oldState)
method_72624(class_1936 arg0, class_2338 arg1, class_2680 arg2, class_2680 arg3)
connectNeighbors(WorldAccess world, BlockPos pos, BlockState state, BlockState oldState)
private boolean
canConnect(int newBlocksToConnectTo, int currentChainLength)
method_72622(int arg0, int arg1)
canAddChainLength(int chainLength, int toAdd)
private boolean
isBeingUpdatedByNeighbor(BlockState state, BlockState oldState)
method_72627(class_2680 arg0, class_2680 arg1)
isAlreadyConnected(BlockState state, BlockState oldState)
private SideChaining$Neighbors
getNeighbors(LevelAccessor level, BlockPos center, Direction facing)
method_72626(class_1936 arg0, class_2338 arg1, class_2350 arg2)
getNeighbors(WorldAccess world, BlockPos pos, Direction facing)
private void
setPart(LevelAccessor level, BlockPos pos, SideChainPart newPart)
method_72625(class_1936 arg0, class_2338 arg1, class_11598 arg2)
setSideChainPart(WorldAccess world, BlockPos pos, SideChainPart part)