public static class Constants.BlockFlags
extends java.lang.Object
IWorldWriter.setBlockState(BlockPos, BlockState, int)
World.setBlockState(BlockPos, BlockState, int)
,
World.markAndNotifyBlock(net.minecraft.util.math.BlockPos, net.minecraft.world.chunk.Chunk, net.minecraft.block.BlockState, net.minecraft.block.BlockState, int)
, and
WorldRenderer.notifyBlockUpdate(net.minecraft.world.IBlockReader, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.block.BlockState, int)
Modifier and Type | Field and Description |
---|---|
static int |
BLOCK_UPDATE
Calls
World.notifyBlockUpdate(BlockPos, BlockState, BlockState, int) .Server-side, this updates all the path-finding navigators. |
static int |
DEFAULT |
static int |
DEFAULT_AND_RERENDER |
static int |
IS_MOVING
Tell the block being changed that it was moved, rather than removed/replaced,
the boolean value is eventually passed to
Block.onReplaced(BlockState, World, BlockPos, BlockState, boolean)
as the last parameter. |
static int |
NO_NEIGHBOR_DROPS
Prevents neighbor changes from spawning item drops, used by
Block.replaceBlock(BlockState, BlockState, IWorld, BlockPos, int) . |
static int |
NO_RERENDER
Stops the blocks from being marked for a render update
|
static int |
NOTIFY_NEIGHBORS
Calls
neighborChanged on surrounding blocks (with isMoving as false). |
static int |
RERENDER_MAIN_THREAD
Makes the block be re-rendered immediately, on the main thread.
|
static int |
UPDATE_NEIGHBORS
Causes neighbor updates to be sent to all surrounding blocks (including
diagonals).
|
Constructor and Description |
---|
BlockFlags() |
public static final int NOTIFY_NEIGHBORS
neighborChanged
on surrounding blocks (with isMoving as false). Also updates comparator output state.public static final int BLOCK_UPDATE
World.notifyBlockUpdate(BlockPos, BlockState, BlockState, int)
.public static final int NO_RERENDER
public static final int RERENDER_MAIN_THREAD
public static final int UPDATE_NEIGHBORS
updateDiagonalNeighbors
on both old and new states, and
updateNeighbors
on the new state.public static final int NO_NEIGHBOR_DROPS
Block.replaceBlock(BlockState, BlockState, IWorld, BlockPos, int)
.public static final int IS_MOVING
Block.onReplaced(BlockState, World, BlockPos, BlockState, boolean)
as the last parameter.public static final int DEFAULT
public static final int DEFAULT_AND_RERENDER