接口 PersistentDataHolder
- 所有已知子接口:
AbstractArrow
,AbstractHorse
,AbstractSkeleton
,AbstractVillager
,AbstractWindCharge
,Ageable
,Allay
,Ambient
,Animals
,AreaEffectCloud
,Armadillo
,ArmorMeta
,ArmorStand
,Arrow
,Axolotl
,AxolotlBucketMeta
,Banner
,BannerMeta
,Barrel
,Bat
,Beacon
,Bed
,Bee
,Beehive
,Bell
,BlastFurnace
,Blaze
,BlockDataMeta
,BlockDisplay
,BlockStateMeta
,Boat
,Bogged
,BookMeta
,Boss
,Breedable
,Breeze
,BreezeWindCharge
,BrewingStand
,BrushableBlock
,BundleMeta
,CalibratedSculkSensor
,Camel
,Campfire
,Cat
,CaveSpider
,Chest
,ChestBoat
,ChestedHorse
,Chicken
,ChiseledBookshelf
,Chunk
,Cod
,ColorableArmorMeta
,CommandBlock
,CommandMinecart
,Comparator
,CompassMeta
,ComplexEntityPart
,ComplexLivingEntity
,Conduit
,Container
,Cow
,Crafter
,Creature
,CreatureSpawner
,Creeper
,CrossbowMeta
,Damageable
,Damageable
,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
,Hoglin
,Hopper
,HopperMinecart
,Horse
,HumanEntity
,Husk
,Illager
,Illusioner
,Interaction
,IronGolem
,Item
,ItemDisplay
,ItemFrame
,ItemMeta
,Jigsaw
,Jukebox
,KnowledgeBookMeta
,LargeFireball
,LeashHitch
,LeatherArmorMeta
,Lectern
,LightningStrike
,LingeringPotion
,LivingEntity
,Llama
,LlamaSpit
,MagmaCube
,MapMeta
,Marker
,Minecart
,Mob
,Monster
,Mule
,MushroomCow
,MusicInstrumentMeta
,NPC
,Ocelot
,OminousBottleMeta
,OminousItemSpawner
,Painting
,Panda
,Parrot
,Phantom
,Pig
,Piglin
,PiglinAbstract
,PiglinBrute
,PigZombie
,Pillager
,Player
,PolarBear
,PotionMeta
,PoweredMinecart
,Projectile
,PufferFish
,Rabbit
,Raider
,Ravager
,Repairable
,RideableMinecart
,Salmon
,SculkCatalyst
,SculkSensor
,SculkShrieker
,Sheep
,Shulker
,ShulkerBox
,ShulkerBullet
,Sign
,Silverfish
,SizedFireball
,Skeleton
,SkeletonHorse
,Skull
,SkullMeta
,Slime
,SmallFireball
,Smoker
,Sniffer
,Snowball
,Snowman
,SpawnEggMeta
,SpawnerMinecart
,SpectralArrow
,Spellcaster
,Spider
,SplashPotion
,Squid
,Steerable
,StorageMinecart
,Stray
,Strider
,Structure
,Structure
,SuspiciousSand
,SuspiciousStewMeta
,Tadpole
,Tameable
,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
,ZombieVillager
public interface PersistentDataHolder
The
PersistentDataHolder
interface defines an object that can store
custom persistent meta data on it.-
方法概要
修饰符和类型方法说明Returns a custom tag container capable of storing tags on the object.
-
方法详细资料
-
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 thisPersistentDataHolder
is impossible.- 返回:
- the persistent metadata container
-