Package net.minecraftforge.common.util
Class Constants.BlockFlags
java.lang.Object
net.minecraftforge.common.util.Constants.BlockFlags
- Enclosing class:
- Constants
The flags used when calling
Can be found from
Flags can be combined with bitwise OR
net.minecraft.world.IWorldWriter#setBlockState(BlockPos, BlockState, int)Can be found from
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, int), and
WorldRenderer#notifyBlockUpdateFlags can be combined with bitwise OR
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCallsWorld#notifyBlockUpdate(BlockPos, BlockState, BlockState, int).
Server-side, this updates all the path-finding navigators.static final intstatic final intstatic final intTell the block being changed that it was moved, rather than removed/replaced, the boolean value is eventually passed toBlock#onReplaced(BlockState, World, BlockPos, BlockState, boolean)as the last parameter.static final intPrevents neighbor changes from spawning item drops, used byBlock#replaceBlock(BlockState, BlockState, IWorld, BlockPos, int).static final intStops the blocks from being marked for a render updatestatic final intCallsneighborChangedon surrounding blocks (with isMoving as false).static final intMakes the block be re-rendered immediately, on the main thread.static final intCauses neighbor updates to be sent to all surrounding blocks (including diagonals). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NOTIFY_NEIGHBORS
public static final int NOTIFY_NEIGHBORSCallsneighborChangedon surrounding blocks (with isMoving as false). Also updates comparator output state.- See Also:
-
BLOCK_UPDATE
public static final int BLOCK_UPDATECallsWorld#notifyBlockUpdate(BlockPos, BlockState, BlockState, int).
Server-side, this updates all the path-finding navigators.- See Also:
-
NO_RERENDER
public static final int NO_RERENDERStops the blocks from being marked for a render update- See Also:
-
RERENDER_MAIN_THREAD
public static final int RERENDER_MAIN_THREADMakes the block be re-rendered immediately, on the main thread. If NO_RERENDER is set, then this will be ignored- See Also:
-
UPDATE_NEIGHBORS
public static final int UPDATE_NEIGHBORSCauses neighbor updates to be sent to all surrounding blocks (including diagonals). This in turn will callupdateDiagonalNeighborson both old and new states, andupdateNeighborson the new state.- See Also:
-
NO_NEIGHBOR_DROPS
public static final int NO_NEIGHBOR_DROPSPrevents neighbor changes from spawning item drops, used byBlock#replaceBlock(BlockState, BlockState, IWorld, BlockPos, int).- See Also:
-
IS_MOVING
public static final int IS_MOVINGTell the block being changed that it was moved, rather than removed/replaced, the boolean value is eventually passed toBlock#onReplaced(BlockState, World, BlockPos, BlockState, boolean)as the last parameter.- See Also:
-
DEFAULT
public static final int DEFAULT- See Also:
-
DEFAULT_AND_RERENDER
public static final int DEFAULT_AND_RERENDER- See Also:
-
-
Constructor Details
-
BlockFlags
public BlockFlags()
-