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, @net.minecraft.world.level.block.Block.UpdateFlags int flags, int recursionLeft) static voidexecuteUpdate(Level level, BlockState state, BlockPos pos, Block neighborBlock, @Nullable Orientation orientation, boolean movedByPiston) voidneighborChanged(BlockPos pos, Block neighborBlock, @Nullable Orientation orientation) voidneighborChanged(BlockState state, BlockPos pos, Block neighborBlock, @Nullable Orientation orientation, boolean movedByPiston) voidshapeUpdate(Direction direction, BlockState state, BlockPos pos, BlockPos neighborPos, @net.minecraft.world.level.block.Block.UpdateFlags int flags, int recursionLeft) default voidupdateNeighborsAtExceptFromFacing(BlockPos pos, Block block, @Nullable Direction facing, @Nullable Orientation orientation)
-
Field Details
-
UPDATE_ORDER
-
-
Method Details
-
shapeUpdate
void shapeUpdate(Direction direction, BlockState state, BlockPos pos, BlockPos neighborPos, @net.minecraft.world.level.block.Block.UpdateFlags int flags, int recursionLeft) -
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, @net.minecraft.world.level.block.Block.UpdateFlags int flags, int recursionLeft) -
executeUpdate
static void executeUpdate(Level level, BlockState state, BlockPos pos, Block neighborBlock, @Nullable Orientation orientation, boolean movedByPiston)
-