Package com.destroystokyo.paper
Class MaterialSetTag
-
Field Summary
Fields inherited from interface org.bukkit.Tag
ACACIA_LOGS, ALL_HANGING_SIGNS, ALL_SIGNS, ANCIENT_CITY_REPLACEABLE, ANIMALS_SPAWNABLE_ON, ANVIL, AXOLOTL_TEMPT_ITEMS, AXOLOTLS_SPAWNABLE_ON, AZALEA_GROWS_ON, AZALEA_ROOT_REPLACEABLE, BAMBOO_BLOCKS, BAMBOO_PLANTABLE_ON, BANNERS, BASE_STONE_NETHER, BASE_STONE_OVERWORLD, BEACON_BASE_BLOCKS, BEDS, BEE_GROWABLES, BEEHIVES, BIG_DRIPLEAF_PLACEABLE, BIRCH_LOGS, BUTTONS, CAMPFIRES, CANDLE_CAKES, CANDLES, CARPETS, CAULDRONS, CAVE_VINES, CEILING_HANGING_SIGNS, CHERRY_LOGS, CLIMBABLE, CLUSTER_MAX_HARVESTABLES, COAL_ORES, COMBINATION_STEP_SOUND_BLOCKS, COMPLETES_FIND_TREE_TUTORIAL, CONVERTABLE_TO_MUD, COPPER_ORES, CORAL_BLOCKS, CORAL_PLANTS, CORALS, CRIMSON_STEMS, CROPS, CRYSTAL_SOUND_BLOCKS, DAMPENS_VIBRATIONS, DARK_OAK_LOGS, DEAD_BUSH_MAY_PLACE_ON, DEEPSLATE_ORE_REPLACEABLES, DIAMOND_ORES, DIRT, DOORS, DRAGON_IMMUNE, DRAGON_TRANSPARENT, DRIPSTONE_REPLACEABLE, EMERALD_ORES, ENCHANTMENT_POWER_PROVIDER, ENCHANTMENT_POWER_TRANSMITTER, ENDERMAN_HOLDABLE, ENTITY_TYPES_ARROWS, ENTITY_TYPES_AXOLOTL_ALWAYS_HOSTILES, ENTITY_TYPES_AXOLOTL_HUNT_TARGETS, ENTITY_TYPES_BEEHIVE_INHABITORS, ENTITY_TYPES_DISMOUNTS_UNDERWATER, ENTITY_TYPES_FALL_DAMAGE_IMMUNE, ENTITY_TYPES_FREEZE_HURTS_EXTRA_TYPES, ENTITY_TYPES_FREEZE_IMMUNE_ENTITY_TYPES, ENTITY_TYPES_FROG_FOOD, ENTITY_TYPES_IMPACT_PROJECTILES, ENTITY_TYPES_POWDER_SNOW_WALKABLE_MOBS, ENTITY_TYPES_RAIDERS, ENTITY_TYPES_SKELETONS, FALL_DAMAGE_RESETTING, FEATURES_CANNOT_REPLACE, FENCE_GATES, FENCES, FIRE, FLOWER_POTS, FLOWERS, FLUIDS_LAVA, FLUIDS_WATER, FOX_FOOD, FOXES_SPAWNABLE_ON, FREEZE_IMMUNE_WEARABLES, FROG_PREFER_JUMP_TO, FROGS_SPAWNABLE_ON, GAME_EVENT_ALLAY_CAN_LISTEN, GAME_EVENT_IGNORE_VIBRATIONS_SNEAKING, GAME_EVENT_VIBRATIONS, GEODE_INVALID_BLOCKS, GOATS_SPAWNABLE_ON, GOLD_ORES, GUARDED_BY_PIGLINS, HOGLIN_REPELLENTS, ICE, IGNORED_BY_PIGLIN_BABIES, IMPERMEABLE, INFINIBURN_END, INFINIBURN_NETHER, INFINIBURN_OVERWORLD, INSIDE_STEP_SOUND_BLOCKS, INVALID_SPAWN_INSIDE, IRON_ORES, ITEMS_ARROWS, ITEMS_AXES, ITEMS_BANNERS, ITEMS_BEACON_PAYMENT_ITEMS, ITEMS_BOATS, ITEMS_BOOKSHELF_BOOKS, ITEMS_BREAKS_DECORATED_POTS, ITEMS_CHEST_BOATS, ITEMS_COALS, ITEMS_COMPASSES, ITEMS_CREEPER_DROP_MUSIC_DISCS, ITEMS_CREEPER_IGNITERS, ITEMS_DECORATED_POT_INGREDIENTS, ITEMS_DECORATED_POT_SHERDS, ITEMS_FISHES, ITEMS_FURNACE_MATERIALS, ITEMS_HANGING_SIGNS, ITEMS_HOES, ITEMS_LECTERN_BOOKS, ITEMS_MUSIC_DISCS, ITEMS_NON_FLAMMABLE_WOOD, ITEMS_NOTE_BLOCK_TOP_INSTRUMENTS, ITEMS_PICKAXES, ITEMS_PIGLIN_LOVED, ITEMS_SHOVELS, ITEMS_SNIFFER_FOOD, ITEMS_STONE_TOOL_MATERIALS, ITEMS_SWORDS, ITEMS_TOOLS, ITEMS_TRIM_MATERIALS, ITEMS_TRIM_TEMPLATES, ITEMS_TRIMMABLE_ARMOR, ITEMS_VILLAGER_PLANTABLE_SEEDS, JUNGLE_LOGS, LAPIS_ORES, LAVA_POOL_STONE_CANNOT_REPLACE, LEAVES, LOGS, LOGS_THAT_BURN, LUSH_GROUND_REPLACEABLE, MAINTAINS_FARMLAND, MANGROVE_LOGS, MANGROVE_LOGS_CAN_GROW_THROUGH, MANGROVE_ROOTS_CAN_GROW_THROUGH, MINEABLE_AXE, MINEABLE_HOE, MINEABLE_PICKAXE, MINEABLE_SHOVEL, MOOSHROOMS_SPAWNABLE_ON, MOSS_REPLACEABLE, MUSHROOM_GROW_BLOCK, NEEDS_DIAMOND_TOOL, NEEDS_IRON_TOOL, NEEDS_STONE_TOOL, NETHER_CARVER_REPLACEABLES, NYLIUM, OAK_LOGS, OCCLUDES_VIBRATION_SIGNALS, OVERWORLD_CARVER_REPLACEABLES, PARROTS_SPAWNABLE_ON, PIGLIN_FOOD, PIGLIN_REPELLENTS, PLANKS, POLAR_BEARS_SPAWNABLE_ON_ALTERNATE, PORTALS, PRESSURE_PLATES, PREVENT_MOB_SPAWNING_INSIDE, RABBITS_SPAWNABLE_ON, RAILS, REDSTONE_ORES, REGISTRY_BLOCKS, REGISTRY_ENTITY_TYPES, REGISTRY_FLUIDS, REGISTRY_GAME_EVENTS, REGISTRY_ITEMS, REPLACEABLE, REPLACEABLE_BY_TREES, SAND, SAPLINGS, SCULK_REPLACEABLE, SCULK_REPLACEABLE_WORLD_GEN, SHULKER_BOXES, SIGNS, SLABS, SMALL_DRIPLEAF_PLACEABLE, SMALL_FLOWERS, SMELTS_TO_GLASS, SNAPS_GOAT_HORN, SNIFFER_DIGGABLE_BLOCK, SNIFFER_EGG_HATCH_BOOST, SNOW, SNOW_LAYER_CAN_SURVIVE_ON, SNOW_LAYER_CANNOT_SURVIVE_ON, SOUL_FIRE_BASE_BLOCKS, SOUL_SPEED_BLOCKS, SPRUCE_LOGS, STAIRS, STANDING_SIGNS, STONE_BRICKS, STONE_BUTTONS, STONE_ORE_REPLACEABLES, STONE_PRESSURE_PLATES, STRIDER_WARM_BLOCKS, SWORD_EFFICIENT, TALL_FLOWERS, TERRACOTTA, TRAIL_RUINS_REPLACEABLE, TRAPDOORS, UNDERWATER_BONEMEALS, UNSTABLE_BOTTOM_CENTER, VALID_SPAWN, VIBRATION_RESONATORS, WALL_CORALS, WALL_HANGING_SIGNS, WALL_POST_OVERRIDE, WALL_SIGNS, WALLS, WARPED_STEMS, WART_BLOCKS, WITHER_IMMUNE, WITHER_SUMMON_BASE_BLOCKS, WOLVES_SPAWNABLE_ON, WOODEN_BUTTONS, WOODEN_DOORS, WOODEN_FENCES, WOODEN_PRESSURE_PLATES, WOODEN_SLABS, WOODEN_STAIRS, WOODEN_TRAPDOORS, WOOL, WOOL_CARPETS
-
Constructor Summary
ConstructorDescriptionMaterialSetTag
(@NotNull Collection<Material> materials) Deprecated.Use NamespacedKey version of constructorMaterialSetTag
(@NotNull Predicate<Material> filter) Deprecated.Use NamespacedKey version of constructorMaterialSetTag
(@NotNull Material... materials) Deprecated.Use NamespacedKey version of constructorMaterialSetTag
(@Nullable NamespacedKey key, @NotNull Collection<Material> materials) MaterialSetTag
(@Nullable NamespacedKey key, @NotNull Collection<Material> materials, @NotNull Predicate<Material>... globalPredicates) MaterialSetTag
(@Nullable NamespacedKey key, @NotNull Predicate<Material> filter) MaterialSetTag
(@Nullable NamespacedKey key, @NotNull Material... materials) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
isTagged
(@NotNull BlockState block) boolean
boolean
boolean
Returns whether or not this tag has an entry for the specified item.Methods inherited from class io.papermc.paper.tag.BaseTag
add, add, add, add, contains, endsWith, ensureSize, getKey, getValues, isLocked, lock, not, not, not, not, notContains, notEndsWith, notStartsWith, startsWith
-
Constructor Details
-
MaterialSetTag
Deprecated.Use NamespacedKey version of constructor -
MaterialSetTag
Deprecated.Use NamespacedKey version of constructor -
MaterialSetTag
Deprecated.Use NamespacedKey version of constructor -
MaterialSetTag
-
MaterialSetTag
-
MaterialSetTag
public MaterialSetTag(@Nullable @Nullable NamespacedKey key, @NotNull @NotNull Collection<Material> materials) -
MaterialSetTag
-
-
Method Details
-
getAllPossibleValues
- Specified by:
getAllPossibleValues
in classBaseTag<Material,
MaterialSetTag>
-
getName
- Specified by:
getName
in classBaseTag<Material,
MaterialSetTag>
-
isTagged
-
isTagged
-
isTagged
-
isTagged
-
isTagged
Description copied from interface:Tag
Returns whether or not this tag has an entry for the specified item.
-