Interface INBTSerializable<T extends Tag>

All Known Subinterfaces:
ICapabilitySerializable<T>, IForgeBlockEntity, IForgeEntity, IForgeItemStack
All Known Implementing Classes:
AbstractArrow, AbstractChestedHorse, AbstractClientPlayer, AbstractFish, AbstractFurnaceBlockEntity, AbstractGolem, AbstractHorse, AbstractHurtingProjectile, AbstractIllager, AbstractMinecart, AbstractMinecartContainer, AbstractPiglin, AbstractSchoolingFish, AbstractSkeleton, AbstractVillager, AgeableMob, AmbientCreature, Animal, AreaEffectCloud, ArmorStand, Arrow, Axolotl, BannerBlockEntity, BarrelBlockEntity, BaseContainerBlockEntity, Bat, BeaconBlockEntity, BedBlockEntity, Bee, BeehiveBlockEntity, BellBlockEntity, BlastFurnaceBlockEntity, Blaze, BlockEntity, BlockEntityOnLoadTest.TestBlockEntity, Boat, BrewingStandBlockEntity, CampfireBlockEntity, CapabilityDispatcher, Cat, CaveSpider, ChestBlockEntity, Chicken, Cod, CommandBlockEntity, ComparatorBlockEntity, ConduitBlockEntity, Cow, Creeper, CustomHeadTest.CustomSkullBlockEntity, CustomSignsTest.CustomSignBlockEntity, CustomTransformTypeTest.ItemHangerBlockEntity, DaylightDetectorBlockEntity, DispenserBlockEntity, Dolphin, Donkey, DragonFireball, DropperBlockEntity, Drowned, ElderGuardian, EnchantmentTableBlockEntity, EndCrystal, EnderChestBlockEntity, EnderDragon, EnderDragonPart, EnderMan, Endermite, EnergyStorage, Entity, EntityRendererEventsTest.MyEntity, Evoker, EvokerFangs, ExperienceOrb, EyeOfEnder, FakePlayer, FallingBlockEntity, Fireball, FireworkRocketEntity, FishingHook, FlyingMob, Fox, FullPotsAccessorDemo.DioriteFlowerPotBlockEntity, FurnaceBlockEntity, GameTestTest.EnergyBlockEntity, Ghast, Giant, GlowItemFrame, GlowSquid, Goat, Guardian, HangingEntity, Hoglin, HopperBlockEntity, Horse, Husk, Illusioner, IronGolem, ItemEntity, ItemFrame, ItemStack, ItemStackHandler, JigsawBlockEntity, JukeboxBlockEntity, LargeFireball, LeashFenceKnotEntity, LecternBlockEntity, LightningBolt, LivingEntity, Llama, LlamaSpit, LocalPlayer, MagmaCube, Marker, Minecart, MinecartChest, MinecartCommandBlock, MinecartFurnace, MinecartHopper, MinecartSpawner, MinecartTNT, Mob, Monster, Mule, MushroomCow, Ocelot, Painting, Panda, Parrot, PartEntity, PartEntityTest.TestEntity, PartEntityTest.TestEntityPart, PathfinderMob, PatrollingMonster, Phantom, Pig, Piglin, PiglinBrute, Pillager, PistonMovingBlockEntity, Player, PolarBear, PrimedTnt, Projectile, Pufferfish, Rabbit, Raider, RandomizableContainerBlockEntity, Ravager, RemotePlayer, Salmon, SculkSensorBlockEntity, ServerPlayer, Sheep, ShoulderRidingEntity, Shulker, ShulkerBoxBlockEntity, ShulkerBullet, SignBlockEntity, Silverfish, Skeleton, SkeletonHorse, SkullBlockEntity, Slime, SmallFireball, SmokerBlockEntity, Snowball, SnowGolem, SpawnerBlockEntity, SpectralArrow, SpellcasterIllager, Spider, Squid, Stray, Strider, StructureBlockEntity, TamableAnimal, TheEndGatewayBlockEntity, TheEndPortalBlockEntity, ThrowableItemProjectile, ThrowableProjectile, ThrownEgg, ThrownEnderpearl, ThrownExperienceBottle, ThrownPotion, ThrownTrident, TileFluidHandler, TraderLlama, TrappedChestBlockEntity, TropicalFish, Turtle, Vex, Villager, Vindicator, WanderingTrader, WaterAnimal, Witch, WitherBoss, WitherSkeleton, WitherSkull, Wolf, Zoglin, Zombie, ZombieHorse, ZombieVillager, ZombifiedPiglin

public interface INBTSerializable<T extends Tag>
An interface designed to unify various things in the Minecraft code base that can be serialized to and from a NBT tag.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
  • Method Details

    • serializeNBT

      T serializeNBT()
    • deserializeNBT

      void deserializeNBT(T nbt)