Contents
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
FieldsModifier and TypeFieldDescriptionstatic final intWhether the paste should place the prefab anchor block.static final intWhether the paste should forcibly set the block or attempt to place it normally.static final intWhether the paste should skip placing entities.static final intThe default flag value used for pasting prefabs normally.static final intWhether the paste should place creative technical blocks. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic booleantest(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 NONEThe default flag value used for pasting prefabs normally. This has all other flags disabled.- See Also:
-
FORCE
static final int FORCEWhether the paste should forcibly set the block or attempt to place it normally.- See Also:
-
TECHNICAL
static final int TECHNICALWhether the paste should place creative technical blocks.- See Also:
-
ANCHOR_BLOCK
static final int ANCHOR_BLOCKWhether the paste should place the prefab anchor block.- See Also:
-
NO_ENTITIES
static final int NO_ENTITIESWhether 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.
-