Package com.palmergames.bukkit.util
Class ItemLists
java.lang.Object
com.palmergames.bukkit.towny.object.AbstractRegistryList<org.bukkit.Material>
com.palmergames.bukkit.util.ItemLists
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.
Did not use Materials because then we would be limited to specific versions of MC as new items are added.
- Author:
- LlmDl
-
Nested Class Summary
Nested classes/interfaces inherited from class com.palmergames.bukkit.towny.object.AbstractRegistryList
AbstractRegistryList.Builder<T extends org.bukkit.Keyed,
F extends AbstractRegistryList<T>> -
Field Summary
Modifier and TypeFieldDescriptionstatic final ItemLists
List of Axe items.static final ItemLists
List of Beds.static final ItemLists
List of Boats.static final ItemLists
List of blocks that can hold booksstatic final ItemLists
static final ItemLists
List of Buckets.static final ItemLists
List of Buttons.static final ItemLists
List of Campfiresstatic final ItemLists
List of Candlesstatic final ItemLists
static final ItemLists
static final ItemLists
List of Copper Blocks.static final ItemLists
List of Crops.static final ItemLists
List of Doors.static final ItemLists
List of Dye items.static final ItemLists
List of blocks which, when exploded, will not have their drops set to false, despite our asking.static final ItemLists
static final ItemLists
List of Fence Gates.static final ItemLists
static final ItemLists
List of Flowers.Config-useable material groups.static final ItemLists
List of Hanging entitiesstatic final ItemLists
List of harvestable berriesstatic final ItemLists
List of hoesstatic final ItemLists
List of Item Framesstatic final ItemLists
List of Leaves.static final ItemLists
static final ItemLists
List of Minecarts.static final ItemLists
List of Non-Wooden Pressure Plates.static final ItemLists
List of Ores and Valuable Raw Materials.static final ItemLists
List of placeable booksstatic final ItemLists
List of Plantable plants.static final ItemLists
List of Plants.static final ItemLists
List of Potted Plants.static final ItemLists
List of Pressure Plates.static final ItemLists
static final ItemLists
List of materials that will activate redstone when triggered by a projectile.static final ItemLists
List of Redstone blocks that can be interacted with.static final ItemLists
List of Saplings.static final ItemLists
List of Shulker Boxes.static final ItemLists
List of Signs.static final ItemLists
List of Skulls and Headsstatic final ItemLists
List of Torchesstatic final ItemLists
List of Trap Doors.static final ItemLists
List of Trees and Leaves.static final ItemLists
static final ItemLists
List of Scrapable Blocks (They can lose their wax.)static final ItemLists
List of Weatherable Blocks.static final ItemLists
List of Wooden Doors.Fields inherited from class com.palmergames.bukkit.towny.object.AbstractRegistryList
tagged
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(@NotNull org.bukkit.inventory.ItemStack itemStack) static @NotNull @Unmodifiable Set<org.bukkit.Material>
getGrouping
(String groupName) Returns a pre-configured list from the GROUPS.static AbstractRegistryList.Builder<org.bukkit.Material,
ItemLists> Methods inherited from class com.palmergames.bukkit.towny.object.AbstractRegistryList
contains, contains, contains, tagged
-
Field Details
-
AXES
List of Axe items. -
DYES
List of Dye items. -
REDSTONE_INTERACTABLES
List of Redstone blocks that can be interacted with. -
POTTED_PLANTS
List of Potted Plants. -
FLOWERS
List of Flowers. -
ORES
List of Ores and Valuable Raw Materials. -
SAPLINGS
List of Saplings. -
PLANTABLES
List of Plantable plants. -
CROPS
List of Crops. -
TREES
List of Trees and Leaves. -
LEAVES
List of Leaves. -
BEDS
List of Beds. -
SIGNS
List of Signs. -
TORCHES
List of Torches -
SKULLS
List of Skulls and Heads -
BOATS
List of Boats. -
MINECARTS
List of Minecarts. -
WOOD_DOORS
List of Wooden Doors. -
DOORS
List of Doors. -
FENCE_GATES
List of Fence Gates. -
TRAPDOORS
List of Trap Doors. -
SHULKER_BOXES
List of Shulker Boxes. -
PRESSURE_PLATES
List of Pressure Plates. -
NON_WOODEN_PRESSURE_PLATES
List of Non-Wooden Pressure Plates. -
BUTTONS
List of Buttons. -
PROJECTILE_TRIGGERED_REDSTONE
List of materials that will activate redstone when triggered by a projectile. -
BUCKETS
List of Buckets. -
COPPER_BLOCKS
List of Copper Blocks. -
WEATHERABLE_BLOCKS
List of Weatherable Blocks. -
WAXED_BLOCKS
List of Scrapable Blocks (They can lose their wax.) -
CANDLES
List of Candles -
ITEM_FRAMES
List of Item Frames -
HANGING_ENTITIES
List of Hanging entities -
CAMPFIRES
List of Campfires -
BOOK_CONTAINERS
List of blocks that can hold books -
PLACEABLE_BOOKS
List of placeable books -
HARVESTABLE_BERRIES
List of harvestable berries -
MINECART_KILLERS
-
UNSTRIPPED_WOOD
-
CAULDRONS
-
FILLED_CAULDRONS
-
CAULDRON_FILLABLE
-
HOES
List of hoes -
BRUSHABLE_BLOCKS
-
PROJECTILE_BREAKABLE_BLOCKS
-
PLANTS
List of Plants. -
FALLING_BLOCKS
-
EXPLODABLE_ATTACHABLES
List of blocks which, when exploded, will not have their drops set to false, despite our asking. -
GROUPS
Config-useable material groups.
-
-
Method Details
-
contains
public boolean contains(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack) -
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 theGROUPS
- Returns:
- - Set<Material> grouping of materials, or an empty set if the grouping was not found.
-
newBuilder
-