Interface PrefabUtil.Flags

Enclosing class:
PrefabUtil

public static interface PrefabUtil.Flags
Bit flags used for configuring the behavior of a prefab paste.
Since:
12.06.2020
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Whether the paste should place the prefab anchor block.
    static final int
    Whether the paste should forcibly set the block or attempt to place it normally.
    static final int
    Whether the paste should skip placing entities.
    static final int
    The default flag value used for pasting prefabs normally.
    static final int
    Whether the paste should place creative technical blocks.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static boolean
    test(int value, int flag)
    Utility for testing whether a flag (or composition of flags) is enabled on the given value.
  • Field Details

    • NONE

      static final int NONE
      The default flag value used for pasting prefabs normally. This has all other flags disabled.
      See Also:
    • FORCE

      static final int FORCE
      Whether the paste should forcibly set the block or attempt to place it normally.
      See Also:
    • TECHNICAL

      static final int TECHNICAL
      Whether the paste should place creative technical blocks.
      See Also:
    • ANCHOR_BLOCK

      static final int ANCHOR_BLOCK
      Whether the paste should place the prefab anchor block.
      See Also:
    • NO_ENTITIES

      static final int NO_ENTITIES
      Whether the paste should skip placing entities.
      See Also:
  • Method Details

    • test

      static boolean test(int value, int flag)
      Utility for testing whether a flag (or composition of flags) is enabled on the given value.
      Parameters:
      value - The value to test.
      flag - The flag(s) to test on the value.
      Returns:
      true if the flag bits are enabled on the given integer value.