java.lang.Object
com.sk89q.worldguard.protection.flags.Flags

public final class Flags extends Object
The flags that are used in WorldGuard.
  • Field Details

    • INBUILT_FLAGS

      public static final List<String> INBUILT_FLAGS
    • PASSTHROUGH

      public static final StateFlag PASSTHROUGH
    • NONPLAYER_PROTECTION_DOMAINS

      public static final SetFlag<String> NONPLAYER_PROTECTION_DOMAINS
    • BUILD

      public static final StateFlag BUILD
    • BLOCK_BREAK

      public static final StateFlag BLOCK_BREAK
    • BLOCK_PLACE

      public static final StateFlag BLOCK_PLACE
    • USE

      public static final StateFlag USE
    • INTERACT

      public static final StateFlag INTERACT
    • DAMAGE_ANIMALS

      public static final StateFlag DAMAGE_ANIMALS
    • PVP

      public static final StateFlag PVP
    • SLEEP

      public static final StateFlag SLEEP
    • RESPAWN_ANCHORS

      public static final StateFlag RESPAWN_ANCHORS
    • TNT

      public static final StateFlag TNT
    • CHEST_ACCESS

      public static final StateFlag CHEST_ACCESS
    • PLACE_VEHICLE

      public static final StateFlag PLACE_VEHICLE
    • DESTROY_VEHICLE

      public static final StateFlag DESTROY_VEHICLE
    • LIGHTER

      public static final StateFlag LIGHTER
    • RIDE

      public static final StateFlag RIDE
    • POTION_SPLASH

      public static final StateFlag POTION_SPLASH
    • ITEM_FRAME_ROTATE

      public static final StateFlag ITEM_FRAME_ROTATE
    • TRAMPLE_BLOCKS

      public static final StateFlag TRAMPLE_BLOCKS
    • FIREWORK_DAMAGE

      public static final StateFlag FIREWORK_DAMAGE
    • USE_ANVIL

      public static final StateFlag USE_ANVIL
    • USE_DRIPLEAF

      public static final StateFlag USE_DRIPLEAF
    • ITEM_PICKUP

      public static final StateFlag ITEM_PICKUP
    • ITEM_DROP

      public static final StateFlag ITEM_DROP
    • EXP_DROPS

      public static final StateFlag EXP_DROPS
    • MOB_DAMAGE

      public static final StateFlag MOB_DAMAGE
    • CREEPER_EXPLOSION

      public static final StateFlag CREEPER_EXPLOSION
    • ENDERDRAGON_BLOCK_DAMAGE

      public static final StateFlag ENDERDRAGON_BLOCK_DAMAGE
    • GHAST_FIREBALL

      public static final StateFlag GHAST_FIREBALL
    • OTHER_EXPLOSION

      public static final StateFlag OTHER_EXPLOSION
    • WITHER_DAMAGE

      public static final StateFlag WITHER_DAMAGE
    • ENDER_BUILD

      public static final StateFlag ENDER_BUILD
    • SNOWMAN_TRAILS

      public static final StateFlag SNOWMAN_TRAILS
    • RAVAGER_RAVAGE

      public static final StateFlag RAVAGER_RAVAGE
    • ENTITY_PAINTING_DESTROY

      public static final StateFlag ENTITY_PAINTING_DESTROY
    • ENTITY_ITEM_FRAME_DESTROY

      public static final StateFlag ENTITY_ITEM_FRAME_DESTROY
    • MOB_SPAWNING

      public static final StateFlag MOB_SPAWNING
    • DENY_SPAWN

      public static final SetFlag<com.sk89q.worldedit.world.entity.EntityType> DENY_SPAWN
    • PISTONS

      public static final StateFlag PISTONS
    • FIRE_SPREAD

      public static final StateFlag FIRE_SPREAD
    • LAVA_FIRE

      public static final StateFlag LAVA_FIRE
    • LIGHTNING

      public static final StateFlag LIGHTNING
    • SNOW_FALL

      public static final StateFlag SNOW_FALL
    • SNOW_MELT

      public static final StateFlag SNOW_MELT
    • ICE_FORM

      public static final StateFlag ICE_FORM
    • ICE_MELT

      public static final StateFlag ICE_MELT
    • FROSTED_ICE_MELT

      public static final StateFlag FROSTED_ICE_MELT
    • FROSTED_ICE_FORM

      public static final StateFlag FROSTED_ICE_FORM
    • MUSHROOMS

      public static final StateFlag MUSHROOMS
    • LEAF_DECAY

      public static final StateFlag LEAF_DECAY
    • GRASS_SPREAD

      public static final StateFlag GRASS_SPREAD
    • MYCELIUM_SPREAD

      public static final StateFlag MYCELIUM_SPREAD
    • VINE_GROWTH

      public static final StateFlag VINE_GROWTH
    • ROCK_GROWTH

      public static final StateFlag ROCK_GROWTH
    • SCULK_GROWTH

      public static final StateFlag SCULK_GROWTH
    • CROP_GROWTH

      public static final StateFlag CROP_GROWTH
    • SOIL_DRY

      public static final StateFlag SOIL_DRY
    • CORAL_FADE

      public static final StateFlag CORAL_FADE
    • COPPER_FADE

      public static final StateFlag COPPER_FADE
    • WATER_FLOW

      public static final StateFlag WATER_FLOW
    • LAVA_FLOW

      public static final StateFlag LAVA_FLOW
    • WEATHER_LOCK

      public static final RegistryFlag<com.sk89q.worldedit.world.weather.WeatherType> WEATHER_LOCK
    • TIME_LOCK

      public static final StringFlag TIME_LOCK
    • SEND_CHAT

      public static final StateFlag SEND_CHAT
    • RECEIVE_CHAT

      public static final StateFlag RECEIVE_CHAT
    • BLOCKED_CMDS

      public static final SetFlag<String> BLOCKED_CMDS
    • ALLOWED_CMDS

      public static final SetFlag<String> ALLOWED_CMDS
    • TELE_LOC

      public static final LocationFlag TELE_LOC
    • SPAWN_LOC

      public static final LocationFlag SPAWN_LOC
    • TELE_MESSAGE

      @Deprecated public static final StringFlag TELE_MESSAGE
      Deprecated.
      The type of this flag will change from a StringFlag to a ComponentFlag to support JSON text in a future release. If you depend on the type of this flag, take proper precaution for future breakage.
    • INVINCIBILITY

      public static final StateFlag INVINCIBILITY
    • FALL_DAMAGE

      public static final StateFlag FALL_DAMAGE
    • HEALTH_REGEN

      public static final StateFlag HEALTH_REGEN
    • HUNGER_DRAIN

      public static final StateFlag HUNGER_DRAIN
    • ENTRY

      public static final StateFlag ENTRY
    • EXIT

      public static final StateFlag EXIT
    • EXIT_OVERRIDE

      public static final BooleanFlag EXIT_OVERRIDE
    • EXIT_VIA_TELEPORT

      public static final StateFlag EXIT_VIA_TELEPORT
    • ENDERPEARL

      public static final StateFlag ENDERPEARL
    • CHORUS_TELEPORT

      public static final StateFlag CHORUS_TELEPORT
    • GREET_MESSAGE

      @Deprecated public static final StringFlag GREET_MESSAGE
      Deprecated.
      The type of this flag will change from a StringFlag to a ComponentFlag to support JSON text in a future release. If you depend on the type of this flag, take proper precaution for future breakage.
    • FAREWELL_MESSAGE

      @Deprecated public static final StringFlag FAREWELL_MESSAGE
      Deprecated.
      The type of this flag will change from a StringFlag to a ComponentFlag to support JSON text in a future release. If you depend on the type of this flag, take proper precaution for future breakage.
    • GREET_TITLE

      @Deprecated public static final StringFlag GREET_TITLE
      Deprecated.
      The type of this flag will change from a StringFlag to a ComponentFlag to support JSON text in a future release. If you depend on the type of this flag, take proper precaution for future breakage.
    • FAREWELL_TITLE

      @Deprecated public static final StringFlag FAREWELL_TITLE
      Deprecated.
      The type of this flag will change from a StringFlag to a ComponentFlag to support JSON text in a future release. If you depend on the type of this flag, take proper precaution for future breakage.
    • NOTIFY_ENTER

      public static final BooleanFlag NOTIFY_ENTER
    • NOTIFY_LEAVE

      public static final BooleanFlag NOTIFY_LEAVE
    • GAME_MODE

      public static final RegistryFlag<com.sk89q.worldedit.world.gamemode.GameMode> GAME_MODE
    • HEAL_DELAY

      public static final IntegerFlag HEAL_DELAY
    • HEAL_AMOUNT

      public static final IntegerFlag HEAL_AMOUNT
    • MIN_HEAL

      public static final DoubleFlag MIN_HEAL
    • MAX_HEAL

      public static final DoubleFlag MAX_HEAL
    • FEED_DELAY

      public static final IntegerFlag FEED_DELAY
    • FEED_AMOUNT

      public static final IntegerFlag FEED_AMOUNT
    • MIN_FOOD

      public static final IntegerFlag MIN_FOOD
    • MAX_FOOD

      public static final IntegerFlag MAX_FOOD
    • DENY_MESSAGE

      @Deprecated public static final StringFlag DENY_MESSAGE
      Deprecated.
      The type of this flag will change from a StringFlag to a ComponentFlag to support JSON text in a future release. If you depend on the type of this flag, take proper precaution for future breakage.
    • ENTRY_DENY_MESSAGE

      @Deprecated public static final StringFlag ENTRY_DENY_MESSAGE
      Deprecated.
      The type of this flag will change from a StringFlag to a ComponentFlag to support JSON text in a future release. If you depend on the type of this flag, take proper precaution for future breakage.
    • EXIT_DENY_MESSAGE

      @Deprecated public static final StringFlag EXIT_DENY_MESSAGE
      Deprecated.
      The type of this flag will change from a StringFlag to a ComponentFlag to support JSON text in a future release. If you depend on the type of this flag, take proper precaution for future breakage.
  • Method Details

    • fuzzyMatchFlag

      public static Flag<?> fuzzyMatchFlag(FlagRegistry flagRegistry, String id)
      Try to match the flag with the given ID using a fuzzy name match.
      Parameters:
      flagRegistry - the flag registry
      id - the flag ID
      Returns:
      a flag, or null
    • registerAll

      public static void registerAll()
      Dummy method to call that initialises the class.