ACACIA_LOGS, ANVIL, BAMBOO_PLANTABLE_ON, BANNERS, BEDS, BEE_GROWABLES, BEEHIVES, BIRCH_LOGS, BUTTONS, CARPETS, CORAL_BLOCKS, CORAL_PLANTS, CORALS, CROPS, DARK_OAK_LOGS, DOORS, DRAGON_IMMUNE, ENDERMAN_HOLDABLE, FENCES, FLOWER_POTS, FLOWERS, ICE, IMPERMEABLE, ITEMS_ARROWS, ITEMS_BANNERS, ITEMS_BOATS, ITEMS_COALS, ITEMS_FISHES, ITEMS_LECTERN_BOOKS, ITEMS_MUSIC_DISCS, JUNGLE_LOGS, LEAVES, LOGS, OAK_LOGS, PLANKS, PORTALS, RAILS, REGISTRY_BLOCKS, REGISTRY_ITEMS, SAND, SAPLINGS, SHULKER_BOXES, SIGNS, SLABS, SMALL_FLOWERS, SPRUCE_LOGS, STAIRS, STANDING_SIGNS, STONE_BRICKS, TALL_FLOWERS, TRAPDOORS, UNDERWATER_BONEMEALS, VALID_SPAWN, WALL_CORALS, WALL_SIGNS, WALLS, WITHER_IMMUNE, WOODEN_BUTTONS, WOODEN_DOORS, WOODEN_FENCES, WOODEN_PRESSURE_PLATES, WOODEN_SLABS, WOODEN_STAIRS, WOODEN_TRAPDOORS, WOOL
Constructor | Description |
---|---|
MaterialSetTag(@NotNull Collection<Material> materials) |
Deprecated.
Use NamespacedKey version of constructor
|
MaterialSetTag(@NotNull Predicate<Material> filter) |
Deprecated.
Use NamespacedKey version of constructor
|
MaterialSetTag(@NotNull Material... materials) |
Deprecated.
Use NamespacedKey version of constructor
|
MaterialSetTag(@Nullable NamespacedKey key,
@NotNull Collection<Material> materials) |
|
MaterialSetTag(@Nullable NamespacedKey key,
@NotNull Predicate<Material> filter) |
|
MaterialSetTag(@Nullable NamespacedKey key,
@NotNull Material... materials) |
Modifier and Type | Method | Description |
---|---|---|
@NotNull MaterialSetTag |
add(@NotNull MaterialSetTag... tags) |
|
@NotNull MaterialSetTag |
add(@NotNull Collection<Material> materials) |
|
@NotNull MaterialSetTag |
add(@NotNull Predicate<Material> filter) |
|
@NotNull MaterialSetTag |
add(@NotNull Material... material) |
|
@NotNull MaterialSetTag |
add(@NotNull Tag<Material>... tags) |
|
@NotNull MaterialSetTag |
contains(@NotNull String with) |
|
@NotNull MaterialSetTag |
endsWith(@NotNull String with) |
|
@NotNull MaterialSetTag |
ensureSize(@NotNull String label,
int size) |
|
@NotNull NamespacedKey |
getKey() |
Return the namespaced identifier for this object.
|
@NotNull Set<Material> |
getValues() |
Gets an immutable set of all tagged items.
|
boolean |
isTagged(@NotNull Block block) |
|
boolean |
isTagged(@NotNull BlockState block) |
|
boolean |
isTagged(@NotNull BlockData block) |
|
boolean |
isTagged(@NotNull ItemStack item) |
|
boolean |
isTagged(@NotNull Material material) |
Returns whether or not this tag has an entry for the specified item.
|
@NotNull MaterialSetTag |
not(@NotNull MaterialSetTag tags) |
|
@NotNull MaterialSetTag |
not(@NotNull Collection<Material> materials) |
|
@NotNull MaterialSetTag |
not(@NotNull Predicate<Material> filter) |
|
@NotNull MaterialSetTag |
not(@NotNull Material... material) |
|
@NotNull MaterialSetTag |
notEndsWith(@NotNull String with) |
|
@NotNull MaterialSetTag |
notStartsWith(@NotNull String with) |
|
@NotNull MaterialSetTag |
startsWith(@NotNull String with) |
@Deprecated public MaterialSetTag(@NotNull @NotNull Predicate<Material> filter)
@Deprecated public MaterialSetTag(@NotNull @NotNull Collection<Material> materials)
@Deprecated public MaterialSetTag(@NotNull @NotNull Material... materials)
public MaterialSetTag(@Nullable @Nullable NamespacedKey key, @NotNull @NotNull Predicate<Material> filter)
public MaterialSetTag(@Nullable @Nullable NamespacedKey key, @NotNull @NotNull Material... materials)
public MaterialSetTag(@Nullable @Nullable NamespacedKey key, @NotNull @NotNull Collection<Material> materials)
@NotNull public @NotNull NamespacedKey getKey()
Keyed
@NotNull public @NotNull MaterialSetTag add(@NotNull @NotNull Tag<Material>... tags)
@NotNull public @NotNull MaterialSetTag add(@NotNull @NotNull MaterialSetTag... tags)
@NotNull public @NotNull MaterialSetTag add(@NotNull @NotNull Material... material)
@NotNull public @NotNull MaterialSetTag add(@NotNull @NotNull Collection<Material> materials)
@NotNull public @NotNull MaterialSetTag contains(@NotNull @NotNull String with)
@NotNull public @NotNull MaterialSetTag endsWith(@NotNull @NotNull String with)
@NotNull public @NotNull MaterialSetTag startsWith(@NotNull @NotNull String with)
@NotNull public @NotNull MaterialSetTag add(@NotNull @NotNull Predicate<Material> filter)
@NotNull public @NotNull MaterialSetTag not(@NotNull @NotNull MaterialSetTag tags)
@NotNull public @NotNull MaterialSetTag not(@NotNull @NotNull Material... material)
@NotNull public @NotNull MaterialSetTag not(@NotNull @NotNull Collection<Material> materials)
@NotNull public @NotNull MaterialSetTag not(@NotNull @NotNull Predicate<Material> filter)
@NotNull public @NotNull MaterialSetTag notEndsWith(@NotNull @NotNull String with)
@NotNull public @NotNull MaterialSetTag notStartsWith(@NotNull @NotNull String with)
@NotNull public @NotNull Set<Material> getValues()
Tag
public boolean isTagged(@NotNull @NotNull BlockData block)
public boolean isTagged(@NotNull @NotNull BlockState block)
public boolean isTagged(@NotNull @NotNull Block block)
public boolean isTagged(@NotNull @NotNull ItemStack item)
public boolean isTagged(@NotNull @NotNull Material material)
Tag
@NotNull public @NotNull MaterialSetTag ensureSize(@NotNull @NotNull String label, int size)
Copyright © 2020. All rights reserved.