Class ItemLists

java.lang.Object
com.palmergames.bukkit.towny.object.AbstractRegistryList<org.bukkit.Material>
com.palmergames.bukkit.util.ItemLists

public class ItemLists extends AbstractRegistryList<org.bukkit.Material>
Item lists as Strings. Useful for groups that are missing from the Spigot Tags.
Did not use Materials because then we would be limited to specific versions of MC as new items are added.
Author:
LlmDl
  • Field Details

    • AXES

      public static final ItemLists AXES
      List of Axe items.
    • SWORDS

      public static final ItemLists SWORDS
      List of Sword items.
    • BOWS

      public static final ItemLists BOWS
      List of Bow items.
    • WEAPONS

      public static final ItemLists WEAPONS
      List of Weapon items.
    • ARMOURS

      public static final ItemLists ARMOURS
      List of Armour items.
    • DYES

      public static final ItemLists DYES
      List of Dye items.
    • REDSTONE_INTERACTABLES

      public static final ItemLists REDSTONE_INTERACTABLES
      List of Redstone blocks that can be interacted with.
    • POTTED_PLANTS

      public static final ItemLists POTTED_PLANTS
      List of Potted Plants.
    • FLOWERS

      public static final ItemLists FLOWERS
      List of Flowers.
    • ORES

      public static final ItemLists ORES
      List of Ores and Valuable Raw Materials.
    • SAPLINGS

      public static final ItemLists SAPLINGS
      List of Saplings.
    • PLANTABLES

      public static final ItemLists PLANTABLES
      List of Plantable plants.
    • CROPS

      public static final ItemLists CROPS
      List of Crops.
    • TREES

      public static final ItemLists TREES
      List of Trees and Leaves.
    • LEAVES

      public static final ItemLists LEAVES
      List of Leaves.
    • BEDS

      public static final ItemLists BEDS
      List of Beds.
    • SIGNS

      public static final ItemLists SIGNS
      List of Signs.
    • TORCHES

      public static final ItemLists TORCHES
      List of Torches
    • SKULLS

      public static final ItemLists SKULLS
      List of Skulls and Heads
    • BOATS

      public static final ItemLists BOATS
      List of Boats.
    • MINECARTS

      public static final ItemLists MINECARTS
      List of Minecarts.
    • WOOD_DOORS

      public static final ItemLists WOOD_DOORS
      List of Wooden Doors.
    • DOORS

      public static final ItemLists DOORS
      List of Doors.
    • FENCE_GATES

      public static final ItemLists FENCE_GATES
      List of Fence Gates.
    • TRAPDOORS

      public static final ItemLists TRAPDOORS
      List of Trap Doors.
    • SHULKER_BOXES

      public static final ItemLists SHULKER_BOXES
      List of Shulker Boxes.
    • PRESSURE_PLATES

      public static final ItemLists PRESSURE_PLATES
      List of Pressure Plates.
    • NON_WOODEN_PRESSURE_PLATES

      public static final ItemLists NON_WOODEN_PRESSURE_PLATES
      List of Non-Wooden Pressure Plates.
    • BUTTONS

      public static final ItemLists BUTTONS
      List of Buttons.
    • PROJECTILE_TRIGGERED_REDSTONE

      public static final ItemLists PROJECTILE_TRIGGERED_REDSTONE
      List of materials that will activate redstone when triggered by a projectile.
    • BUCKETS

      public static final ItemLists BUCKETS
      List of Buckets.
    • COPPER_BLOCKS

      public static final ItemLists COPPER_BLOCKS
      List of Copper Blocks.
    • WEATHERABLE_BLOCKS

      public static final ItemLists WEATHERABLE_BLOCKS
      List of Weatherable Blocks.
    • WAXED_BLOCKS

      public static final ItemLists WAXED_BLOCKS
      List of Scrapable Blocks (They can lose their wax.)
    • CANDLES

      public static final ItemLists CANDLES
      List of Candles
    • ITEM_FRAMES

      public static final ItemLists ITEM_FRAMES
      List of Item Frames
    • HANGING_ENTITIES

      public static final ItemLists HANGING_ENTITIES
      List of Hanging entities
    • CAMPFIRES

      public static final ItemLists CAMPFIRES
      List of Campfires
    • BOOK_CONTAINERS

      public static final ItemLists BOOK_CONTAINERS
      List of blocks that can hold books
    • PLACEABLE_BOOKS

      public static final ItemLists PLACEABLE_BOOKS
      List of placeable books
    • HARVESTABLE_BERRIES

      public static final ItemLists HARVESTABLE_BERRIES
      List of harvestable berries
    • MINECART_KILLERS

      public static final ItemLists MINECART_KILLERS
    • UNSTRIPPED_WOOD

      public static final ItemLists UNSTRIPPED_WOOD
    • CAULDRONS

      public static final ItemLists CAULDRONS
    • FILLED_CAULDRONS

      public static final ItemLists FILLED_CAULDRONS
    • CAULDRON_FILLABLE

      public static final ItemLists CAULDRON_FILLABLE
    • LIQUID_BLOCKS

      public static final ItemLists LIQUID_BLOCKS
      List of liquid blocks
    • HOES

      public static final ItemLists HOES
      List of hoes
    • BRUSHABLE_BLOCKS

      public static final ItemLists BRUSHABLE_BLOCKS
    • PROJECTILE_BREAKABLE_BLOCKS

      public static final ItemLists PROJECTILE_BREAKABLE_BLOCKS
    • PLANTS

      public static final ItemLists PLANTS
      List of Plants.
    • AIR_TYPES

      public static final ItemLists AIR_TYPES
      Minecraft uses 3 types of air
    • BANNERS

      public static final ItemLists BANNERS
      List of all the banners
    • CORAL_FANS

      public static final ItemLists CORAL_FANS
      List of wall coral fans, players can fall through these
    • NOT_SOLID_BLOCKS

      public static final ItemLists NOT_SOLID_BLOCKS
      List of solid blocks
    • FALLING_BLOCKS

      public static final ItemLists FALLING_BLOCKS
    • EXPLODABLE_ATTACHABLES

      public static final ItemLists EXPLODABLE_ATTACHABLES
      List of blocks which, when exploded, will not have their drops set to false, despite our asking.
    • GROUPS

      public static final Set<String> GROUPS
      Config-useable material groups.
  • Method Details

    • contains

      public boolean contains(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack)
    • getMaterialNameCollection

      @Internal public Collection<String> getMaterialNameCollection()
    • getGrouping

      @NotNull public static @NotNull @Unmodifiable Set<org.bukkit.Material> getGrouping(String groupName)
      Returns a pre-configured list from the GROUPS.
      Parameters:
      groupName - - String value of one of the GROUPS
      Returns:
      - Set<Material> grouping of materials, or an empty set if the grouping was not found.
    • newBuilder

      public static AbstractRegistryList.Builder<org.bukkit.Material,ItemLists> newBuilder()