Class XTag<T extends Enum<T>>

java.lang.Object
com.cryptomorin.xseries.XTag<T>

public final class XTag<T extends Enum<T>> extends Object
  • Field Details

    • AIR

      @Nonnull public static final XTag<XMaterial> AIR
    • INVENTORY_NOT_DISPLAYABLE

      @Nonnull public static final XTag<XMaterial> INVENTORY_NOT_DISPLAYABLE
    • ACACIA_LOGS

      @Nonnull public static final XTag<XMaterial> ACACIA_LOGS
      Tag representing all acacia log and bark variants
    • CORAL_FANS

      @Nonnull public static final XTag<XMaterial> CORAL_FANS
    • ALIVE_CORAL_BLOCKS

      @Nonnull public static final XTag<XMaterial> ALIVE_CORAL_BLOCKS
    • ALIVE_CORAL_FANS

      @Nonnull public static final XTag<XMaterial> ALIVE_CORAL_FANS
      Tag representing all dead coral non-walled fans
    • ALIVE_CORAL_PLANTS

      @Nonnull public static final XTag<XMaterial> ALIVE_CORAL_PLANTS
      Tag representing all non-dead coral plants
    • ALIVE_CORAL_WALL_FANS

      @Nonnull public static final XTag<XMaterial> ALIVE_CORAL_WALL_FANS
    • ANIMALS_SPAWNABLE_ON

      @Nonnull public static final XTag<XMaterial> ANIMALS_SPAWNABLE_ON
      Tag representing all possible blocks available for animals to spawn on
    • ANVIL

      @Nonnull public static final XTag<XMaterial> ANVIL
      Tag representing all variants of anvil
    • AXOLOTL_TEMPT_ITEMS

      @Nonnull public static final XTag<XMaterial> AXOLOTL_TEMPT_ITEMS
      Tag representing all items that can tempt axolotl
    • AXOLOTLS_SPAWNABLE_ON

      @Nonnull public static final XTag<XMaterial> AXOLOTLS_SPAWNABLE_ON
      Tag representing all possible blocks for axolotls to spawn on
    • AZALEA_GROWS_ON

      @Nonnull public static final XTag<XMaterial> AZALEA_GROWS_ON
      Tag representing all possible blocks for azalea to grow on
    • AZALEA_ROOT_REPLACEABLE

      @Nonnull public static final XTag<XMaterial> AZALEA_ROOT_REPLACEABLE
      Tag representing all possible blocks that can be replaced by azalea
    • BAMBOO_LOGS

      @Nonnull public static final XTag<XMaterial> BAMBOO_LOGS
      Tag representing all bamboo wood variants
    • BAMBOO_PLANTABLE_ON

      @Nonnull public static final XTag<XMaterial> BAMBOO_PLANTABLE_ON
      Tag representing all possible blocks bamboo may be planted on
    • BANNERS

      @Nonnull public static final XTag<XMaterial> BANNERS
      Tag representing all banner blocks
    • BASE_STONE_NETHER

      @Nonnull public static final XTag<XMaterial> BASE_STONE_NETHER
      Tag representing the nether base materials
    • BASE_STONE_OVERWORLD

      @Nonnull public static final XTag<XMaterial> BASE_STONE_OVERWORLD
      Tag representing the overworld base materials
    • BEACON_BASE_BLOCKS

      @Nonnull public static final XTag<XMaterial> BEACON_BASE_BLOCKS
      Tag representing all possible blocks that can be used as beacon base
    • BEDS

      @Nonnull public static final XTag<XMaterial> BEDS
      Tag representing all possible variants of bed
    • BEE_GROWABLES

      @Nonnull public static final XTag<XMaterial> BEE_GROWABLES
      Tag representing all possible blocks/crops that be grown by bees
    • BIG_DRIPLEAF_PLACEABLE

      @Nonnull public static final XTag<XMaterial> BIG_DRIPLEAF_PLACEABLE
      Tag representing all possible blocks big dripleaf may be planted on
    • BIRCH_LOGS

      @Nonnull public static final XTag<XMaterial> BIRCH_LOGS
      Tag representing all birch log and bark variants
    • BUTTONS

      @Nonnull public static final XTag<XMaterial> BUTTONS
      Tag representing all possible variants of buttons
    • CAMPFIRES

      @Nonnull public static final XTag<XMaterial> CAMPFIRES
      Tag representing all possible variants of campfires
    • CANDLE_CAKES

      @Nonnull public static final XTag<XMaterial> CANDLE_CAKES
      Tag representing all possible variants of candle cakes
    • CANDLES

      @Nonnull public static final XTag<XMaterial> CANDLES
      Tag representing all possible variants of candles
    • CARPETS

      @Nonnull public static final XTag<XMaterial> CARPETS
      Tag representing all possible variants of carpets
    • CAULDRONS

      @Nonnull public static final XTag<XMaterial> CAULDRONS
      Tag representing all possible variants of cauldrons
    • CAVE_VINES

      @Nonnull public static final XTag<XMaterial> CAVE_VINES
      Tag representing all possible variants of cave vines
    • CHERRY_LOGS

      @Nonnull public static final XTag<XMaterial> CHERRY_LOGS
      Tag representing all cherry log and bark variants
    • CLIMBABLE

      @Nonnull public static final XTag<XMaterial> CLIMBABLE
      Tag representing all climbable blocks
    • CLUSTER_MAX_HARVESTABLES

      @Nonnull public static final XTag<XMaterial> CLUSTER_MAX_HARVESTABLES
      Tag representing all preferred items for harvesting clusters{unused as of 1.18}
    • COAL_ORES

      @Nonnull public static final XTag<XMaterial> COAL_ORES
      Tag representing all possible variants of coal ores
    • CONCRETE

      @Nonnull public static final XTag<XMaterial> CONCRETE
      Tag representing all possible variants of concrete
    • CONCRETE_POWDER

      @Nonnull public static final XTag<XMaterial> CONCRETE_POWDER
      Tag representing all possible variants of concrete_powder
    • COPPER_ORES

      @Nonnull public static final XTag<XMaterial> COPPER_ORES
      Tag representing all possible variants of copper ores
    • CORALS

      @Nonnull public static final XTag<XMaterial> CORALS
      Tag representing all corals
    • CRIMSON_STEMS

      @Nonnull public static final XTag<XMaterial> CRIMSON_STEMS
      Tag representing all crimson log and bark variants
    • CROPS

      @Nonnull public static final XTag<XMaterial> CROPS
      Tag representing all crops
    • CRYSTAL_SOUND_BLOCKS

      @Nonnull public static final XTag<XMaterial> CRYSTAL_SOUND_BLOCKS
      Tag representing all possible blocks that can make crystal sounds
    • DARK_OAK_LOGS

      @Nonnull public static final XTag<XMaterial> DARK_OAK_LOGS
      Tag representing all dark oak log and bark variants
    • DEAD_CORAL_BLOCKS

      @Nonnull public static final XTag<XMaterial> DEAD_CORAL_BLOCKS
    • DEAD_CORAL_FANS

      @Nonnull public static final XTag<XMaterial> DEAD_CORAL_FANS
    • DEAD_CORAL_PLANTS

      @Nonnull public static final XTag<XMaterial> DEAD_CORAL_PLANTS
    • DEAD_CORAL_WALL_FANS

      @Nonnull public static final XTag<XMaterial> DEAD_CORAL_WALL_FANS
    • DEEPSLATE_ORE_REPLACEABLES

      @Nonnull public static final XTag<XMaterial> DEEPSLATE_ORE_REPLACEABLES
      Tag representing all possible blocks that may be replaced by deepslate ores
    • DIAMOND_ORES

      @Nonnull public static final XTag<XMaterial> DIAMOND_ORES
      Tag representing all possible variants of diamond ores
    • DIRT

      @Nonnull public static final XTag<XMaterial> DIRT
      Tag representing all dirt
    • DOORS

      @Nonnull public static final XTag<XMaterial> DOORS
      Tag representing all possible types of doors
    • DRAGON_IMMUNE

      @Nonnull public static final XTag<XMaterial> DRAGON_IMMUNE
      Tag representing all blocks that can't be destroyed by dragons
    • DRIPSTONE_REPLACEABLE

      @Nonnull public static final XTag<XMaterial> DRIPSTONE_REPLACEABLE
      Tag representing all possible blocks that can be replaced by dripstone
    • WALL_HEADS

      @Nonnull public static final XTag<XMaterial> WALL_HEADS
    • EMERALD_ORES

      @Nonnull public static final XTag<XMaterial> EMERALD_ORES
      Tag representing all variants of emerald ores
    • ENDERMAN_HOLDABLE

      @Nonnull public static final XTag<XMaterial> ENDERMAN_HOLDABLE
      Tag representing all possible blocks that can be picked up by endermen
    • FEATURES_CANNOT_REPLACE

      @Nonnull public static final XTag<XMaterial> FEATURES_CANNOT_REPLACE
      Tag representing all blocks that cant be replaced by world generation features
    • FENCE_GATES

      @Nonnull public static final XTag<XMaterial> FENCE_GATES
      Tag representing all possible variants of fence gates
    • FENCES

      @Nonnull public static final XTag<XMaterial> FENCES
      Tag representing all possible variants of fences
    • FILLED_CAULDRONS

      @Nonnull public static final XTag<XMaterial> FILLED_CAULDRONS
      Tag representing all possible variants of filled cauldron
    • FIRE

      @Nonnull public static final XTag<XMaterial> FIRE
      Tag representing all possible variants fire
    • FLOWER_POTS

      @Nonnull public static final XTag<XMaterial> FLOWER_POTS
      Tag representing all possible variants of flower pots
    • FLOWERS

      @Nonnull public static final XTag<XMaterial> FLOWERS
      Tag representing all possible types of flowers
    • FOX_FOOD

      @Nonnull public static final XTag<XMaterial> FOX_FOOD
      Tag representing all items can be used as food for fox
    • FOXES_SPAWNABLE_ON

      @Nonnull public static final XTag<XMaterial> FOXES_SPAWNABLE_ON
      Tag representing all possible blocks foxes may spawn on
    • FREEZE_IMMUNE_WEARABLES

      @Nonnull public static final XTag<XMaterial> FREEZE_IMMUNE_WEARABLES
      Tag representing all possible items can be used to avoid freezing
    • GEODE_INVALID_BLOCKS

      @Nonnull public static final XTag<XMaterial> GEODE_INVALID_BLOCKS
      Tag representing all blocks that geodes will not spawn in
    • GLASS

      @Nonnull public static final XTag<XMaterial> GLASS
      Tag representing all variants of glass
    • GLAZED_TERRACOTTA

      @Nonnull public static final XTag<XMaterial> GLAZED_TERRACOTTA
      Tag representing all possible variants of glazed terracotta
    • GOATS_SPAWNABLE_ON

      @Nonnull public static final XTag<XMaterial> GOATS_SPAWNABLE_ON
      Tag representing all possible blocks goats may spawn on
    • GOLD_ORES

      @Nonnull public static final XTag<XMaterial> GOLD_ORES
      Tag representing all possible variants of gold ores
    • GUARDED_BY_PIGLINS

      @Nonnull public static final XTag<XMaterial> GUARDED_BY_PIGLINS
      Tag representing all block types that are guarded by piglins
    • HANGING_SIGNS

      @Nonnull public static final XTag<XMaterial> HANGING_SIGNS
      Tag representing all possible types of hanging signs
    • HOGLIN_REPELLENTS

      @Nonnull public static final XTag<XMaterial> HOGLIN_REPELLENTS
      Tag representing all block types that repel hoglins
    • ICE

      @Nonnull public static final XTag<XMaterial> ICE
      Tag representing all possible variants of ice
    • IGNORED_BY_PIGLIN_BABIES

      @Nonnull public static final XTag<XMaterial> IGNORED_BY_PIGLIN_BABIES
      Tag representing all items ignored by baby piglins
    • IMPERMEABLE

      @Nonnull public static final XTag<XMaterial> IMPERMEABLE
      Tag representing all possible block types that do not drip water/lava
    • INFINIBURN_END

      @Nonnull public static final XTag<XMaterial> INFINIBURN_END
      Tag representing all block types that can burn for infinitely long in the end
    • INFINIBURN_NETHER

      @Nonnull public static final XTag<XMaterial> INFINIBURN_NETHER
      Tag representing all block types that can burn for infinitely long in the nether
    • INFINIBURN_OVERWORLD

      @Nonnull public static final XTag<XMaterial> INFINIBURN_OVERWORLD
      Tag representing all block types that can burn for infinitely long in the overworld
    • INSIDE_STEP_SOUND_BLOCKS

      @Nonnull public static final XTag<XMaterial> INSIDE_STEP_SOUND_BLOCKS
      Tag representing all block types that play muffled step sounds
    • IRON_ORES

      @Nonnull public static final XTag<XMaterial> IRON_ORES
      Tag representing all possible variants of iron ores
    • ITEMS_ARROWS

      @Nonnull public static final XTag<XMaterial> ITEMS_ARROWS
      Tag representing all possible variants of arrows
    • ITEMS_BANNERS

      @Nonnull public static final XTag<XMaterial> ITEMS_BANNERS
      Tag representing all items that can be used as banners
    • ITEMS_BEACON_PAYMENT_ITEMS

      @Nonnull public static final XTag<XMaterial> ITEMS_BEACON_PAYMENT_ITEMS
      Tag representing all items that can be used to fuel beacon
    • ITEMS_BOATS

      @Nonnull public static final XTag<XMaterial> ITEMS_BOATS
      Tag representing all possible variants of boats
    • ITEMS_COALS

      @Nonnull public static final XTag<XMaterial> ITEMS_COALS
      Tag representing all possible variants of coal
    • ITEMS_CREEPER_DROP_MUSIC_DISCS

      @Nonnull public static final XTag<XMaterial> ITEMS_CREEPER_DROP_MUSIC_DISCS
      Tag representing all possible music discs that can be dropped by creeper
    • ITEMS_FISHES

      @Nonnull public static final XTag<XMaterial> ITEMS_FISHES
      Tag representing all possible types of fish
    • ITEMS_FURNACE_MATERIALS

      @Nonnull public static final XTag<XMaterial> ITEMS_FURNACE_MATERIALS
      Tag representing all furnace materials {empty in spigot as of 1.18}
    • ITEMS_LECTERN_BOOKS

      @Nonnull public static final XTag<XMaterial> ITEMS_LECTERN_BOOKS
      Tag representing all possible book types that can be placed on lecterns
    • ITEMS_MUSIC_DISCS

      @Nonnull public static final XTag<XMaterial> ITEMS_MUSIC_DISCS
      Tag representing all types of music discs
    • ITEMS_PIGLIN_LOVED

      @Nonnull public static final XTag<XMaterial> ITEMS_PIGLIN_LOVED
      Tag representing all items loved by piglins
    • ITEMS_STONE_TOOL_MATERIALS

      @Nonnull public static final XTag<XMaterial> ITEMS_STONE_TOOL_MATERIALS
      Tag representing all stone tool materials
    • WALL_BANNERS

      @Nonnull public static final XTag<XMaterial> WALL_BANNERS
      Tag representing all possible types of wall banners
    • JUNGLE_LOGS

      @Nonnull public static final XTag<XMaterial> JUNGLE_LOGS
      Tag representing all jungle log and bark variants
    • LAPIS_ORES

      @Nonnull public static final XTag<XMaterial> LAPIS_ORES
      Tag representing all possible variants of lapis ores
    • LAVA_POOL_STONE_CANNOT_REPLACE

      @Nonnull public static final XTag<XMaterial> LAVA_POOL_STONE_CANNOT_REPLACE
      Tag representing all blocks that can't be replaced by lava pools
    • LEAVES

      @Nonnull public static final XTag<XMaterial> LEAVES
      Tag representing all types of leaves
    • LOGS

      @Nonnull public static final XTag<XMaterial> LOGS
      Tag representing all wood and bark variants
    • LOGS_THAT_BURN

      @Nonnull public static final XTag<XMaterial> LOGS_THAT_BURN
      Tag representing all wood and bark variants that can catch fire
    • LUSH_GROUND_REPLACEABLE

      @Nonnull public static final XTag<XMaterial> LUSH_GROUND_REPLACEABLE
      Tag representing all possible blocks that can be replaced by lush ground
    • MANGROVE_LOGS

      @Nonnull public static final XTag<XMaterial> MANGROVE_LOGS
      Tag representing all mangrove log and bark variants
    • MINEABLE_AXE

      @Nonnull public static final XTag<XMaterial> MINEABLE_AXE
      Tag representing all block types mineable with axe
    • MINEABLE_HOE

      @Nonnull public static final XTag<XMaterial> MINEABLE_HOE
      Tag representing all block types mineable with hoe
    • MINEABLE_PICKAXE

      @Nonnull public static final XTag<XMaterial> MINEABLE_PICKAXE
      Tag representing all block types mineable with pickaxe
    • MINEABLE_SHOVEL

      @Nonnull public static final XTag<XMaterial> MINEABLE_SHOVEL
      Tag representing all block types mineable with shovel
    • MOOSHROOMS_SPAWNABLE_ON

      @Nonnull public static final XTag<XMaterial> MOOSHROOMS_SPAWNABLE_ON
      Tag representing all possible block types mooshrooms can spawn on
    • MOSS_REPLACEABLE

      @Nonnull public static final XTag<XMaterial> MOSS_REPLACEABLE
      Tag representing all block types that can be replaced by moss
    • MUSHROOM_GROW_BLOCK

      @Nonnull public static final XTag<XMaterial> MUSHROOM_GROW_BLOCK
    • NEEDS_DIAMOND_TOOL

      @Nonnull public static final XTag<XMaterial> NEEDS_DIAMOND_TOOL
      Tag representing all block types that need minimum of diamond tool to drop items
    • NEEDS_IRON_TOOL

      @Nonnull public static final XTag<XMaterial> NEEDS_IRON_TOOL
      Tag representing all block types that need minimum of iron tool to drop items
    • NEEDS_STONE_TOOL

      @Nonnull public static final XTag<XMaterial> NEEDS_STONE_TOOL
      Tag representing all block types that need minimum of stone tool to drop items
    • NON_FLAMMABLE_WOOD

      @Nonnull public static final XTag<XMaterial> NON_FLAMMABLE_WOOD
      Tag representing all non-flammable wood and bark variants
    • NON_WOODEN_STAIRS

      @Nonnull public static final XTag<XMaterial> NON_WOODEN_STAIRS
      Tag representing all non-wooden stairs
    • NON_WOODEN_SLABS

      @Nonnull public static final XTag<XMaterial> NON_WOODEN_SLABS
      Tag representing all non-wooden slabs
    • NYLIUM

      @Nonnull public static final XTag<XMaterial> NYLIUM
      Tag representing all nylium blocks
    • OAK_LOGS

      @Nonnull public static final XTag<XMaterial> OAK_LOGS
      Tag representing all oak wood and bark variants
    • OCCLUDES_VIBRATION_SIGNALS

      @Nonnull public static final XTag<XMaterial> OCCLUDES_VIBRATION_SIGNALS
      Tag representing all possible blocks that can block vibration signals
    • ORES

      @Nonnull public static final XTag<XMaterial> ORES
      Tag representing all ores
    • PARROTS_SPAWNABLE_ON

      @Nonnull public static final XTag<XMaterial> PARROTS_SPAWNABLE_ON
      Tag representing all possible block types parrots may spawn on
    • PIGLIN_FOOD

      @Nonnull public static final XTag<XMaterial> PIGLIN_FOOD
      Tag representing all items that can be used as piglin food
    • PIGLIN_REPELLENTS

      @Nonnull public static final XTag<XMaterial> PIGLIN_REPELLENTS
      Tag representing all block types that repel piglins
    • PLANKS

      @Nonnull public static final XTag<XMaterial> PLANKS
      Tag representing all types of planks
    • POLAR_BEARS_SPAWNABLE_ON_IN_FROZEN_OCEAN

      @Nonnull public static final XTag<XMaterial> POLAR_BEARS_SPAWNABLE_ON_IN_FROZEN_OCEAN
      Tag representing all possible blocks polar bears may spawn on
    • PORTALS

      @Nonnull public static final XTag<XMaterial> PORTALS
      Tag representing all possible block types that be used as portals
    • POTTERY_SHERDS

      @Nonnull public static final XTag<XMaterial> POTTERY_SHERDS
      Tag representing all possible pottery sherds
    • PRESSURE_PLATES

      @Nonnull public static final XTag<XMaterial> PRESSURE_PLATES
      Tag representing all possible variants of pressure plates
    • PREVENT_MOB_SPAWNING_INSIDE

      @Nonnull public static final XTag<XMaterial> PREVENT_MOB_SPAWNING_INSIDE
      Tag representing all block types that prevent inside mob spawning
    • RABBITS_SPAWNABLE_ON

      @Nonnull public static final XTag<XMaterial> RABBITS_SPAWNABLE_ON
      Tag representing all possible block types that rabbits may spawn on
    • RAILS

      @Nonnull public static final XTag<XMaterial> RAILS
      Tag representing all possible types of rails
    • REDSTONE_ORES

      @Nonnull public static final XTag<XMaterial> REDSTONE_ORES
      Tag representing all possible variants of redstone ores
    • REPLACEABLE_PLANTS

      @Nonnull public static final XTag<XMaterial> REPLACEABLE_PLANTS
      Tag representing all plant blocks that may be replaced
    • SAND

      @Nonnull public static final XTag<XMaterial> SAND
      Tag representing all possible types of sand
    • SAPLINGS

      @Nonnull public static final XTag<XMaterial> SAPLINGS
      Tag representing all possible types of saplings
    • SHULKER_BOXES

      @Nonnull public static final XTag<XMaterial> SHULKER_BOXES
      Tag representing all possible variants of shulker boxes
    • SIGNS

      @Nonnull public static final XTag<XMaterial> SIGNS
      Tag representing all possible variants of signs
    • SMALL_DRIPLEAF_PLACEABLE

      @Nonnull public static final XTag<XMaterial> SMALL_DRIPLEAF_PLACEABLE
      Tag representing all possible block types small dripleaf may be placed upon
    • SMALL_FLOWERS

      @Nonnull public static final XTag<XMaterial> SMALL_FLOWERS
      Tag representing all flowers small in size {1 block tall}
    • SMITHING_TEMPLATES

      @Nonnull public static final XTag<XMaterial> SMITHING_TEMPLATES
      Tag representing all possible smithing templates
    • SNOW

      @Nonnull public static final XTag<XMaterial> SNOW
      Tag representing all possible variants of snow
    • SOUL_FIRE_BASE_BLOCKS

      @Nonnull public static final XTag<XMaterial> SOUL_FIRE_BASE_BLOCKS
      Tag representing all possible blocks that can be lit up with sould fire
    • SOUL_SPEED_BLOCKS

      @Nonnull public static final XTag<XMaterial> SOUL_SPEED_BLOCKS
      Tag representing all possible blocks that activate soul speed enchantment
    • SPRUCE_LOGS

      @Nonnull public static final XTag<XMaterial> SPRUCE_LOGS
      Tag representing all spruce wood and log variants
    • STAIRS

      @Nonnull public static final XTag<XMaterial> STAIRS
      Tag representing all possible types of stairs
    • STANDING_SIGNS

      @Nonnull public static final XTag<XMaterial> STANDING_SIGNS
      Tag representing all possible types of standing signs
    • STONE_BRICKS

      @Nonnull public static final XTag<XMaterial> STONE_BRICKS
      Tag representing all possible variants of stone bricks
    • STONE_ORE_REPLACEABLES

      @Nonnull public static final XTag<XMaterial> STONE_ORE_REPLACEABLES
      Tag representing all possible blocks that can be replaced by regular stone ores
    • STONE_PRESSURE_PLATES

      @Nonnull public static final XTag<XMaterial> STONE_PRESSURE_PLATES
      Tag representing all pressure plates made of some type of stone
    • STRIDER_WARM_BLOCKS

      @Nonnull public static final XTag<XMaterial> STRIDER_WARM_BLOCKS
      Tag representing all block types that make strider warm
    • TALL_FLOWERS

      @Nonnull public static final XTag<XMaterial> TALL_FLOWERS
      Tag representing all flowers that are tall {2 blocks}
    • TERRACOTTA

      @Nonnull public static final XTag<XMaterial> TERRACOTTA
      Tag representing all possible variants of non-glazed terracotta
    • TRAPDOORS

      @Nonnull public static final XTag<XMaterial> TRAPDOORS
      Tag representing all possible types of trapdoors
    • UNDERWATER_BONEMEALS

      @Nonnull public static final XTag<XMaterial> UNDERWATER_BONEMEALS
      Tag representing all block types that can be bonemealed underwater
    • UNSTABLE_BOTTOM_CENTER

      @Nonnull public static final XTag<XMaterial> UNSTABLE_BOTTOM_CENTER
      Tag representing all blocks that have unstable bottom when placed in centre of 2 blocks
    • VALID_SPAWN

      @Nonnull public static final XTag<XMaterial> VALID_SPAWN
      Tag representing all valid mob spawn positions
    • WALL_HANGING_SIGNS

      @Nonnull public static final XTag<XMaterial> WALL_HANGING_SIGNS
      Tag representing all possible variants of wall hanging sign
    • WALL_POST_OVERRIDE

      @Nonnull public static final XTag<XMaterial> WALL_POST_OVERRIDE
      Tag representing all possible block types that can override a wall post creation
    • WALL_SIGNS

      @Nonnull public static final XTag<XMaterial> WALL_SIGNS
      Tag representing all wall signs
    • WALL_TORCHES

      @Nonnull public static final XTag<XMaterial> WALL_TORCHES
      Tag representing all possible types of wall torches
    • WALLS

      @Nonnull public static final XTag<XMaterial> WALLS
      Tag representing all different types of walls
    • WARPED_STEMS

      @Nonnull public static final XTag<XMaterial> WARPED_STEMS
      Tag representing all warped stems
    • WITHER_IMMUNE

      @Nonnull public static final XTag<XMaterial> WITHER_IMMUNE
      Tag representing all block types that can't be destroyed by withers
    • WITHER_SUMMON_BASE_BLOCKS

      @Nonnull public static final XTag<XMaterial> WITHER_SUMMON_BASE_BLOCKS
      Tag representing all possible block types that may be used as wither summon base
    • WOLVES_SPAWNABLE_ON

      @Nonnull public static final XTag<XMaterial> WOLVES_SPAWNABLE_ON
      Tag representing all possible block types that wolves may spawn on
    • WOODEN_BUTTONS

      @Nonnull public static final XTag<XMaterial> WOODEN_BUTTONS
      Tag representing all possible types of wooden buttons
    • WOODEN_DOORS

      @Nonnull public static final XTag<XMaterial> WOODEN_DOORS
      Tag representing all possible types of wooden doors
    • WOODEN_FENCE_GATES

      @Nonnull public static final XTag<XMaterial> WOODEN_FENCE_GATES
      Tag representing all possible types of wooden fence gates
    • WOODEN_FENCES

      @Nonnull public static final XTag<XMaterial> WOODEN_FENCES
      Tag representing all possible types of wooden fences
    • WOODEN_PRESSURE_PLATES

      @Nonnull public static final XTag<XMaterial> WOODEN_PRESSURE_PLATES
      Tag representing all possible types of wooden pressure plates
    • WOODEN_SLABS

      @Nonnull public static final XTag<XMaterial> WOODEN_SLABS
      Tag representing all possible types of wooden slabs
    • WOODEN_STAIRS

      @Nonnull public static final XTag<XMaterial> WOODEN_STAIRS
      Tag representing all possible types of wooden stairs
    • WOODEN_TRAPDOORS

      @Nonnull public static final XTag<XMaterial> WOODEN_TRAPDOORS
      Tag representing all possible types of wooden trapdoors
    • WOOL

      @Nonnull public static final XTag<XMaterial> WOOL
      Tag representing all possible types of wool
    • LEATHER_ARMOR_PIECES

      @Nonnull public static final XTag<XMaterial> LEATHER_ARMOR_PIECES
      Tag representing all armor pieces made of leather
    • IRON_ARMOR_PIECES

      @Nonnull public static final XTag<XMaterial> IRON_ARMOR_PIECES
      Tag representing all armor pieces made of iron
    • CHAINMAIL_ARMOR_PIECES

      @Nonnull public static final XTag<XMaterial> CHAINMAIL_ARMOR_PIECES
      Tag representing all armor pieces made of chains
    • GOLDEN_ARMOR_PIECES

      @Nonnull public static final XTag<XMaterial> GOLDEN_ARMOR_PIECES
      Tag representing all armor pieces made of gold
    • DIAMOND_ARMOR_PIECES

      @Nonnull public static final XTag<XMaterial> DIAMOND_ARMOR_PIECES
      Tag representing all armor pieces made of diamond
    • NETHERITE_ARMOR_PIECES

      @Nonnull public static final XTag<XMaterial> NETHERITE_ARMOR_PIECES
      Tag representing all armor pieces made of netherite
    • ARMOR_PIECES

      @Nonnull public static final XTag<XMaterial> ARMOR_PIECES
      Tag representing all armor pieces that add armor bars upon wearing
    • WOODEN_TOOLS

      @Nonnull public static final XTag<XMaterial> WOODEN_TOOLS
      Tag representing all wooden tools and swords
    • FLUID

      @Nonnull public static final XTag<XMaterial> FLUID
      This doesn't refer to all materials that contain fluids, but pure fluids.
    • STONE_TOOLS

      @Nonnull public static final XTag<XMaterial> STONE_TOOLS
      Tag representing all stone tools and swords
    • IRON_TOOLS

      @Nonnull public static final XTag<XMaterial> IRON_TOOLS
      Tag representing all iron tools and swords
    • DIAMOND_TOOLS

      @Nonnull public static final XTag<XMaterial> DIAMOND_TOOLS
      Tag representing all diamond tools and swords
    • NETHERITE_TOOLS

      @Nonnull public static final XTag<XMaterial> NETHERITE_TOOLS
      Tag representing all netherite tools and swords
    • ARMOR_ENCHANTS

      @Nonnull public static final XTag<XEnchantment> ARMOR_ENCHANTS
      Tag representing all possible enchants that can be applied to all armor pieces (excluding elytras)
    • HELEMT_ENCHANTS

      @Nonnull public static final XTag<XEnchantment> HELEMT_ENCHANTS
      Tag representing all possible enchants that can be applied to helmets/turtle shells
    • CHESTPLATE_ENCHANTS

      @Nonnull public static final XTag<XEnchantment> CHESTPLATE_ENCHANTS
      Tag representing all possible enchants that can be applied to chestplates
    • LEGGINGS_ENCHANTS

      @Nonnull public static final XTag<XEnchantment> LEGGINGS_ENCHANTS
      Tag representing all possible enchants that can be applied to leggings
    • BOOTS_ENCHANTS

      @Nonnull public static final XTag<XEnchantment> BOOTS_ENCHANTS
      Tag representing all possible enchants that can be applied to boots
    • ELYTRA_ENCHANTS

      @Nonnull public static final XTag<XEnchantment> ELYTRA_ENCHANTS
      Tag representing all possible enchants that can be applied to elytras
    • SWORD_ENCHANTS

      @Nonnull public static final XTag<XEnchantment> SWORD_ENCHANTS
      Tag representing all possible enchants that can be applied to swords
    • AXE_ENCHANTS

      @Nonnull public static final XTag<XEnchantment> AXE_ENCHANTS
      Tag representing all possible enchants that can be applied to axes
    • HOE_ENCHANTS

      @Nonnull public static final XTag<XEnchantment> HOE_ENCHANTS
      Tag representing all possible enchants that can be applied to hoes
    • PICKAXE_ENCHANTS

      @Nonnull public static final XTag<XEnchantment> PICKAXE_ENCHANTS
      Tag representing all possible enchants that can be applied to pickaxes
    • SHOVEL_ENCHANTS

      @Nonnull public static final XTag<XEnchantment> SHOVEL_ENCHANTS
      Tag representing all possible enchants that can be applied to shovels
    • SHEARS_ENCHANTS

      @Nonnull public static final XTag<XEnchantment> SHEARS_ENCHANTS
      Tag representing all possible enchants that can be applied to shears
    • BOW_ENCHANTS

      @Nonnull public static final XTag<XEnchantment> BOW_ENCHANTS
      Tag representing all possible enchants that can be applied to bows
    • CROSSBOW_ENCHANTS

      @Nonnull public static final XTag<XEnchantment> CROSSBOW_ENCHANTS
      Tag representing all possible enchants that can be applied to crossbows
  • Method Details

    • stringMatcher

      public static <E> List<XTag.Matcher<E>> stringMatcher(@Nullable Collection<String> elements, @Nullable Collection<XTag.Matcher.Error> errors)
      Compiles a list of string checkers for various classes like XMaterial, XSound, etc. Mostly used for configs.

      Supports String.contains(java.lang.CharSequence) CONTAINS:NAME and Regular Expression REGEX:PATTERN formats.

      Example:

           XMaterial material = XMaterial.matchXMaterial(ItemStack);
           if (XTag.anyMatch(XTag.stringMatcher(plugin.getConfig().getStringList("disabled-items"), null)) return;
       

      CONTAINS Examples:
           "CONTAINS:CHEST" -> CHEST, ENDERCHEST, TRAPPED_CHEST -> true
           "cOnTaINS:dYe" -> GREEN_DYE, YELLOW_DYE, BLUE_DYE, INK_SACK -> true
       

      REGEX Examples

           "REGEX:^.+_.+_.+$" -> Every Material with 3 underlines or more: SHULKER_SPAWN_EGG, SILVERFISH_SPAWN_EGG, SKELETON_HORSE_SPAWN_EGG
           "REGEX:^.{1,3}$" -> Material names that have 3 letters only: BED, MAP, AIR
       

      The reason that there are tags for CONTAINS and REGEX is for the performance. Server owners should be advised to avoid using REGEX tag if they can use the CONTAINS tag instead.

      Want to learn RegEx? You can mess around in RegExr website.

      Parameters:
      elements - the material names to check base material on.
      Returns:
      a compiled list of enum matchers.
    • anyMatch

      public static <T> boolean anyMatch(T target, Collection<XTag.Matcher<T>> matchers)
    • isItem

      public static boolean isItem(XMaterial material)
      Checks if this Material is an obtainable item. "Obtainable items" are simply materials that can be displayed in your GUI. This method is mainly designed to support pre-1.13, servers using 1.13 and above will directly have their materials checked with Material.isItem()
      Returns:
      true if this material is an item, otherwise false if it's not an item or the item is not supported.
      Since:
      1.13
    • isInteractable

      public static boolean isInteractable(XMaterial material)
      Checks if this Material can be interacted with.

      Interactable materials include those with functionality when they are interacted with by a player such as chests, furnaces, etc.

      Some blocks such as piston heads and stairs are considered interactable though may not perform any additional functionality.

      Note that the interactability of some materials may be dependent on their state as well. This method will return true if there is at least one state in which additional interact handling is performed for the material.

      Returns:
      true if this material can be interacted with.
      Since:
      1.13
    • getValues

      @Nonnull public Set<T> getValues()
      Returns:
      Set of all the values represented by the tag
    • isTagged

      public boolean isTagged(@Nullable T value)