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.

See Also:
ModifiableWorld.setBlockState(net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, int)
  • Field Details

    • PROPAGATE_CHANGE

      public static final int PROPAGATE_CHANGE
      Propagates a change event to surrounding blocks.
      See Also:
      Constant Field Values
    • NOTIFY_LISTENERS

      public static final int NOTIFY_LISTENERS
      Notifies listeners and clients who need to react when the block changes.
      See Also:
      Constant Field Values
    • DEFAULT

      public static final int DEFAULT
      The default setBlockState behavior. Same as PROPAGATE_CHANGE | NOTIFY_LISTENERS.
      See Also:
      Constant Field Values
    • NO_REDRAW

      public static final int NO_REDRAW
      Used in conjunction with NOTIFY_LISTENERS to suppress the render pass on clients.
      See Also:
      Constant Field Values
    • REDRAW_ON_MAIN_THREAD

      public static final int REDRAW_ON_MAIN_THREAD
      Forces a synchronous redraw on clients.
      See Also:
      Constant Field Values
    • FORCE_STATE

      public static final int FORCE_STATE
      Bypass 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_DROPS
      Prevents the previous block (container) from dropping items when destroyed.
      See Also:
      Constant Field Values
    • MOVED

      public static final int MOVED
      Signals 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_UPDATES
      Signals that lighting updates should be skipped.
      See Also:
      Constant Field Values
  • Constructor Details

    • SetBlockStateFlags

      private SetBlockStateFlags()