java.lang.Object
com.github.retrooper.packetevents.protocol.world.states.defaulttags.BlockTags

public class BlockTags extends Object
This class allows you to use block tags on outdated versions. If you are on a version that sends tags to the player, you are suggested to listen to WrapperPlayServerTags

Might as well just fucking shade the entire vanilla jar if we are going to copy SO MANY HUNDREDS OF LINES

  • Field Details

    • WOOL

      public static final BlockTags WOOL
    • PLANKS

      public static final BlockTags PLANKS
    • STONE_BRICKS

      public static final BlockTags STONE_BRICKS
    • WOODEN_BUTTONS

      public static final BlockTags WOODEN_BUTTONS
    • STONE_BUTTONS

      public static final BlockTags STONE_BUTTONS
    • BUTTONS

      public static final BlockTags BUTTONS
    • WOOL_CARPETS

      public static final BlockTags WOOL_CARPETS
    • WOODEN_DOORS

      public static final BlockTags WOODEN_DOORS
    • WOODEN_STAIRS

      public static final BlockTags WOODEN_STAIRS
    • WOODEN_SLABS

      public static final BlockTags WOODEN_SLABS
    • WOODEN_FENCES

      public static final BlockTags WOODEN_FENCES
    • PRESSURE_PLATES

      public static final BlockTags PRESSURE_PLATES
    • WOODEN_PRESSURE_PLATES

      public static final BlockTags WOODEN_PRESSURE_PLATES
    • STONE_PRESSURE_PLATES

      public static final BlockTags STONE_PRESSURE_PLATES
    • WOODEN_TRAPDOORS

      public static final BlockTags WOODEN_TRAPDOORS
    • DOORS

      public static final BlockTags DOORS
    • SAPLINGS

      public static final BlockTags SAPLINGS
    • LOGS_THAT_BURN

      public static final BlockTags LOGS_THAT_BURN
    • OVERWORLD_NATURAL_LOGS

      public static final BlockTags OVERWORLD_NATURAL_LOGS
    • LOGS

      public static final BlockTags LOGS
    • DARK_OAK_LOGS

      public static final BlockTags DARK_OAK_LOGS
    • OAK_LOGS

      public static final BlockTags OAK_LOGS
    • BIRCH_LOGS

      public static final BlockTags BIRCH_LOGS
    • ACACIA_LOGS

      public static final BlockTags ACACIA_LOGS
    • CHERRY_LOGS

      public static final BlockTags CHERRY_LOGS
    • JUNGLE_LOGS

      public static final BlockTags JUNGLE_LOGS
    • SPRUCE_LOGS

      public static final BlockTags SPRUCE_LOGS
    • MANGROVE_LOGS

      public static final BlockTags MANGROVE_LOGS
    • CRIMSON_STEMS

      public static final BlockTags CRIMSON_STEMS
    • WARPED_STEMS

      public static final BlockTags WARPED_STEMS
    • BAMBOO_BLOCKS

      public static final BlockTags BAMBOO_BLOCKS
    • WART_BLOCKS

      public static final BlockTags WART_BLOCKS
    • BANNERS

      public static final BlockTags BANNERS
    • SAND

      public static final BlockTags SAND
    • SMELTS_TO_GLASS

      public static final BlockTags SMELTS_TO_GLASS
    • STAIRS

      public static final BlockTags STAIRS
    • SLABS

      public static final BlockTags SLABS
    • WALLS

      public static final BlockTags WALLS
    • ANVIL

      public static final BlockTags ANVIL
    • RAILS

      public static final BlockTags RAILS
    • LEAVES

      public static final BlockTags LEAVES
    • TRAPDOORS

      public static final BlockTags TRAPDOORS
    • SMALL_FLOWERS

      public static final BlockTags SMALL_FLOWERS
    • BEDS

      public static final BlockTags BEDS
    • FENCES

      public static final BlockTags FENCES
    • TALL_FLOWERS

      @Obsolete public static final BlockTags TALL_FLOWERS
      Removed with 1.21.4
    • FLOWERS

      public static final BlockTags FLOWERS
    • PIGLIN_REPELLENTS

      public static final BlockTags PIGLIN_REPELLENTS
    • GOLD_ORES

      public static final BlockTags GOLD_ORES
    • IRON_ORES

      public static final BlockTags IRON_ORES
    • DIAMOND_ORES

      public static final BlockTags DIAMOND_ORES
    • REDSTONE_ORES

      public static final BlockTags REDSTONE_ORES
    • LAPIS_ORES

      public static final BlockTags LAPIS_ORES
    • COAL_ORES

      public static final BlockTags COAL_ORES
    • EMERALD_ORES

      public static final BlockTags EMERALD_ORES
    • COPPER_ORES

      public static final BlockTags COPPER_ORES
    • CANDLES

      public static final BlockTags CANDLES
    • DIRT

      public static final BlockTags DIRT
    • TERRACOTTA

      public static final BlockTags TERRACOTTA
    • CONCRETE_POWDER

      public static final BlockTags CONCRETE_POWDER
    • COMPLETES_FIND_TREE_TUTORIAL

      public static final BlockTags COMPLETES_FIND_TREE_TUTORIAL
    • FLOWER_POTS

      public static final BlockTags FLOWER_POTS
    • ENDERMAN_HOLDABLE

      public static final BlockTags ENDERMAN_HOLDABLE
    • ICE

      public static final BlockTags ICE
    • VALID_SPAWN

      public static final BlockTags VALID_SPAWN
    • IMPERMEABLE

      public static final BlockTags IMPERMEABLE
    • UNDERWATER_BONEMEALS

      public static final BlockTags UNDERWATER_BONEMEALS
    • CORAL_BLOCKS

      public static final BlockTags CORAL_BLOCKS
    • WALL_CORALS

      public static final BlockTags WALL_CORALS
    • CORAL_PLANTS

      public static final BlockTags CORAL_PLANTS
    • CORALS

      public static final BlockTags CORALS
    • BAMBOO_PLANTABLE_ON

      public static final BlockTags BAMBOO_PLANTABLE_ON
    • STANDING_SIGNS

      public static final BlockTags STANDING_SIGNS
    • WALL_SIGNS

      public static final BlockTags WALL_SIGNS
    • SIGNS

      public static final BlockTags SIGNS
    • CEILING_HANGING_SIGNS

      public static final BlockTags CEILING_HANGING_SIGNS
    • WALL_HANGING_SIGNS

      public static final BlockTags WALL_HANGING_SIGNS
    • ALL_HANGING_SIGNS

      public static final BlockTags ALL_HANGING_SIGNS
    • ALL_SIGNS

      public static final BlockTags ALL_SIGNS
    • DRAGON_IMMUNE

      public static final BlockTags DRAGON_IMMUNE
    • DRAGON_TRANSPARENT

      public static final BlockTags DRAGON_TRANSPARENT
    • WITHER_IMMUNE

      public static final BlockTags WITHER_IMMUNE
    • WITHER_SUMMON_BASE_BLOCKS

      public static final BlockTags WITHER_SUMMON_BASE_BLOCKS
    • BEEHIVES

      public static final BlockTags BEEHIVES
    • CROPS

      public static final BlockTags CROPS
    • BEE_GROWABLES

      public static final BlockTags BEE_GROWABLES
    • PORTALS

      public static final BlockTags PORTALS
    • FIRE

      public static final BlockTags FIRE
    • NYLIUM

      public static final BlockTags NYLIUM
    • BEACON_BASE_BLOCKS

      public static final BlockTags BEACON_BASE_BLOCKS
    • SOUL_SPEED_BLOCKS

      public static final BlockTags SOUL_SPEED_BLOCKS
    • WALL_POST_OVERRIDE

      public static final BlockTags WALL_POST_OVERRIDE
    • CLIMBABLE

      public static final BlockTags CLIMBABLE
    • FALL_DAMAGE_RESETTING

      public static final BlockTags FALL_DAMAGE_RESETTING
    • SHULKER_BOXES

      public static final BlockTags SHULKER_BOXES
    • HOGLIN_REPELLENTS

      public static final BlockTags HOGLIN_REPELLENTS
    • SOUL_FIRE_BASE_BLOCKS

      public static final BlockTags SOUL_FIRE_BASE_BLOCKS
    • STRIDER_WARM_BLOCKS

      public static final BlockTags STRIDER_WARM_BLOCKS
    • CAMPFIRES

      public static final BlockTags CAMPFIRES
    • GUARDED_BY_PIGLINS

      public static final BlockTags GUARDED_BY_PIGLINS
    • PREVENT_MOB_SPAWNING_INSIDE

      public static final BlockTags PREVENT_MOB_SPAWNING_INSIDE
    • FENCE_GATES

      public static final BlockTags FENCE_GATES
    • UNSTABLE_BOTTOM_CENTER

      public static final BlockTags UNSTABLE_BOTTOM_CENTER
    • MUSHROOM_GROW_BLOCK

      public static final BlockTags MUSHROOM_GROW_BLOCK
    • INFINIBURN_OVERWORLD

      public static final BlockTags INFINIBURN_OVERWORLD
    • INFINIBURN_NETHER

      public static final BlockTags INFINIBURN_NETHER
    • INFINIBURN_END

      public static final BlockTags INFINIBURN_END
    • BASE_STONE_OVERWORLD

      public static final BlockTags BASE_STONE_OVERWORLD
    • STONE_ORE_REPLACEABLES

      public static final BlockTags STONE_ORE_REPLACEABLES
    • DEEPSLATE_ORE_REPLACEABLES

      public static final BlockTags DEEPSLATE_ORE_REPLACEABLES
    • BASE_STONE_NETHER

      public static final BlockTags BASE_STONE_NETHER
    • OVERWORLD_CARVER_REPLACEABLES

      public static final BlockTags OVERWORLD_CARVER_REPLACEABLES
    • NETHER_CARVER_REPLACEABLES

      public static final BlockTags NETHER_CARVER_REPLACEABLES
    • CANDLE_CAKES

      public static final BlockTags CANDLE_CAKES
    • CAULDRONS

      public static final BlockTags CAULDRONS
    • CRYSTAL_SOUND_BLOCKS

      public static final BlockTags CRYSTAL_SOUND_BLOCKS
    • INSIDE_STEP_SOUND_BLOCKS

      public static final BlockTags INSIDE_STEP_SOUND_BLOCKS
    • COMBINATION_STEP_SOUND_BLOCKS

      public static final BlockTags COMBINATION_STEP_SOUND_BLOCKS
    • CAMEL_SAND_STEP_SOUND_BLOCKS

      public static final BlockTags CAMEL_SAND_STEP_SOUND_BLOCKS
    • OCCLUDES_VIBRATION_SIGNALS

      public static final BlockTags OCCLUDES_VIBRATION_SIGNALS
    • DAMPENS_VIBRATIONS

      public static final BlockTags DAMPENS_VIBRATIONS
    • DRIPSTONE_REPLACEABLE_BLOCKS

      public static final BlockTags DRIPSTONE_REPLACEABLE_BLOCKS
    • DRIPSTONE_REPLACEABLE

      @Deprecated public static final BlockTags DRIPSTONE_REPLACEABLE
      Deprecated.
    • CAVE_VINES

      public static final BlockTags CAVE_VINES
    • MOSS_REPLACEABLE

      public static final BlockTags MOSS_REPLACEABLE
    • LUSH_GROUND_REPLACEABLE

      public static final BlockTags LUSH_GROUND_REPLACEABLE
    • AZALEA_ROOT_REPLACEABLE

      public static final BlockTags AZALEA_ROOT_REPLACEABLE
    • SMALL_DRIPLEAF_PLACEABLE

      public static final BlockTags SMALL_DRIPLEAF_PLACEABLE
    • BIG_DRIPLEAF_PLACEABLE

      public static final BlockTags BIG_DRIPLEAF_PLACEABLE
    • SNOW

      public static final BlockTags SNOW
    • MINEABLE_AXE

      public static final BlockTags MINEABLE_AXE
    • MINEABLE_HOE

      public static final BlockTags MINEABLE_HOE
    • MINEABLE_PICKAXE

      public static final BlockTags MINEABLE_PICKAXE
    • MINEABLE_SHOVEL

      public static final BlockTags MINEABLE_SHOVEL
    • MINEABLE_WITH_AXE

      @Deprecated public static final BlockTags MINEABLE_WITH_AXE
      Deprecated.
    • MINEABLE_WITH_HOE

      @Deprecated public static final BlockTags MINEABLE_WITH_HOE
      Deprecated.
    • MINEABLE_WITH_PICKAXE

      @Deprecated public static final BlockTags MINEABLE_WITH_PICKAXE
      Deprecated.
    • MINEABLE_WITH_SHOVEL

      @Deprecated public static final BlockTags MINEABLE_WITH_SHOVEL
      Deprecated.
    • SWORD_EFFICIENT

      public static final BlockTags SWORD_EFFICIENT
    • NEEDS_DIAMOND_TOOL

      public static final BlockTags NEEDS_DIAMOND_TOOL
    • NEEDS_IRON_TOOL

      public static final BlockTags NEEDS_IRON_TOOL
    • NEEDS_STONE_TOOL

      public static final BlockTags NEEDS_STONE_TOOL
    • FEATURES_CANNOT_REPLACE

      public static final BlockTags FEATURES_CANNOT_REPLACE
    • LAVA_POOL_STONE_CANNOT_REPLACE

      public static final BlockTags LAVA_POOL_STONE_CANNOT_REPLACE
    • GEODE_INVALID_BLOCKS

      public static final BlockTags GEODE_INVALID_BLOCKS
    • FROG_PREFER_JUMP_TO

      public static final BlockTags FROG_PREFER_JUMP_TO
    • SCULK_REPLACEABLE

      public static final BlockTags SCULK_REPLACEABLE
    • SCULK_REPLACEABLE_WORLD_GEN

      public static final BlockTags SCULK_REPLACEABLE_WORLD_GEN
    • ANCIENT_CITY_REPLACEABLE

      public static final BlockTags ANCIENT_CITY_REPLACEABLE
    • VIBRATION_RESONATORS

      public static final BlockTags VIBRATION_RESONATORS
    • ANIMALS_SPAWNABLE_ON

      public static final BlockTags ANIMALS_SPAWNABLE_ON
    • AXOLOTLS_SPAWNABLE_ON

      public static final BlockTags AXOLOTLS_SPAWNABLE_ON
    • GOATS_SPAWNABLE_ON

      public static final BlockTags GOATS_SPAWNABLE_ON
    • MOOSHROOMS_SPAWNABLE_ON

      public static final BlockTags MOOSHROOMS_SPAWNABLE_ON
    • PARROTS_SPAWNABLE_ON

      public static final BlockTags PARROTS_SPAWNABLE_ON
    • POLAR_BEARS_SPAWNABLE_ON_ALTERNATE

      public static final BlockTags POLAR_BEARS_SPAWNABLE_ON_ALTERNATE
    • RABBITS_SPAWNABLE_ON

      public static final BlockTags RABBITS_SPAWNABLE_ON
    • FOXES_SPAWNABLE_ON

      public static final BlockTags FOXES_SPAWNABLE_ON
    • WOLVES_SPAWNABLE_ON

      public static final BlockTags WOLVES_SPAWNABLE_ON
    • FROGS_SPAWNABLE_ON

      public static final BlockTags FROGS_SPAWNABLE_ON
    • AZALEA_GROWS_ON

      public static final BlockTags AZALEA_GROWS_ON
    • REPLACEABLE_PLANTS

      @Deprecated public static final BlockTags REPLACEABLE_PLANTS
      Deprecated.
    • CONVERTABLE_TO_MUD

      public static final BlockTags CONVERTABLE_TO_MUD
    • MANGROVE_LOGS_CAN_GROW_THROUGH

      public static final BlockTags MANGROVE_LOGS_CAN_GROW_THROUGH
    • MANGROVE_ROOTS_CAN_GROW_THROUGH

      public static final BlockTags MANGROVE_ROOTS_CAN_GROW_THROUGH
    • DEAD_BUSH_MAY_PLACE_ON

      public static final BlockTags DEAD_BUSH_MAY_PLACE_ON
    • SNAPS_GOAT_HORN

      public static final BlockTags SNAPS_GOAT_HORN
    • REPLACEABLE_BY_TREES

      public static final BlockTags REPLACEABLE_BY_TREES
    • SNOW_LAYER_CANNOT_SURVIVE_ON

      public static final BlockTags SNOW_LAYER_CANNOT_SURVIVE_ON
    • SNOW_LAYER_CAN_SURVIVE_ON

      public static final BlockTags SNOW_LAYER_CAN_SURVIVE_ON
    • INVALID_SPAWN_INSIDE

      public static final BlockTags INVALID_SPAWN_INSIDE
    • SNIFFER_DIGGABLE_BLOCK

      public static final BlockTags SNIFFER_DIGGABLE_BLOCK
    • SNIFFER_EGG_HATCH_BOOST

      public static final BlockTags SNIFFER_EGG_HATCH_BOOST
    • TRAIL_RUINS_REPLACEABLE

      public static final BlockTags TRAIL_RUINS_REPLACEABLE
    • REPLACEABLE

      public static final BlockTags REPLACEABLE
    • ENCHANTMENT_POWER_PROVIDER

      public static final BlockTags ENCHANTMENT_POWER_PROVIDER
    • ENCHANTMENT_POWER_TRANSMITTER

      public static final BlockTags ENCHANTMENT_POWER_TRANSMITTER
    • MAINTAINS_FARMLAND

      public static final BlockTags MAINTAINS_FARMLAND
    • ARMADILLO_SPAWNABLE_ON

      public static final BlockTags ARMADILLO_SPAWNABLE_ON
      Added with 1.20.5
    • BADLANDS_TERRACOTTA

      public static final BlockTags BADLANDS_TERRACOTTA
      Added with 1.20.5
    • BLOCKS_WIND_CHARGE_EXPLOSIONS

      public static final BlockTags BLOCKS_WIND_CHARGE_EXPLOSIONS
      Added with 1.20.5
    • DOES_NOT_BLOCK_HOPPERS

      public static final BlockTags DOES_NOT_BLOCK_HOPPERS
      Added with 1.20.5
    • INCORRECT_FOR_DIAMOND_TOOL

      public static final BlockTags INCORRECT_FOR_DIAMOND_TOOL
      Added with 1.20.5
    • INCORRECT_FOR_GOLD_TOOL

      public static final BlockTags INCORRECT_FOR_GOLD_TOOL
      Added with 1.20.5
    • INCORRECT_FOR_IRON_TOOL

      public static final BlockTags INCORRECT_FOR_IRON_TOOL
      Added with 1.20.5
    • INCORRECT_FOR_NETHERITE_TOOL

      public static final BlockTags INCORRECT_FOR_NETHERITE_TOOL
      Added with 1.20.5
    • INCORRECT_FOR_STONE_TOOL

      public static final BlockTags INCORRECT_FOR_STONE_TOOL
      Added with 1.20.5
    • INCORRECT_FOR_WOODEN_TOOL

      public static final BlockTags INCORRECT_FOR_WOODEN_TOOL
      Added with 1.20.5
    • PALE_OAK_LOGS

      public static final BlockTags PALE_OAK_LOGS
      Added with 1.21.2
    • AIR

      public static final BlockTags AIR
      Added with 1.21.2
    • MOB_INTERACTABLE_DOORS

      public static final BlockTags MOB_INTERACTABLE_DOORS
      Added with 1.21.2
    • BATS_SPAWNABLE_ON

      public static final BlockTags BATS_SPAWNABLE_ON
      Added with 1.21.2
    • BEE_ATTRACTIVE

      public static final BlockTags BEE_ATTRACTIVE
      Added with 1.21.4
    • GLASS_BLOCKS

      public static final BlockTags GLASS_BLOCKS
      Unofficial tag for all glass blocks
    • GLASS_PANES

      public static final BlockTags GLASS_PANES
      Unofficial tag for all glass panes
  • Constructor Details

    • BlockTags

      public BlockTags(String name)
  • Method Details

    • contains

      public boolean contains(StateType state)
    • getName

      public String getName()
    • getByName

      public static BlockTags getByName(String name)
    • getStates

      public Set<StateType> getStates()
    • isReallyEmpty

      @VisibleForTesting public boolean isReallyEmpty()