ACACIA_LOGS, ANVIL, ARROWS, BAMBOO_PLANTABLE_ON, BANNERS, BEACON_BASE_BLOCKS, BEDS, BEE_GROWABLES, BEEHIVE_INHABITORS, BEEHIVES, BIRCH_LOGS, BUTTONS, CAMPFIRES, CARPETS, CLIMBABLE, CORAL_BLOCKS, CORAL_PLANTS, CORALS, CRIMSON_STEMS, CROPS, DARK_OAK_LOGS, DOORS, DRAGON_IMMUNE, ENDERMAN_HOLDABLE, FENCE_GATES, FENCES, FIRE, FLOWER_POTS, FLOWERS, FLUIDS_LAVA, FLUIDS_WATER, GOLD_ORES, GUARDED_BY_PIGLINS, HOGLIN_REPELLENTS, ICE, IMPACT_PROJECTILES, IMPERMEABLE, INFINIBURN_END, INFINIBURN_NETHER, INFINIBURN_OVERWORLD, ITEMS_ARROWS, ITEMS_BANNERS, ITEMS_BEACON_PAYMENT_ITEMS, ITEMS_BOATS, ITEMS_COALS, ITEMS_CREEPER_DROP_MUSIC_DISCS, ITEMS_FISHES, ITEMS_FURNACE_MATERIALS, ITEMS_LECTERN_BOOKS, ITEMS_MUSIC_DISCS, ITEMS_PIGLIN_LOVED, ITEMS_STONE_TOOL_MATERIALS, JUNGLE_LOGS, LEAVES, LOGS, LOGS_THAT_BURN, NON_FLAMMABLE_WOOD, NYLIUM, OAK_LOGS, PIGLIN_REPELLENTS, PLANKS, PORTALS, PRESSURE_PLATES, PREVENT_MOB_SPAWNING_INSIDE, RAIDERS, RAILS, REGISTRY_BLOCKS, REGISTRY_ENTITIES, REGISTRY_FLUIDS, REGISTRY_ITEMS, SAND, SAPLINGS, SHULKER_BOXES, SIGNS, SKELETONS, SLABS, SMALL_FLOWERS, SOUL_FIRE_BASE_BLOCKS, SOUL_SPEED_BLOCKS, SPRUCE_LOGS, STAIRS, STANDING_SIGNS, STONE_BRICKS, STONE_PRESSURE_PLATES, STRIDER_WARM_BLOCKS, TALL_FLOWERS, TRAPDOORS, UNDERWATER_BONEMEALS, UNSTABLE_BOTTOM_CENTER, VALID_SPAWN, WALL_CORALS, WALL_POST_OVERRIDE, WALL_SIGNS, WALLS, WARPED_STEMS, WART_BLOCKS, WITHER_IMMUNE, WITHER_SUMMON_BASE_BLOCKS, WOODEN_BUTTONS, WOODEN_DOORS, WOODEN_FENCES, WOODEN_PRESSURE_PLATES, WOODEN_SLABS, WOODEN_STAIRS, WOODEN_TRAPDOORS, WOOL
Constructor and Description |
---|
MaterialSetTag(@NotNull Collection<Material> materials)
Deprecated.
Use NamespacedKey version of constructor
|
MaterialSetTag(Material... materials)
Deprecated.
Use NamespacedKey version of constructor
|
MaterialSetTag(@Nullable NamespacedKey key,
@NotNull Collection<Material> materials) |
MaterialSetTag(@Nullable NamespacedKey key,
@NotNull Collection<Material> materials,
Predicate<Material>... globalPredicates) |
MaterialSetTag(@Nullable NamespacedKey key,
Material... materials) |
MaterialSetTag(@Nullable NamespacedKey key,
@NotNull Predicate<Material> filter) |
MaterialSetTag(@NotNull Predicate<Material> filter)
Deprecated.
Use NamespacedKey version of constructor
|
Modifier and Type | Method and Description |
---|---|
protected @NotNull Set<Material> |
getAllPossibleValues() |
protected @NotNull String |
getName(@NotNull Material value) |
boolean |
isTagged(@NotNull Block block) |
boolean |
isTagged(@NotNull BlockData block) |
boolean |
isTagged(@NotNull BlockState block) |
boolean |
isTagged(@NotNull ItemStack item) |
boolean |
isTagged(@NotNull Material material)
Returns whether or not this tag has an entry for the specified item.
|
add, add, add, add, contains, endsWith, ensureSize, getKey, getValues, not, not, not, not, notContains, notEndsWith, notStartsWith, startsWith
@Deprecated public MaterialSetTag(@NotNull @NotNull Predicate<Material> filter)
@Deprecated public MaterialSetTag(@NotNull @NotNull Collection<Material> materials)
@Deprecated public MaterialSetTag(@NotNull Material... materials)
public MaterialSetTag(@Nullable @Nullable NamespacedKey key, @NotNull @NotNull Predicate<Material> filter)
public MaterialSetTag(@Nullable @Nullable NamespacedKey key, @NotNull Material... materials)
public MaterialSetTag(@Nullable @Nullable NamespacedKey key, @NotNull @NotNull Collection<Material> materials)
public MaterialSetTag(@Nullable @Nullable NamespacedKey key, @NotNull @NotNull Collection<Material> materials, @NotNull Predicate<Material>... globalPredicates)
@NotNull protected @NotNull Set<Material> getAllPossibleValues()
getAllPossibleValues
in class BaseTag<Material,MaterialSetTag>
@NotNull protected @NotNull String getName(@NotNull @NotNull Material value)
getName
in class BaseTag<Material,MaterialSetTag>
public boolean isTagged(@NotNull @NotNull BlockState block)
Copyright © 2021. All rights reserved.