Class WorldFlags
java.lang.Object
tfagaming.projects.minecraft.homestead.flags.WorldFlags
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longDeprecated.static 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
-
PASSIVE_ENTITY_SPAWN
public static final long PASSIVE_ENTITY_SPAWN- See Also:
-
HOSTILE_ENTITY_SPAWN
public static final long HOSTILE_ENTITY_SPAWN- See Also:
-
ENTITY_GRIEFING
public static final long ENTITY_GRIEFING- See Also:
-
ENTITY_DAMAGE
public static final long ENTITY_DAMAGE- See Also:
-
LEAVES_DECAY
public static final long LEAVES_DECAY- See Also:
-
FIRE_SPREAD
public static final long FIRE_SPREAD- See Also:
-
LIQUID_FLOW
public static final long LIQUID_FLOW- See Also:
-
EXPLOSION_DAMAGE
public static final long EXPLOSION_DAMAGE- See Also:
-
WITHER_DAMAGE
public static final long WITHER_DAMAGE- See Also:
-
WILDERNESS_PISTONS
public static final long WILDERNESS_PISTONS- See Also:
-
WILDERNESS_DISPENSERS
public static final long WILDERNESS_DISPENSERS- See Also:
-
WILDERNESS_MINECARTS
public static final long WILDERNESS_MINECARTS- See Also:
-
PLANT_GROWTH
public static final long PLANT_GROWTH- See Also:
-
GRASS_GROWTH
public static final long GRASS_GROWTH- See Also:
-
SCULK_SPREAD
public static final long SCULK_SPREAD- See Also:
-
PLAYER_GLOWING
public static final long PLAYER_GLOWING- See Also:
-
SNOW_MELTING
public static final long SNOW_MELTING- See Also:
-
ICE_MELTING
public static final long ICE_MELTING- See Also:
-
SNOWMAN_TRAILS
public static final long SNOWMAN_TRAILS- See Also:
-
WINDCHARGE_BURST
public static final long WINDCHARGE_BURST- See Also:
-
COPPER_GOLEMS_INTERACTION
public static final long COPPER_GOLEMS_INTERACTIONDeprecated.UseENTITY_GRIEFINGinstead.- See Also:
-
WARS
public static final long WARS- See Also:
-
PROJECTILES
public static final long PROJECTILES- See Also:
-
WEATHER_SNOW
public static final long WEATHER_SNOW- 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
-
ENTITY_GRIEFINGinstead.