Package net.minecraftforge.common.util
Class Constants.BlockFlags
java.lang.Object
net.minecraftforge.common.util.Constants.BlockFlags
- Enclosing class:
- Constants
Deprecated, for removal: This API element is subject to removal in a future version.
The flags used when calling
Can be found from
Flags can be combined with bitwise OR
LevelWriter.setBlock(BlockPos, BlockState, int)
Can be found from
Level.setBlock(BlockPos, BlockState, int)
,
Level.markAndNotifyBlock(BlockPos, LevelChunk, BlockState, BlockState, int, int)
, and
LevelRenderer.blockChanged(BlockGetter, BlockPos, BlockState, BlockState, int)
Flags can be combined with bitwise OR
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
Deprecated, for removal: This API element is subject to removal in a future version.CallsLevel.sendBlockUpdated(BlockPos, BlockState, BlockState, int)
.
Server-side, this updates all the path-finding navigators.static int
Deprecated, for removal: This API element is subject to removal in a future version.static int
Deprecated, for removal: This API element is subject to removal in a future version.static int
Deprecated, for removal: This API element is subject to removal in a future version.Tell the block being changed that it was moved, rather than removed/replaced, the boolean value is eventually passed toBlockBehaviour.onRemove(BlockState, Level, BlockPos, BlockState, boolean)
as the last parameter.static int
Deprecated, for removal: This API element is subject to removal in a future version.Prevents neighbor changes from spawning item drops, used byBlock.updateOrDestroy(BlockState, BlockState, LevelAccessor, BlockPos, int)
.static int
Deprecated, for removal: This API element is subject to removal in a future version.Stops the blocks from being marked for a render updatestatic int
Deprecated, for removal: This API element is subject to removal in a future version.CallsneighborChanged
on surrounding blocks (with isMoving as false).static int
Deprecated, for removal: This API element is subject to removal in a future version.Makes the block be re-rendered immediately, on the main thread.static int
Deprecated, for removal: This API element is subject to removal in a future version.Causes neighbor updates to be sent to all surrounding blocks (including diagonals). -
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
-
Field Details
-
NOTIFY_NEIGHBORS
public static final int NOTIFY_NEIGHBORSDeprecated, for removal: This API element is subject to removal in a future version.CallsneighborChanged
on surrounding blocks (with isMoving as false). Also updates comparator output state.- See Also:
- Constant Field Values
-
BLOCK_UPDATE
public static final int BLOCK_UPDATEDeprecated, for removal: This API element is subject to removal in a future version.CallsLevel.sendBlockUpdated(BlockPos, BlockState, BlockState, int)
.
Server-side, this updates all the path-finding navigators.- See Also:
- Constant Field Values
-
NO_RERENDER
public static final int NO_RERENDERDeprecated, for removal: This API element is subject to removal in a future version.Stops the blocks from being marked for a render update- See Also:
- Constant Field Values
-
RERENDER_MAIN_THREAD
public static final int RERENDER_MAIN_THREADDeprecated, for removal: This API element is subject to removal in a future version.Makes the block be re-rendered immediately, on the main thread. If NO_RERENDER is set, then this will be ignored- See Also:
- Constant Field Values
-
UPDATE_NEIGHBORS
public static final int UPDATE_NEIGHBORSDeprecated, for removal: This API element is subject to removal in a future version.Causes neighbor updates to be sent to all surrounding blocks (including diagonals). This in turn will callBlockBehaviour.updateIndirectNeighbourShapes(BlockState, LevelAccessor, BlockPos, int, int)
on both old and new states, andBlock.updateOrDestroy(BlockState, BlockState, LevelAccessor, BlockPos, int, int)
on the new state.- See Also:
- Constant Field Values
-
NO_NEIGHBOR_DROPS
public static final int NO_NEIGHBOR_DROPSDeprecated, for removal: This API element is subject to removal in a future version.Prevents neighbor changes from spawning item drops, used byBlock.updateOrDestroy(BlockState, BlockState, LevelAccessor, BlockPos, int)
.- See Also:
- Constant Field Values
-
IS_MOVING
public static final int IS_MOVINGDeprecated, for removal: This API element is subject to removal in a future version.Tell the block being changed that it was moved, rather than removed/replaced, the boolean value is eventually passed toBlockBehaviour.onRemove(BlockState, Level, BlockPos, BlockState, boolean)
as the last parameter.- See Also:
- Constant Field Values
-
DEFAULT
public static final int DEFAULTDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
DEFAULT_AND_RERENDER
public static final int DEFAULT_AND_RERENDERDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
-
Constructor Details
-
BlockFlags
public BlockFlags()Deprecated, for removal: This API element is subject to removal in a future version.
-
Block
. TODO Remove in 1.18