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 updateFlags, int updateLimit) static voidexecuteUpdate(Level level, BlockState state, BlockPos pos, Block changedBlock, @Nullable Orientation orientation, boolean movedByPiston) voidneighborChanged(BlockPos pos, Block changedBlock, @Nullable Orientation orientation) voidneighborChanged(BlockState state, BlockPos pos, Block changedBlock, @Nullable Orientation orientation, boolean movedByPiston) voidshapeUpdate(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int updateFlags, int updateLimit) default voidupdateNeighborsAtExceptFromFacing(BlockPos pos, Block block, @Nullable Direction skipDirection, @Nullable Orientation orientation)
-
Field Details
-
UPDATE_ORDER
-
-
Method Details
-
shapeUpdate
void shapeUpdate(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int updateFlags, int updateLimit) -
neighborChanged
-
neighborChanged
void neighborChanged(BlockState state, BlockPos pos, Block changedBlock, @Nullable Orientation orientation, boolean movedByPiston) -
updateNeighborsAtExceptFromFacing
default void updateNeighborsAtExceptFromFacing(BlockPos pos, Block block, @Nullable Direction skipDirection, @Nullable Orientation orientation) -
executeShapeUpdate
static void executeShapeUpdate(LevelAccessor level, Direction direction, BlockPos pos, BlockPos neighborPos, BlockState neighborState, int updateFlags, int updateLimit) -
executeUpdate
static void executeUpdate(Level level, BlockState state, BlockPos pos, Block changedBlock, @Nullable Orientation orientation, boolean movedByPiston)
-