Class PlayerFlags
java.lang.Object
tfagaming.projects.minecraft.homestead.flags.PlayerFlags
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringfrom(long flag) Get flag name from a bitwise value.getFlags()Get list of flag names.getSet(long flags) Get list of flag names that exist in the bitwise value.getUnset(long flags) Get list of flag names that does not exist in the bitwise value.static longGet bitwise value of a flag name.
-
Field Details
-
BREAK_BLOCKS
public static final long BREAK_BLOCKS- See Also:
-
PLACE_BLOCKS
public static final long PLACE_BLOCKS- See Also:
-
CONTAINERS
public static final long CONTAINERS- See Also:
-
DOORS
public static final long DOORS- See Also:
-
TRAP_DOORS
public static final long TRAP_DOORS- See Also:
-
FENCE_GATES
public static final long FENCE_GATES- See Also:
-
USE_ANVIL
public static final long USE_ANVIL- See Also:
-
REDSTONE
public static final long REDSTONE- See Also:
-
LEVERS
public static final long LEVERS- See Also:
-
BUTTONS
public static final long BUTTONS- See Also:
-
PRESSURE_PLATES
public static final long PRESSURE_PLATES- See Also:
-
USE_BELLS
public static final long USE_BELLS- See Also:
-
TRIGGER_TRIPWIRE
public static final long TRIGGER_TRIPWIRE- See Also:
-
FROST_WALKER
public static final long FROST_WALKER- See Also:
-
HARVEST_CROPS
public static final long HARVEST_CROPS- See Also:
-
BLOCK_TRAMPLING
public static final long BLOCK_TRAMPLING- See Also:
-
GENERAL_INTERACTION
public static final long GENERAL_INTERACTION- See Also:
-
ARMOR_STANDS
public static final long ARMOR_STANDS- See Also:
-
INTERACT_ENTITIES
public static final long INTERACT_ENTITIES- See Also:
-
ITEM_FRAME_INTERACTION
public static final long ITEM_FRAME_INTERACTION- See Also:
-
DAMAGE_PASSIVE_ENTITIES
public static final long DAMAGE_PASSIVE_ENTITIES- See Also:
-
DAMAGE_HOSTILE_ENTITIES
public static final long DAMAGE_HOSTILE_ENTITIES- See Also:
-
TRADE_VILLAGERS
public static final long TRADE_VILLAGERS- See Also:
-
IGNITE
public static final long IGNITE- See Also:
-
VEHICLES
public static final long VEHICLES- See Also:
-
TELEPORT_SPAWN
public static final long TELEPORT_SPAWN- See Also:
-
PASSTHROUGH
public static final long PASSTHROUGH- See Also:
-
PVP
public static final long PVP- See Also:
-
TAKE_FALL_DAMAGE
public static final long TAKE_FALL_DAMAGE- See Also:
-
TELEPORT
public static final long TELEPORT- See Also:
-
THROW_POTIONS
public static final long THROW_POTIONS- See Also:
-
PICKUP_ITEMS
public static final long PICKUP_ITEMS- See Also:
-
SLEEP
public static final long SLEEP- See Also:
-
TRIGGER_RAID
public static final long TRIGGER_RAID- See Also:
-
ELYTRA
public static final long ELYTRA- See Also:
-
SPAWN_ENTITIES
public static final long SPAWN_ENTITIES- See Also:
-
-
Method Details
-
getFlags
Get list of flag names. -
valueOf
Get bitwise value of a flag name. If the flag is undefined, it will return a 0.- Parameters:
name- The flag name
-
from
Get flag name from a bitwise value. If the bitwise value is undefined, it will return an unknown-flag.- Parameters:
flag- The bitwise value
-
getSet
Get list of flag names that exist in the bitwise value.- Parameters:
flags- The flags
-
getUnset
Get list of flag names that does not exist in the bitwise value.- Parameters:
flags- The flags
-