Package net.fabricmc.yarn.constants
Class SetBlockStateFlags
java.lang.Object
net.fabricmc.yarn.constants.SetBlockStateFlags
public final class SetBlockStateFlags extends Object
A few flag bits for the
flag argument of world.setBlockState(pos, state, flag)
and other related block state setting methods.
The accepted values of the flag argument is usually a bitset combination of the
fields in this class.
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULTThe default setBlockState behavior.static intFORCE_STATEBypass virtual block state changes and forces the passed state to be stored as-is.static intMOVEDSignals that the current block is being moved to a different location, usually because of a piston.static intNO_REDRAWUsed in conjunction withNOTIFY_LISTENERSto suppress the render pass on clients.static intNOTIFY_LISTENERSNotifies listeners and clients who need to react when the block changes.static intPROPAGATE_CHANGEPropagates a change event to surrounding blocks.static intREDRAW_ON_MAIN_THREADForces a synchronous redraw on clients.static intSKIP_DROPSPrevents the previous block (container) from dropping items when destroyed.static intSKIP_LIGHTING_UPDATESSignals that lighting updates should be skipped. -
Constructor Summary
Constructors Modifier Constructor Description privateSetBlockStateFlags() -
Method Summary
-
Field Details
-
PROPAGATE_CHANGE
public static final int PROPAGATE_CHANGEPropagates a change event to surrounding blocks.- See Also:
- Constant Field Values
-
NOTIFY_LISTENERS
public static final int NOTIFY_LISTENERSNotifies listeners and clients who need to react when the block changes.- See Also:
- Constant Field Values
-
DEFAULT
public static final int DEFAULTThe default setBlockState behavior. Same asPROPAGATE_CHANGE | NOTIFY_LISTENERS.- See Also:
- Constant Field Values
-
NO_REDRAW
public static final int NO_REDRAWUsed in conjunction withNOTIFY_LISTENERSto suppress the render pass on clients.- See Also:
- Constant Field Values
-
REDRAW_ON_MAIN_THREAD
public static final int REDRAW_ON_MAIN_THREADForces a synchronous redraw on clients.- See Also:
- Constant Field Values
-
FORCE_STATE
public static final int FORCE_STATEBypass virtual block state changes and forces the passed state to be stored as-is.- See Also:
- Constant Field Values
-
SKIP_DROPS
public static final int SKIP_DROPSPrevents the previous block (container) from dropping items when destroyed.- See Also:
- Constant Field Values
-
MOVED
public static final int MOVEDSignals that the current block is being moved to a different location, usually because of a piston.- See Also:
- Constant Field Values
-
SKIP_LIGHTING_UPDATES
public static final int SKIP_LIGHTING_UPDATESSignals that lighting updates should be skipped.- See Also:
- Constant Field Values
-
-
Constructor Details
-
SetBlockStateFlags
private SetBlockStateFlags()
-