接口 INBTSerializable<T extends Tag>
- 所有已知子接口:
ICapabilitySerializable<T>
,IForgeEntity
,IForgeLivingEntity
- 所有已知实现类:
AbstractArrow
,AbstractBoat
,AbstractChestBoat
,AbstractChestedHorse
,AbstractClientPlayer
,AbstractFish
,AbstractGolem
,AbstractHorse
,AbstractHurtingProjectile
,AbstractIllager
,AbstractMinecart
,AbstractMinecartContainer
,AbstractPiglin
,AbstractSchoolingFish
,AbstractSkeleton
,AbstractVillager
,AbstractWindCharge
,AgeableMob
,AgeableWaterCreature
,Allay
,AmbientCreature
,Animal
,AreaEffectCloud
,Armadillo
,ArmorStand
,Arrow
,Axolotl
,Bat
,Bee
,Blaze
,BlockAttachedEntity
,Boat
,Bogged
,Breeze
,BreezeWindCharge
,Camel
,CapabilityDispatcher
,Cat
,CaveSpider
,ChestBoat
,ChestRaft
,Chicken
,Cod
,Cow
,Creaking
,Creeper
,Display
,Display.BlockDisplay
,Display.ItemDisplay
,Display.TextDisplay
,Dolphin
,Donkey
,DragonFireball
,Drowned
,ElderGuardian
,EndCrystal
,EnderDragon
,EnderDragonPart
,EnderMan
,Endermite
,EnergyStorage
,Entity
,Evoker
,EvokerFangs
,ExperienceOrb
,EyeOfEnder
,FallingBlockEntity
,Fireball
,FireworkRocketEntity
,FishingHook
,FlyingMob
,Fox
,Frog
,Ghast
,Giant
,GlowItemFrame
,GlowSquid
,Goat
,Guardian
,HangingEntity
,Hoglin
,Horse
,Husk
,Illusioner
,Interaction
,IronGolem
,ItemEntity
,ItemFrame
,ItemStackHandler
,LargeFireball
,LeashFenceKnotEntity
,LightningBolt
,LivingEntity
,Llama
,LlamaSpit
,LocalPlayer
,MagmaCube
,Marker
,Minecart
,MinecartChest
,MinecartCommandBlock
,MinecartFurnace
,MinecartHopper
,MinecartSpawner
,MinecartTNT
,Mob
,Monster
,Mule
,MushroomCow
,Ocelot
,OminousItemSpawner
,Painting
,Panda
,Parrot
,PartEntity
,PathfinderMob
,PatrollingMonster
,Phantom
,Pig
,Piglin
,PiglinBrute
,Pillager
,Player
,PolarBear
,PrimedTnt
,Projectile
,Pufferfish
,Rabbit
,Raft
,Raider
,Ravager
,RemotePlayer
,Salmon
,ServerPlayer
,Sheep
,ShoulderRidingEntity
,Shulker
,ShulkerBullet
,Silverfish
,Skeleton
,SkeletonHorse
,Slime
,SmallFireball
,Sniffer
,Snowball
,SnowGolem
,SpectralArrow
,SpellcasterIllager
,Spider
,Squid
,Stray
,Strider
,Tadpole
,TamableAnimal
,ThrowableItemProjectile
,ThrowableProjectile
,ThrownEgg
,ThrownEnderpearl
,ThrownExperienceBottle
,ThrownPotion
,ThrownTrident
,TraderLlama
,TropicalFish
,Turtle
,VehicleEntity
,Vex
,Villager
,Vindicator
,WanderingTrader
,Warden
,WaterAnimal
,WindCharge
,Witch
,WitherBoss
,WitherSkeleton
,WitherSkull
,Wolf
,Zoglin
,Zombie
,ZombieHorse
,ZombieVillager
,ZombifiedPiglin
public interface INBTSerializable<T extends Tag>
已过时。
// Mojang has switched most things to Codecs and registry context, probably worth deleting this.
Most cases this is used for Capabilities, and should use Components attached to the object that the cap is attached to.
An interface designed to unify various things in the Minecraft
code base that can be serialized to and from a NBT tag.
-
方法概要
修饰符和类型方法说明void
deserializeNBT
(HolderLookup.Provider registryAccess, T nbt) 已过时。serializeNBT
(HolderLookup.Provider registryAccess) 已过时。
-
方法详细资料
-
serializeNBT
已过时。 -
deserializeNBT
已过时。
-