Class FlagTagRegister

java.lang.Object
de.z0rdak.yawp.api.FlagTagRegister

public final class FlagTagRegister extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final FlagTag
    Flags granting advantages or permissions to players.
    static final FlagTag
    Flags concerning block-based events or world state.
    static final FlagTag
    Flags involving entities as targets/source.
    static final FlagTag
    Flags controlling world-level effects or non-entity mechanics.
    static final FlagTag
    Flags checked repeatedly per n-ticks, usually for movement or environment updates.
    static final FlagTag
    Flags tied to item actions or mechanics.
    static final FlagTag
    Flags that evaluate per-player context or directly affect player actions.
    static final FlagTag
    Flags that actively block or prevent a player’s attempted action.
    static final FlagTag
    Flags defining preventive or defensive behavior rather than granting permissions.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static FlagTag
    from(net.minecraft.resources.ResourceLocation rl)
    Retrieves a FlagTag by its ResourceLocation.
    Returns all registered FlagTags.
    static FlagTag
    Registers a new FlagTag in the central registry.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PLAYER

      public static final FlagTag PLAYER
      Flags that evaluate per-player context or directly affect player actions.

      Examples: BREAK_BLOCKS, PLACE_BLOCKS, USE_ITEM, etc.

    • BENEFICIAL

      public static final FlagTag BENEFICIAL
      Flags granting advantages or permissions to players. A flag is “beneficial” if denying it would feel wrong from a player perspective.

      Examples: INVINCIBLE, KEEP_INV, KEEP_XP, etc.

      Usually combined with PLAYER.
    • PLAYER_PREVENTION

      public static final FlagTag PLAYER_PREVENTION
      Flags that actively block or prevent a player’s attempted action.

      Examples: BREAK_BLOCKS, PLACE_BLOCKS, INTERACT_ENTITY, USE_ITEM.

      Always implies PLAYER.
    • BLOCK

      public static final FlagTag BLOCK
      Flags concerning block-based events or world state.

      Examples: FIRE_SPREAD, TNT_EXPLODE, BLOCK_BREAK, etc.

    • ITEM

      public static final FlagTag ITEM
      Flags tied to item actions or mechanics.

      Examples: USE_ITEM, DROP_ITEM, PICKUP_ITEM.

      Often combined with PLAYER.
    • ENTITY

      public static final FlagTag ENTITY
      Flags involving entities as targets/source.

      Examples: INTERACT_ENTITY.

    • ENVIRONMENT

      public static final FlagTag ENVIRONMENT
      Flags controlling world-level effects or non-entity mechanics.

      Examples: FIRE_TICK, LEAF_DECAY, FLUID_FLOW, ICE_MELT.

    • HIGH_FREQUENCY

      public static final FlagTag HIGH_FREQUENCY
      Flags checked repeatedly per n-ticks, usually for movement or environment updates.

      Examples: MOVE, FIRE_TICK, FLUID_FLOW.

    • PROTECTION

      public static final FlagTag PROTECTION
      Flags defining preventive or defensive behavior rather than granting permissions.

      Examples: BLOCK_EXPLODE, griefing, etc.

  • Constructor Details

    • FlagTagRegister

      public FlagTagRegister()
  • Method Details