Interface INBTSerializable<T extends Tag>

All Known Subinterfaces:
ICapabilitySerializable<T>, IForgeBlockEntity, IForgeEntity, IForgeItemStack, IForgeLivingEntity
All Known Implementing Classes:
AbstractArrow, AbstractChestedHorse, AbstractClientPlayer, AbstractFish, AbstractFurnaceBlockEntity, AbstractGolem, AbstractHorse, AbstractHurtingProjectile, AbstractIllager, AbstractMinecart, AbstractMinecartContainer, AbstractPiglin, AbstractSchoolingFish, AbstractSkeleton, AbstractVillager, AgeableMob, Allay, AmbientCreature, Animal, AreaEffectCloud, ArmorStand, Arrow, Axolotl, BannerBlockEntity, BarrelBlockEntity, BaseContainerBlockEntity, Bat, BeaconBlockEntity, BedBlockEntity, Bee, BeehiveBlockEntity, BellBlockEntity, BlastFurnaceBlockEntity, Blaze, BlockEntity, BlockEntityOnLoadTest.TestBlockEntity, Boat, BrewingStandBlockEntity, Camel, CampfireBlockEntity, CapabilityDispatcher, Cat, CaveSpider, ChestBlockEntity, ChestBoat, Chicken, ChiseledBookShelfBlockEntity, Cod, CommandBlockEntity, ComparatorBlockEntity, ConduitBlockEntity, Cow, Creeper, CustomHeadTest.CustomSkullBlockEntity, CustomSignsTest.CustomHangingSignBlockEntity, 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, FluidHandlerBlockEntity, FlyingMob, Fox, Frog, FullPotsAccessorDemo.DioriteFlowerPotBlockEntity, FurnaceBlockEntity, GameTestTest.EnergyBlockEntity, Ghast, Giant, GlowItemFrame, GlowSquid, Goat, Guardian, HangingEntity, HangingSignBlockEntity, Hoglin, HopperBlockEntity, Horse, Husk, Illusioner, IronGolem, ItemEntity, ItemFrame, ItemStack, ItemStackHandler, JigsawBlockEntity, JukeboxBlockEntity, LargeFireball, LeashFenceKnotEntity, LecternBlockEntity, LightningBolt, LivingEntity, Llama, LlamaSpit, LocalPlayer, MagmaCube, Marker, MegaModelTest.TestBlock.Entity, 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, SculkCatalystBlockEntity, SculkSensorBlockEntity, SculkShriekerBlockEntity, ServerPlayer, Sheep, ShoulderRidingEntity, Shulker, ShulkerBoxBlockEntity, ShulkerBullet, SignBlockEntity, Silverfish, Skeleton, SkeletonHorse, SkullBlockEntity, Slime, SmallFireball, SmokerBlockEntity, Snowball, SnowGolem, SpawnerBlockEntity, SpectralArrow, SpellcasterIllager, Spider, Squid, Stray, Strider, StructureBlockEntity, Tadpole, TamableAnimal, TheEndGatewayBlockEntity, TheEndPortalBlockEntity, ThrowableItemProjectile, ThrowableProjectile, ThrownEgg, ThrownEnderpearl, ThrownExperienceBottle, ThrownPotion, ThrownTrident, TraderLlama, TrappedChestBlockEntity, TropicalFish, Turtle, Vex, Villager, Vindicator, WanderingTrader, Warden, 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)