Package net.minecraft.world.level.block
Interface SideChainPartBlock
- All Known Implementing Classes:
ShelfBlock
public interface SideChainPartBlock
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic interfacestatic final recordstatic final record -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddBlocksConnectingTowards(IntFunction<SideChainPartBlock.Neighbor> pNeighborGetter, SideChainPart pPart, Consumer<BlockPos> pOutput) private booleancanConnect(int pSegmentLength, int pCurrentChainLength) getAllBlocksConnectedTo(LevelAccessor pLevel, BlockPos pPos) getFacing(BlockState pState) intprivate SideChainPartBlock.NeighborsgetNeighbors(LevelAccessor pLevel, BlockPos pPos, Direction pFacing) getSideChainPart(BlockState pState) private booleanisBeingUpdatedByNeighbor(BlockState pState, BlockState pOldState) booleanisConnectable(BlockState pState) default voidsetPart(LevelAccessor pLevel, BlockPos pPos, SideChainPart pPart) setSideChainPart(BlockState pState, SideChainPart pSideChainPart) default voidupdateNeighborsAfterPoweringDown(LevelAccessor pLevel, BlockPos pPos, BlockState pState) default voidupdateSelfAndNeighborsOnPoweringUp(LevelAccessor pLevel, BlockPos pPos, BlockState pState, BlockState pOldState)
-
Method Details
-
getSideChainPart
-
setSideChainPart
-
getFacing
-
isConnectable
-
getMaxChainLength
int getMaxChainLength() -
getAllBlocksConnectedTo
-
addBlocksConnectingTowards
private void addBlocksConnectingTowards(IntFunction<SideChainPartBlock.Neighbor> pNeighborGetter, SideChainPart pPart, Consumer<BlockPos> pOutput) -
updateNeighborsAfterPoweringDown
default void updateNeighborsAfterPoweringDown(LevelAccessor pLevel, BlockPos pPos, BlockState pState) -
updateSelfAndNeighborsOnPoweringUp
default void updateSelfAndNeighborsOnPoweringUp(LevelAccessor pLevel, BlockPos pPos, BlockState pState, BlockState pOldState) -
canConnect
private boolean canConnect(int pSegmentLength, int pCurrentChainLength) -
isBeingUpdatedByNeighbor
-
getNeighbors
private SideChainPartBlock.Neighbors getNeighbors(LevelAccessor pLevel, BlockPos pPos, Direction pFacing) -
setPart
-