Interface NeighborUpdater
- All Known Implementing Classes:
CollectingNeighborUpdater
,InstantNeighborUpdater
public interface NeighborUpdater
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic void
executeShapeUpdate
(LevelAccessor level, Direction direction, BlockState state, BlockPos pos, BlockPos neighborPos, int flags, int recursionLevel) static void
executeUpdate
(Level level, BlockState state, BlockPos pos, Block neighborBlock, BlockPos neighborPos, boolean movedByPiston) void
neighborChanged
(BlockPos pos, Block neighborBlock, BlockPos neighborPos) void
neighborChanged
(BlockState state, BlockPos pos, Block neighborBlock, BlockPos neighborPos, boolean movedByPiston) void
shapeUpdate
(Direction direction, BlockState state, BlockPos pos, BlockPos neighborPos, int flags, int recursionLevel) default void
updateNeighborsAtExceptFromFacing
(BlockPos pos, Block block, Direction facing)
-
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, BlockPos neighborPos, boolean movedByPiston) -
updateNeighborsAtExceptFromFacing
-
executeShapeUpdate
static void executeShapeUpdate(LevelAccessor level, Direction direction, BlockState state, BlockPos pos, BlockPos neighborPos, int flags, int recursionLevel) -
executeUpdate
static void executeUpdate(Level level, BlockState state, BlockPos pos, Block neighborBlock, BlockPos neighborPos, boolean movedByPiston)
-