接口 PersistentDataHolder
- 所有已知子接口:
AbstractArrow,AbstractCow,AbstractCubeMob,AbstractHorse,AbstractNautilus,AbstractSkeleton,AbstractVillager,AbstractWindCharge,AcaciaBoat,AcaciaChestBoat,Ageable,Allay,Ambient,Animals,AreaEffectCloud,Armadillo,ArmorMeta,ArmorStand,Arrow,Axolotl,AxolotlBucketMeta,BambooChestRaft,BambooRaft,Banner,BannerMeta,Barrel,Bat,Beacon,Bed,Bee,Beehive,Bell,BirchBoat,BirchChestBoat,BlastFurnace,Blaze,BlockDataMeta,BlockDisplay,BlockStateMeta,Boat,Bogged,BookMeta,Boss,Breedable,Breeze,BreezeWindCharge,BrewingStand,BrushableBlock,BundleMeta,CalibratedSculkSensor,Camel,CamelHusk,Campfire,Cat,CaveSpider,CherryBoat,CherryChestBoat,Chest,ChestBoat,ChestedHorse,Chicken,ChiseledBookshelf,Chunk,Cod,ColorableArmorMeta,CommandBlock,CommandMinecart,Comparator,CompassMeta,ComplexEntityPart,ComplexLivingEntity,Conduit,Container,CopperGolem,CopperGolemStatue,Cow,Crafter,Creaking,CreakingHeart,Creature,CreatureSpawner,Creeper,CrossbowMeta,Cushion,Damageable,Damageable,DarkOakBoat,DarkOakChestBoat,DaylightDetector,DecoratedPot,Dispenser,Display,Dolphin,Donkey,DragonFireball,Dropper,Drowned,Egg,ElderGuardian,EnchantingTable,EnchantmentStorageMeta,EnderChest,EnderCrystal,EnderDragon,EnderDragonPart,Enderman,Endermite,EnderPearl,EnderSignal,EndGateway,Enemy,Entity,EntityBlockStorage<T>,Evoker,EvokerFangs,ExperienceOrb,Explosive,ExplosiveMinecart,FallingBlock,Fireball,Firework,FireworkEffectMeta,FireworkMeta,Fish,FishHook,Flying,Fox,Frog,Furnace,GeneratedStructure,Ghast,Giant,GlowItemFrame,GlowSquid,Goat,Golem,Guardian,Hanging,HangingSign,HappyGhast,Hoglin,Hopper,HopperMinecart,Horse,HumanEntity,Husk,Illager,Illusioner,Interaction,IronGolem,Item,ItemDisplay,ItemFrame,ItemMeta,Jigsaw,Jukebox,JungleBoat,JungleChestBoat,KnowledgeBookMeta,LargeFireball,LeashHitch,LeatherArmorMeta,Lectern,LightningStrike,LingeringPotion,LivingEntity,Llama,LlamaSpit,MagmaCube,MangroveBoat,MangroveChestBoat,Mannequin,MapMeta,Marker,Minecart,Mob,Monster,Mule,MushroomCow,MusicInstrumentMeta,Nautilus,NPC,OakBoat,OakChestBoat,Ocelot,OminousBottleMeta,OminousItemSpawner,Painting,PaleOakBoat,PaleOakChestBoat,Panda,Parched,Parrot,Phantom,Pig,Piglin,PiglinAbstract,PiglinBrute,PigZombie,Pillager,Player,PolarBear,PoplarBoat,PoplarChestBoat,PotentSulfur,PotionMeta,PoweredMinecart,Projectile,PufferFish,Rabbit,Raider,Ravager,Repairable,RideableMinecart,Salmon,SculkCatalyst,SculkSensor,SculkShrieker,Sheep,Shelf,ShieldMeta,Shulker,ShulkerBox,ShulkerBullet,Sign,Silverfish,SizedFireball,Skeleton,SkeletonHorse,Skull,SkullMeta,Slime,SmallFireball,Smoker,Sniffer,Snowball,Snowman,SpawnEggMeta,SpawnerMinecart,SpectralArrow,Spellcaster,Spider,SplashPotion,SpruceBoat,SpruceChestBoat,Squid,Steerable,StorageMinecart,Stray,Strider,Structure,Structure,SulfurCube,SuspiciousSand,SuspiciousStewMeta,Tadpole,Tameable,TestBlock,TestInstance,TextDisplay,ThrowableProjectile,ThrownExpBottle,ThrownPotion,TileState,TippedArrow,TNTPrimed,TraderLlama,TrialSpawner,Trident,TropicalFish,TropicalFishBucketMeta,Turtle,Vault,Vehicle,Vex,Villager,Vindicator,WanderingTrader,Warden,WaterMob,WindCharge,Witch,Wither,WitherSkeleton,WitherSkull,Wolf,World,WritableBookMeta,Zoglin,Zombie,ZombieHorse,ZombieNautilus,ZombieVillager
public interface PersistentDataHolder
PersistentDataHolder 接口定义了一个可以在其上存储自定义持久元数据的对象。-
方法概要
-
方法详细资料
-
getPersistentDataContainer
返回一个可以在对象上存储标签的自定义标签容器。原文: Returns a custom tag container capable of storing tags on the object. Note that the tags stored on this container are all stored under their own custom namespace therefore modifying default tags using this
PersistentDataHolderis impossible.- 返回:
- 持久元数据容器
-