Interface NeighborUpdater
- All Known Implementing Classes:
CollectingNeighborUpdater,InstantNeighborUpdater
public interface NeighborUpdater
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidexecuteShapeUpdate(LevelAccessor level, Direction direction, BlockPos pos, BlockPos neighborPos, BlockState neighborState, int flags, int recursionLeft) static voidexecuteUpdate(Level level, BlockState state, BlockPos pos, Block neighborBlock, Orientation orientation, boolean movedByPiston) voidneighborChanged(BlockPos pos, Block neighborBlock, Orientation orientation) voidneighborChanged(BlockState state, BlockPos pos, Block neighborBlock, Orientation orientation, boolean movedByPiston) voidshapeUpdate(Direction direction, BlockState state, BlockPos pos, BlockPos neighborPos, int flags, int recursionLevel) default voidupdateNeighborsAtExceptFromFacing(BlockPos pos, Block block, Direction facing, Orientation orientation)
-
Field Details
-
UPDATE_ORDER
-
-
Method Details
-
shapeUpdate
void shapeUpdate(Direction direction, BlockState state, BlockPos pos, BlockPos neighborPos, int flags, int recursionLevel) -
neighborChanged
-
neighborChanged
void neighborChanged(BlockState state, BlockPos pos, Block neighborBlock, @Nullable Orientation orientation, boolean movedByPiston) -
updateNeighborsAtExceptFromFacing
default void updateNeighborsAtExceptFromFacing(BlockPos pos, Block block, @Nullable Direction facing, @Nullable Orientation orientation) -
executeShapeUpdate
static void executeShapeUpdate(LevelAccessor level, Direction direction, BlockPos pos, BlockPos neighborPos, BlockState neighborState, int flags, int recursionLeft) -
executeUpdate
static void executeUpdate(Level level, BlockState state, BlockPos pos, Block neighborBlock, @Nullable Orientation orientation, boolean movedByPiston)
-