Package org.bukkit

Interface Tag<T extends Keyed>

  • Type Parameters:
    T - the type of things grouped by this tag
    All Superinterfaces:
    Keyed

    public interface Tag<T extends Keyed>
    extends Keyed
    Represents a tag that may be defined by the server or a resource pack to group like things together. Note that whilst all tags defined within this interface must be present in implementations, their existence is not guaranteed across future versions.
    • Field Detail

      • WOOL

        static final Tag<Material> WOOL
        Vanilla block tag representing all colors of wool.
      • PLANKS

        static final Tag<Material> PLANKS
        Vanilla block tag representing all plank variants.
      • STONE_BRICKS

        static final Tag<Material> STONE_BRICKS
        Vanilla block tag representing all regular/mossy/cracked/chiseled stone bricks.
      • WOODEN_BUTTONS

        static final Tag<Material> WOODEN_BUTTONS
        Vanilla block tag representing all wooden buttons.
      • CARPETS

        static final Tag<Material> CARPETS
        Vanilla block tag representing all colors of carpet.
      • WOODEN_DOORS

        static final Tag<Material> WOODEN_DOORS
        Vanilla block tag representing all wooden doors.
      • WOODEN_STAIRS

        static final Tag<Material> WOODEN_STAIRS
        Vanilla block tag representing all wooden stairs.
      • WOODEN_SLABS

        static final Tag<Material> WOODEN_SLABS
        Vanilla block tag representing all wooden slabs.
      • WOODEN_FENCES

        static final Tag<Material> WOODEN_FENCES
        Vanilla block tag representing all wooden fences.
      • WOODEN_PRESSURE_PLATES

        static final Tag<Material> WOODEN_PRESSURE_PLATES
        Vanilla block tag representing all wooden pressure plates.
      • WOODEN_TRAPDOORS

        static final Tag<Material> WOODEN_TRAPDOORS
        Vanilla block tag representing all wooden trapdoors.
      • SAPLINGS

        static final Tag<Material> SAPLINGS
        Vanilla block tag representing all sapling variants.
      • LOGS

        static final Tag<Material> LOGS
        Vanilla block tag representing all log and bark variants.
      • DARK_OAK_LOGS

        static final Tag<Material> DARK_OAK_LOGS
        Vanilla block tag representing all dark oak log and bark variants.
      • OAK_LOGS

        static final Tag<Material> OAK_LOGS
        Vanilla block tag representing all oak log and bark variants.
      • BIRCH_LOGS

        static final Tag<Material> BIRCH_LOGS
        Vanilla block tag representing all birch log and bark variants.
      • ACACIA_LOGS

        static final Tag<Material> ACACIA_LOGS
        Vanilla block tag representing all acacia log and bark variants.
      • JUNGLE_LOGS

        static final Tag<Material> JUNGLE_LOGS
        Vanilla block tag representing all jungle log and bark variants.
      • SPRUCE_LOGS

        static final Tag<Material> SPRUCE_LOGS
        Vanilla block tag representing all spruce log and bark variants.
      • BANNERS

        static final Tag<Material> BANNERS
        Vanilla block tag representing all banner blocks.
      • SAND

        static final Tag<Material> SAND
        Vanilla block tag representing all sand blocks.
      • STAIRS

        static final Tag<Material> STAIRS
        Vanilla block tag representing all stairs.
      • SLABS

        static final Tag<Material> SLABS
        Vanilla block tag representing all slabs.
      • WALLS

        static final Tag<Material> WALLS
        Vanilla block tag representing all walls.
      • ANVIL

        static final Tag<Material> ANVIL
        Vanilla block tag representing all damaged and undamaged anvils.
      • RAILS

        static final Tag<Material> RAILS
        Vanilla block tag representing all Minecart rails.
      • LEAVES

        static final Tag<Material> LEAVES
        Vanilla block tag representing all leaves fans.
      • FLOWER_POTS

        static final Tag<Material> FLOWER_POTS
        Vanilla block tag representing all empty and filled flower pots.
      • SMALL_FLOWERS

        static final Tag<Material> SMALL_FLOWERS
        Vanilla block tag representing all small flowers.
      • BEDS

        static final Tag<Material> BEDS
        Vanilla block tag representing all beds.
      • FENCES

        static final Tag<Material> FENCES
        Vanilla block tag representing all fences.
      • ENDERMAN_HOLDABLE

        static final Tag<Material> ENDERMAN_HOLDABLE
        Vanilla block tag denoting blocks that enderman may pick up and hold.
      • ICE

        static final Tag<Material> ICE
        Vanilla block tag denoting ice blocks.
      • VALID_SPAWN

        static final Tag<Material> VALID_SPAWN
        Vanilla block tag denoting all valid mob spawn positions.
      • IMPERMEABLE

        static final Tag<Material> IMPERMEABLE
        Vanilla block tag denoting impermeable blocks which do not drip fluids.
      • UNDERWATER_BONEMEALS

        static final Tag<Material> UNDERWATER_BONEMEALS
        Vanilla block tag denoting all underwater blocks which may be bonemealed.
      • CORAL_BLOCKS

        static final Tag<Material> CORAL_BLOCKS
        Vanilla block tag representing all coral blocks.
      • WALL_CORALS

        static final Tag<Material> WALL_CORALS
        Vanilla block tag representing all wall corals.
      • CORAL_PLANTS

        static final Tag<Material> CORAL_PLANTS
        Vanilla block tag representing all coral plants.
      • CORALS

        static final Tag<Material> CORALS
        Vanilla block tag representing all coral.
      • BAMBOO_PLANTABLE_ON

        static final Tag<Material> BAMBOO_PLANTABLE_ON
        Vanilla block tag denoting all blocks bamboo may be planted on.
      • DIRT_LIKE

        static final Tag<Material> DIRT_LIKE
        Vanilla block tag denoting dirt like blocks.
      • STANDING_SIGNS

        static final Tag<Material> STANDING_SIGNS
        Vanilla block tag representing all standing signs.
      • WALL_SIGNS

        static final Tag<Material> WALL_SIGNS
        Vanilla block tag representing all wall signs.
      • SIGNS

        static final Tag<Material> SIGNS
        Vanilla block tag representing all signs.
      • ITEMS_BANNERS

        static final Tag<Material> ITEMS_BANNERS
        Vanilla item tag representing all banner items.
      • ITEMS_BOATS

        static final Tag<Material> ITEMS_BOATS
        Vanilla item tag representing all boat items.
      • ITEMS_FISHES

        static final Tag<Material> ITEMS_FISHES
        Vanilla item tag representing all fish items.
      • ITEMS_MUSIC_DISCS

        static final Tag<Material> ITEMS_MUSIC_DISCS
        Vanilla item tag representing all music disc items.
      • ITEMS_COALS

        static final Tag<Material> ITEMS_COALS
        Vanilla item tag representing all coal items.
      • ITEMS_ARROWS

        static final Tag<Material> ITEMS_ARROWS
        Vanilla item tag representing all arrow items.
    • Method Detail

      • isTagged

        boolean isTagged​(@NotNull
                         T item)
        Returns whether or not this tag has an entry for the specified item.
        Parameters:
        item - to check
        Returns:
        if it is tagged
      • getValues

        @NotNull
        Set<T> getValues()
        Gets an immutable set of all tagged items.
        Returns:
        set of tagged items