Package de.z0rdak.yawp.api
Class FlagTagRegister
java.lang.Object
de.z0rdak.yawp.api.FlagTagRegister
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FlagTagFlags granting advantages or permissions to players.static final FlagTagFlags concerning block-based events or world state.static final FlagTagFlags involving entities as targets/source.static final FlagTagFlags controlling world-level effects or non-entity mechanics.static final FlagTagFlags checked repeatedly per n-ticks, usually for movement or environment updates.static final FlagTagFlags tied to item actions or mechanics.static final FlagTagFlags that evaluate per-player context or directly affect player actions.static final FlagTagFlags that actively block or prevent a player’s attempted action.static final FlagTagFlags defining preventive or defensive behavior rather than granting permissions. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PLAYER
Flags that evaluate per-player context or directly affect player actions.Examples:
BREAK_BLOCKS,PLACE_BLOCKS,USE_ITEM, etc. -
BENEFICIAL
Flags granting advantages or permissions to players. A flag is “beneficial” if denying it would feel wrong from a player perspective.Examples:
Usually combined withINVINCIBLE,KEEP_INV,KEEP_XP, etc.PLAYER. -
PLAYER_PREVENTION
Flags that actively block or prevent a player’s attempted action.Examples:
Always impliesBREAK_BLOCKS,PLACE_BLOCKS,INTERACT_ENTITY,USE_ITEM.PLAYER. -
BLOCK
Flags concerning block-based events or world state.Examples:
FIRE_SPREAD,TNT_EXPLODE,BLOCK_BREAK, etc. -
ITEM
Flags tied to item actions or mechanics.Examples:
Often combined withUSE_ITEM,DROP_ITEM,PICKUP_ITEM.PLAYER. -
ENTITY
Flags involving entities as targets/source.Examples:
INTERACT_ENTITY. -
ENVIRONMENT
Flags controlling world-level effects or non-entity mechanics.Examples:
FIRE_TICK,LEAF_DECAY,FLUID_FLOW,ICE_MELT. -
HIGH_FREQUENCY
Flags checked repeatedly per n-ticks, usually for movement or environment updates.Examples:
MOVE,FIRE_TICK,FLUID_FLOW. -
PROTECTION
Flags defining preventive or defensive behavior rather than granting permissions.Examples:
BLOCK_EXPLODE,griefing, etc.
-
-
Constructor Details
-
FlagTagRegister
public FlagTagRegister()
-
-
Method Details
-
register
Registers a new FlagTag in the central registry. -
from
public static FlagTag from(net.minecraft.resources.ResourceLocation rl) throws IllegalArgumentException Retrieves a FlagTag by its ResourceLocation.- Throws:
IllegalArgumentException
-
getAll
Returns all registered FlagTags.
-