接口的使用
org.bukkit.Tag
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
参与操作玩家物品栏和物品交互的类.
Isolated components which may form part of item meta.
-
org.bukkit中Tag的使用
修饰符和类型字段说明Tag.ACACIA_LOGS
Vanilla block tag representing all acacia log and bark variants.Tag.AIR
Vanilla block tag representing all blocks that resemble air.Vanilla block tag representing all hanging signs.Tag.ALL_SIGNS
Vanilla block tag representing all signs, regardless of type.Vanilla block tag representing all blocks which can be replaced by ancient cities.Vanilla block tag representing all blocks which animals will spawn on.Tag.ANVIL
Vanilla block tag representing all damaged and undamaged anvils.Vanilla block tag representing all blocks which armadillos will spawn on.已过时。Vanilla block tag representing all blocks which axolotls will spawn on.Tag.AZALEA_GROWS_ON
Vanilla block tag representing all blocks which azaleas will grow on.Vanilla block tag representing all blocks replaceable by azalea root.Vanilla block tag representing all badlands terracotta.Tag.BAMBOO_BLOCKS
Vanilla block tag representing all bamboo blocks.Vanilla block tag denoting all blocks bamboo may be planted on.Tag.BANNERS
Vanilla block tag representing all banner blocks.Vanilla block tag representing the nether base material.Vanilla block tag representing the overworld base material.Vanilla block tag representing all beacon base blocks.Tag.BEDS
Vanilla block tag representing all beds.Tag.BEE_GROWABLES
Vanilla block tag representing all bee growables.Tag.BEEHIVES
Vanilla block tag representing all beehives.Vanilla block tag representing all blocks which big dripleaf can be placed on.Tag.BIRCH_LOGS
Vanilla block tag representing all birch log and bark variants.Vanilla block tag representing all blocks which block wind charge explosions.Tag.BUTTONS
Vanilla block tag representing all buttons (inherits fromWOODEN_BUTTONS
.Vanilla block tag representing all blocks that play step sounds with camels on sand.Tag.CAMPFIRES
Vanilla block tag representing all campfires.Tag.CANDLE_CAKES
Vanilla block tag representing all candle cakes.Tag.CANDLES
Vanilla block tag representing all candles.Tag.CARPETS
已过时。Tag.CAULDRONS
Vanilla block tag representing all cauldrons.Tag.CAVE_VINES
Vanilla block tag representing all cave vines.Vanilla block tag representing all ceiling signs.Tag.CHERRY_LOGS
Vanilla block tag representing all cherry log and bark variants.Tag.CLIMBABLE
Vanilla block tag representing all climbable blocks.Vanilla item tag representing all items which are preferred for harvesting clusters (unused).Tag.COAL_ORES
Vanilla block tag representing all coal ores.Vanilla block tag representing all blocks that play combination step sounds.Vanilla block tag representing all blocks which complete the find tree tutorial.Tag.CONCRETE_POWDER
Vanilla block tag representing all concrete powder.Vanilla block tag representing all blocks which may be converted to mud.Tag.COPPER_ORES
Vanilla block tag representing all copper ores.Tag.CORAL_BLOCKS
Vanilla block tag representing all coral blocks.Tag.CORAL_PLANTS
Vanilla block tag representing all coral plants.Tag.CORALS
Vanilla block tag representing all coral.Tag.CRIMSON_STEMS
Vanilla block tag representing all crimson stems.Tag.CROPS
Vanilla block tag representing all crops.Vanilla block tag representing all blocks that make crystal sounds.Vanilla block tag representing all blocks that dampen the propagation of vibration signals.Tag.DARK_OAK_LOGS
Vanilla block tag representing all dark oak log and bark variants.Vanilla block tag representing all blocks which dead bushes may be placed on.Vanilla block tag representing all blocks that may be replaced by deepslate ores.Tag.DIAMOND_ORES
Vanilla block tag representing all diamond ores.Tag.DIRT
Vanilla block tag representing all dirt.Vanilla block tag representing solid blocks which do not block hopper operation.Tag.DOORS
Vanilla block tag representing all doors (inherits fromWOODEN_DOORS
.Tag.DRAGON_IMMUNE
Vanilla block tag representing all blocks immune to dragons.Vanilla block tag representing all blocks transparent to the ender dragon.Vanilla block tag representing all blocks that are replaceable by dripstone.Tag.EMERALD_ORES
Vanilla block tag representing all emerald ores.Vanilla block tag representing all blocks which provide enchantment power.Vanilla block tag representing all blocks which transmit enchantment power.Vanilla block tag denoting blocks that enderman may pick up and hold.static final Tag<EntityType>
Vanilla tag representing all entities sensitive to aquatic enchantments..static final Tag<EntityType>
Vanilla tag representing arrows.static final Tag<EntityType>
Vanilla tag representing all entities sensitive to arthropod enchantments..static final Tag<EntityType>
Vanilla tag representing which entities axolotls are always hostile to.static final Tag<EntityType>
Vanilla tag representing axolotl targets.static final Tag<EntityType>
Vanilla tag representing entities which can live in beehives.static final Tag<EntityType>
Vanilla tag representing entities which can turn in boats.static final Tag<EntityType>
已过时。static final Tag<EntityType>
Vanilla tag representing entities which deflect projectiles.static final Tag<EntityType>
Vanilla tag representing entities which are dismounted when underwater.static final Tag<EntityType>
Vanilla tag representing entities which are immune from fall damage.static final Tag<EntityType>
Vanilla tag representing entities extra susceptible to freezing.static final Tag<EntityType>
Vanilla tag representing entities immune from freezing.static final Tag<EntityType>
Vanilla tag representing entities which can be eaten by frogs.static final Tag<EntityType>
Vanilla tag representing all entities which ignores poison and regeneration effects.static final Tag<EntityType>
Vanilla tag representing all entities sensitive to illager enchantments.static final Tag<EntityType>
Vanilla tag representing all entities which are friendly with illagers.static final Tag<EntityType>
Vanilla tag representing all entities which are immune from the infested effect.static final Tag<EntityType>
Vanilla tag representing all entities which are immune from the oozing effect.static final Tag<EntityType>
Vanilla tag representing projectiles.static final Tag<EntityType>
Vanilla tag representing all entities which are sensitive to inverted healing and harm potion effects.static final Tag<EntityType>
Vanilla tag representing all entities which do not receive anger from wind charges.static final Tag<EntityType>
Vanilla tag representing entities which are not controlled by their mount.static final Tag<EntityType>
Vanilla tag representing all entities which are not scary for pufferfish.static final Tag<EntityType>
Vanilla tag representing mobs which can walk on powder snow.static final Tag<EntityType>
Vanilla tag representing raiders.static final Tag<EntityType>
Vanilla tag representing all projectiles which can be punched back.static final Tag<EntityType>
Vanilla tag representing all entities which are sensitive to the bane_of_arthropods enchantment.static final Tag<EntityType>
Vanilla tag representing all entities which are sensitive to impaling.static final Tag<EntityType>
Vanilla tag representing all entities which are sensitive to the smite enchantment.static final Tag<EntityType>
Vanilla tag representing skeletons.static final Tag<EntityType>
Vanilla tag representing all entities which are friendly with withers.Vanilla block tag representing all blocks which reset fall damage.Vanilla block tag representing all blocks which will not be replaced by world generation features.Tag.FENCE_GATES
Vanilla block tag representing all fence gates.Tag.FENCES
Vanilla block tag representing all fences.Tag.FIRE
Vanilla block tag representing all fire blocks.Tag.FLOWER_POTS
Vanilla block tag representing all empty and filled flower pots.Tag.FLOWERS
Vanilla block tag representing all flowers.Tag.FLUIDS_LAVA
Vanilla fluid tag representing lava and flowing lava.Tag.FLUIDS_WATER
Vanilla fluid tag representing water and flowing water.Tag.FOX_FOOD
已过时。useITEMS_FOX_FOOD
Vanilla block tag representing all blocks which foxes will spawn on.Vanilla item tag representing all items that confer freeze immunity on the wearer.Vanilla block tag representing all blocks which frogs prefer to jump to.Vanilla block tag representing all blocks which frogs will spawn on.Vanilla block tag representing all blocks which geodes will not spawn in.Vanilla block tag representing all blocks which goats will spawn on.Tag.GOLD_ORES
Vanilla block tag representing all gold ores.Vanilla block tag representing all blocks guarded by piglins.Vanilla block tag representing all hoglin repellents.Tag.ICE
Vanilla block tag denoting ice blocks.Vanilla item tag representing all items ignored by piglin babies.Tag.IMPERMEABLE
Vanilla block tag denoting impermeable blocks which do not drip fluids.Vanilla block tag representing all blocks which will not drop items with a diamond tool.Vanilla block tag representing all blocks which will not drop items with a gold tool.Vanilla block tag representing all blocks which will not drop items with a iron tool.Vanilla block tag representing all blocks which will not drop items with a netherite tool.Vanilla block tag representing all blocks which will not drop items with a stone tool.Vanilla block tag representing all blocks which will not drop items with a wooden tool.Tag.INFINIBURN_END
Vanilla block tag representing all blocks that burn forever in the end.Vanilla block tag representing all blocks that burn forever in the nether.Vanilla block tag representing all blocks that burn forever in the overworld.Vanilla block tag representing all blocks that play muffled step sounds.Vanilla block tag representing blocks which cannot be dismounted into.Tag.IRON_ORES
Vanilla block tag representing all iron ores.Vanilla item tag representing all armadillo food.Tag.ITEMS_ARROWS
Vanilla item tag representing all arrow items.Tag.ITEMS_AXES
Vanilla item tag representing all axes.Vanilla item tag representing all axolotl food.Tag.ITEMS_BANNERS
Vanilla item tag representing all banner items.Vanilla item tag representing all items that may be placed in beacons.Tag.ITEMS_BEE_FOOD
Vanilla item tag representing all bee food.Tag.ITEMS_BOATS
Vanilla item tag representing all boat items.Vanilla item tag representing all books that may be placed on bookshelves.Vanilla item tag representing all items which break decorated pots.Tag.ITEMS_CAMEL_FOOD
Vanilla item tag representing all camel food.Tag.ITEMS_CAT_FOOD
Vanilla item tag representing all cat food.Vanilla item tag representing all chest armor.Vanilla item tag representing all chest boat items.Vanilla item tag representing all chicken food.Tag.ITEMS_COALS
Vanilla item tag representing all coal items.Tag.ITEMS_COMPASSES
Vanilla item tag representing all compasses.Tag.ITEMS_COW_FOOD
Vanilla item tag representing all cow food.Vanilla item tag representing all music disc items dropped by creepers.Vanilla item tag representing all items which will ignite creepers when interacted with.Vanilla item tag representing all decorated pot ingredients.Vanilla item tag representing all decorated pot sherds.Tag.ITEMS_DYEABLE
Vanilla item tag representing all dyeable items.Vanilla item tag representing all enchantable armor.Vanilla item tag representing all items enchantable with bow enchantments.Vanilla item tag representing all enchantable chest armor.Vanilla item tag representing all items enchantable with crossbow enchantments.Vanilla item tag representing all items enchantable with durability enchantments.Vanilla item tag representing all items enchantable with the binding enchantment.Vanilla item tag representing all items enchantable with the fire aspect enchantment.Vanilla item tag representing all items enchantable with fishing enchantments.Vanilla item tag representing all enchantable foot armor.Vanilla item tag representing all enchantable head armor.Vanilla item tag representing all enchantable leg armor.Vanilla item tag representing all items enchantable with mace enchantments.Vanilla item tag representing all enchantable mining tools.Vanilla item tag representing all items enchantable with the mining_loot enchantment.Vanilla item tag representing all items enchantable with the sharpness enchantment.Vanilla item tag representing all enchantable swords.Vanilla item tag representing all items enchantable with trident enchantments.Vanilla item tag representing all items enchantable with the vanishing enchantment.Vanilla item tag representing all enchantable weapons.Tag.ITEMS_FISHES
Vanilla item tag representing all fish items.Tag.ITEMS_FOOT_ARMOR
Vanilla item tag representing all foot armor.Tag.ITEMS_FOX_FOOD
Vanilla item tag representing all fox food.Tag.ITEMS_FROG_FOOD
Vanilla item tag representing all frog food.Vanilla item tag representing all furnace materials.Tag.ITEMS_GOAT_FOOD
Vanilla item tag representing all goat food.Vanilla item tag representing all hanging signs.Tag.ITEMS_HEAD_ARMOR
Vanilla item tag representing all head armor.Tag.ITEMS_HOES
Vanilla item tag representing all hoes.Vanilla item tag representing all hoglin food.Tag.ITEMS_HORSE_FOOD
Vanilla item tag representing all horse food.Vanilla item tag representing all horse tempt items.Vanilla item tag representing all books that may be placed on lecterns.Tag.ITEMS_LEG_ARMOR
Vanilla item tag representing all leg armor.Tag.ITEMS_LLAMA_FOOD
Vanilla item tag representing all llama food.Vanilla item tag representing all llama tempt items.Tag.ITEMS_MEAT
Vanilla item tag representing all meat.Vanilla item tag representing all non flammable wood items.Vanilla item tag representing all items which modify note block sounds when placed on top.Vanilla item tag representing all ocelot food.Tag.ITEMS_PANDA_FOOD
Vanilla item tag representing all panda food.Vanilla item tag representing all parrot food.Vanilla item tag representing all parrot poisonous food.Tag.ITEMS_PICKAXES
Vanilla item tag representing all pickaxes.Tag.ITEMS_PIG_FOOD
Vanilla item tag representing all pig food.Vanilla item tag representing all piglin food.Vanilla item tag representing all items loved by piglins.Vanilla item tag representing all rabbit food.Tag.ITEMS_SHEEP_FOOD
Vanilla item tag representing all sheep food.Tag.ITEMS_SHOVELS
Vanilla item tag representing all shovels.Tag.ITEMS_SKULLS
Vanilla item tag representing all skulls.Vanilla item tag representing all sniffer food.Vanilla item tag representing all stone tool materials.Vanilla item tag representing all strider food.Vanilla item tag representing all strider tempt items.Tag.ITEMS_SWORDS
Vanilla item tag representing all swords.Tag.ITEMS_TOOLS
已过时, 待删除: 此 API 元素将从以后的版本中删除。removed in Minecraft 1.20.5.Vanilla item tag representing all materials which can be used for trimming armor.Vanilla item tag representing all trimming templates.Vanilla item tag representing all trimmable armor items.Vanilla item tag representing all turtle food.Vanilla item tag representing all seeds planteable by villagers.Tag.ITEMS_WOLF_FOOD
Vanilla item tag representing all wolf food.Tag.JUNGLE_LOGS
Vanilla block tag representing all jungle log and bark variants.Tag.LAPIS_ORES
Vanilla block tag representing all lapis ores.Vanilla block tag representing all blocks which lava pools will not replace.Tag.LEAVES
Vanilla block tag representing all leaves fans.Tag.LOGS
Vanilla block tag representing all log and bark variants.Tag.LOGS_THAT_BURN
Vanilla block tag representing all log and bark variants that burn.Vanilla block tag representing all blocks replaceable by lush ground.Vanilla block tag representing all blocks which do not destroy farmland when placed.Tag.MANGROVE_LOGS
Vanilla block tag representing all mangrove log and bark variants.Vanilla block tag representing all blocks which mangrove logs can grow through.Vanilla block tag representing all blocks which mangrove roots can grow through.Tag.MINEABLE_AXE
Vanilla block tag representing all blocks mineable with an axe.Tag.MINEABLE_HOE
Vanilla block tag representing all blocks mineable with a hoe.Tag.MINEABLE_PICKAXE
Vanilla block tag representing all blocks mineable with a pickaxe.Tag.MINEABLE_SHOVEL
Vanilla block tag representing all blocks mineable with a shovel.Vanilla block tag representing all doors which can be opened by mobs.Vanilla block tag representing all blocks which mooshrooms will spawn on.Tag.MOSS_REPLACEABLE
Vanilla block tag representing all blocks replaceable by moss.Vanilla block tag representing all blocks which require a diamond tool.Tag.NEEDS_IRON_TOOL
Vanilla block tag representing all blocks which require an iron tool.Tag.NEEDS_STONE_TOOL
Vanilla block tag representing all blocks which require a stone tool.Vanilla block tag representing all blocks replaceable by the nether carver.Tag.NYLIUM
Vanilla block tag representing all nylium blocks.Tag.OAK_LOGS
Vanilla block tag representing all oak log and bark variants.Vanilla block tag representing all blocks that block vibration signals.Vanilla block tag representing all blocks replaceable by the overworld carver.Vanilla block tag representing all blocks which parrots will spawn on.Tag.PIGLIN_FOOD
已过时。Vanilla block tag representing all piglin repellents.Tag.PLANKS
Vanilla block tag representing all plank variants.Vanilla block tag representing all blocks which polar bears will spawn on.Tag.PORTALS
Vanilla block tag representing all portals.Tag.PRESSURE_PLATES
Vanilla block tag representing all pressure plates.Vanilla block tag representing all blocks that prevent inside mob spawning.Vanilla block tag representing all blocks which rabbits will spawn on.Tag.RAILS
Vanilla block tag representing all Minecart rails.Tag.REDSTONE_ORES
Vanilla block tag representing all redstone ores.Tag.REPLACEABLE
Vanilla block tag representing all blocks which are replaceable.Vanilla block tag representing all blocks replaceable by growing trees.Tag.SAND
Vanilla block tag representing all sand blocks.Tag.SAPLINGS
Vanilla block tag representing all sapling variants.Vanilla block tag representing all blocks which can be replaced by skulk.Vanilla block tag representing all blocks which can be replaced by skulk during world generation.Tag.SHULKER_BOXES
Vanilla block tag representing all shulker boxes.Tag.SIGNS
Vanilla block tag representing all regular signs.Tag.SLABS
Vanilla block tag representing all slabs.Vanilla block tag representing all blocks which small dripleaf can be placed on.Tag.SMALL_FLOWERS
Vanilla block tag representing all small flowers.Tag.SMELTS_TO_GLASS
Vanilla block tag representing all blocks which smelt to glass in a furnace.Tag.SNAPS_GOAT_HORN
Vanilla block tag representing all blocks which snap dropped goat horns.Vanilla block tag representing blocks which can be dug by sniffers.Vanilla block tag representing all blocks which booster sniffer egg hatching.Tag.SNOW
Vanilla block tag representing all snow blocks.Vanilla block tag representing blocks which snow can survive on.Vanilla block tag representing blocks which snow cannot survive on.Vanilla block tag representing all soul fire base blocks.Vanilla block tag representing all blocks affected by the soul speed enchantment.Tag.SPRUCE_LOGS
Vanilla block tag representing all spruce log and bark variants.Tag.STAIRS
Vanilla block tag representing all stairs.Tag.STANDING_SIGNS
Vanilla block tag representing all standing signs.Tag.STONE_BRICKS
Vanilla block tag representing all regular/mossy/cracked/chiseled stone bricks.Tag.STONE_BUTTONS
Vanilla block tag representing all stone buttons.Vanilla block tag representing all blocks that may be replaced by ores.Vanilla block tag representing all stone pressure plates.Vanilla block tag representing all warm strider blocks.Tag.SWORD_EFFICIENT
Vanilla block tag representing all blocks that can be efficiently mined with a sword.Tag.TALL_FLOWERS
Vanilla block tag representing all tall flowers.Tag.TERRACOTTA
Vanilla block tag representing all terracotta.Vanilla block tag representing all blocks which can be replaced by trail ruins.Tag.TRAPDOORS
Vanilla block tag representing all trapdoors (inherits fromWOODEN_TRAPDOORS
.Vanilla block tag denoting all underwater blocks which may be bonemealed.Vanilla block tag representing all unstable bottom center blocks.Tag.VALID_SPAWN
Vanilla block tag denoting all valid mob spawn positions.Vanilla block tag representing all blocks which resonate vibrations.Tag.WALL_CORALS
Vanilla block tag representing all wall corals.Vanilla block tag representing all wall hanging signs.Vanilla block tag representing all wall post overrides.Tag.WALL_SIGNS
Vanilla block tag representing all wall signs.Tag.WALLS
Vanilla block tag representing all walls.Tag.WARPED_STEMS
Vanilla block tag representing all warped stems.Tag.WART_BLOCKS
Vanilla block tag representing all wart blocks.Tag.WITHER_IMMUNE
Vanilla block tag representing all blocks immune to withers.Vanilla block tag representing all base blocks used for wither summoning.Vanilla block tag representing all blocks which wolves will spawn on.Tag.WOODEN_BUTTONS
Vanilla block tag representing all wooden buttons.Tag.WOODEN_DOORS
Vanilla block tag representing all wooden doors.Tag.WOODEN_FENCES
Vanilla block tag representing all wooden fences.Vanilla block tag representing all wooden pressure plates.Tag.WOODEN_SLABS
Vanilla block tag representing all wooden slabs.Tag.WOODEN_STAIRS
Vanilla block tag representing all wooden stairs.Tag.WOODEN_TRAPDOORS
Vanilla block tag representing all wooden trapdoors.Tag.WOOL
Vanilla block tag representing all colors of wool.Tag.WOOL_CARPETS
Vanilla block tag representing all colors of carpet.修饰符和类型方法说明Gets a tag which has already been defined within the server.Gets a tag which has already been defined within the server. -
org.bukkit.inventory中Tag的使用
限定符构造器说明MaterialChoice
(@NotNull Tag<Material> choices) Constructs a MaterialChoice with the current values of the specified tag. -
org.bukkit.inventory.meta.components中Tag的使用
修饰符和类型方法说明ToolComponent.addRule
(@NotNull Tag<Material> tag, @Nullable Float speed, @Nullable Boolean correctForDrops) Add a new rule to this tool component, which provides further information about a collection of block types represented by a blockTag
.void
Set the block types (represented as a blockTag
) to which this rule applies.
ITEMS_AXOLOTL_FOOD