Uses of Class
net.glowstone.util.nbt.CompoundTag
Package
Description
-
Uses of CompoundTag in net.glowstone.block.blocktype
Modifier and TypeMethodDescriptionstatic List<org.bukkit.block.banner.Pattern>
BlockBanner.fromNbt(List<CompoundTag> tag)
Converts NBT tags to banner patterns. -
Uses of CompoundTag in net.glowstone.block.entity
Modifier and TypeMethodDescriptionvoid
BannerEntity.loadNbt(CompoundTag tag)
void
BeaconEntity.loadNbt(CompoundTag tag)
void
BedEntity.loadNbt(CompoundTag tag)
void
BlockEntity.loadNbt(CompoundTag tag)
Read this BlockEntity's data from the saved tag.void
BrewingStandEntity.loadNbt(CompoundTag tag)
void
ContainerEntity.loadNbt(CompoundTag tag)
void
EnchantingTableEntity.loadNbt(CompoundTag tag)
void
FlowerPotEntity.loadNbt(CompoundTag tag)
void
FurnaceEntity.loadNbt(CompoundTag tag)
void
JukeboxEntity.loadNbt(CompoundTag tag)
void
MobSpawnerEntity.loadNbt(CompoundTag tag)
void
SignEntity.loadNbt(CompoundTag tag)
void
SkullEntity.loadNbt(CompoundTag tag)
void
BannerEntity.saveNbt(CompoundTag tag)
void
BeaconEntity.saveNbt(CompoundTag tag)
void
BedEntity.saveNbt(CompoundTag tag)
void
BlockEntity.saveNbt(CompoundTag tag)
Save this BlockEntity's data to NBT.void
BrewingStandEntity.saveNbt(CompoundTag tag)
void
ContainerEntity.saveNbt(CompoundTag tag)
void
EnchantingTableEntity.saveNbt(CompoundTag tag)
void
FlowerPotEntity.saveNbt(CompoundTag tag)
void
FurnaceEntity.saveNbt(CompoundTag tag)
void
JukeboxEntity.saveNbt(CompoundTag tag)
void
MobSpawnerEntity.saveNbt(CompoundTag tag)
void
SignEntity.saveNbt(CompoundTag tag)
void
SkullEntity.saveNbt(CompoundTag tag)
-
Uses of CompoundTag in net.glowstone.chunk
Modifier and TypeMethodDescriptionstatic ChunkSection
ChunkSection.fromNbt(CompoundTag sectionTag)
Creates a new chunk section from the given NBT blob.void
ChunkSection.writeToNbt(CompoundTag sectionTag)
Writes this chunk section to a NBT compound. -
Uses of CompoundTag in net.glowstone.entity
Modifier and TypeMethodDescriptionGlowHumanEntity.getLeftShoulderTag()
GlowHumanEntity.getRightShoulderTag()
Modifier and TypeMethodDescriptionvoid
GlowPlayer.sendBlockEntityChange(org.bukkit.Location location, GlowBlockEntity type, CompoundTag nbt)
Send a block entity change to the given location.void
GlowHumanEntity.setLeftShoulderTag(CompoundTag tag)
void
GlowHumanEntity.setRightShoulderTag(CompoundTag tag)
-
Uses of CompoundTag in net.glowstone.entity.meta.profile
Modifier and TypeMethodDescriptionGlowPlayerProfile.toNbt()
Converts this player profile to an NBT compound tag.Modifier and TypeMethodDescriptionstatic CompletableFuture<GlowPlayerProfile>
GlowPlayerProfile.fromNbt(CompoundTag tag)
Get the profile from a NBT tag (e.g. -
Uses of CompoundTag in net.glowstone.entity.objects
Modifier and TypeMethodDescriptionvoid
GlowFallingBlock.setBlockEntityCompoundTag(CompoundTag blockEntityCompoundTag)
-
Uses of CompoundTag in net.glowstone.inventory
Modifier and TypeMethodDescriptionGlowMetaSpawn.getEntityTag()
static CompoundTag
GlowMetaPotion.toNbt(org.bukkit.potion.PotionEffect effect)
Converts aPotionEffect
to an NBT compound tag.GlowItemFactory.writeNbt(org.bukkit.inventory.meta.ItemMeta meta)
Writes anItemMeta
to an NBT tag.Modifier and TypeMethodDescriptionstatic org.bukkit.potion.PotionEffect
GlowMetaPotion.fromNbt(CompoundTag tag)
Reads aPotionEffect
from an NBT compound tag.org.bukkit.inventory.meta.ItemMeta
GlowItemFactory.readNbt(org.bukkit.Material material, CompoundTag tag)
Reads anItemMeta
from an NBT tag.GlowMetaItem.readNbtEnchants(String name, CompoundTag tag)
void
GlowMetaSpawn.setEntityTag(CompoundTag entityTag)
protected static void
GlowMetaItem.writeNbtEnchants(String name, CompoundTag to, Map<org.bukkit.enchantments.Enchantment,Integer> enchants)
-
Uses of CompoundTag in net.glowstone.inventory.crafting
Modifier and TypeMethodDescriptionvoid
PlayerRecipeMonitor.read(CompoundTag playerData)
Restores state from an NBT tag.void
PlayerRecipeMonitor.write(CompoundTag playerData)
Populates a recipeBook compound subtag and adds it to the given tag. -
Uses of CompoundTag in net.glowstone.io.entity
Modifier and TypeMethodDescriptionAgeableStore.createEntity(org.bukkit.Location location, CompoundTag compound)
AnimalStore.createEntity(org.bukkit.Location location, CompoundTag compound)
BoatStore.createEntity(org.bukkit.Location location, CompoundTag compound)
EnderCrystalStore.createEntity(org.bukkit.Location location, CompoundTag compound)
EnderDragonStore.createEntity(org.bukkit.Location location, CompoundTag compound)
abstract T
EntityStore.createEntity(org.bukkit.Location location, CompoundTag compound)
Create a new entity of this store's type at the given location.FireworkStore.createEntity(org.bukkit.Location location, CompoundTag compound)
MinecartStore.createEntity(org.bukkit.Location location, CompoundTag compound)
MonsterStore.createEntity(org.bukkit.Location location, CompoundTag compound)
NormalTippedArrowStore.createEntity(org.bukkit.Location location, CompoundTag compound)
PaintingStore.createEntity(org.bukkit.Location location, CompoundTag compound)
WaterMobStore.createEntity(org.bukkit.Location location, CompoundTag compound)
void
AbstractHorseStore.load(T entity, CompoundTag compound)
void
AgeableStore.load(T entity, CompoundTag compound)
void
ArrowStore.load(T entity, CompoundTag tag)
void
BoatStore.load(GlowBoat entity, CompoundTag tag)
void
ChestedHorseStore.load(T entity, CompoundTag compound)
void
EnderCrystalStore.load(GlowEnderCrystal entity, CompoundTag tag)
void
EnderDragonStore.load(GlowEnderDragon entity, CompoundTag tag)
static void
EntityStorage.load(GlowEntity entity, CompoundTag compound)
Load an entity's data from the given compound tag.void
EntityStore.load(T entity, CompoundTag tag)
Load data into an existing entity of the appropriate type from the given compound tag.void
FireballStore.load(T entity, CompoundTag tag)
void
FireworkStore.load(GlowFirework entity, CompoundTag tag)
void
HangingStore.load(T entity, CompoundTag tag)
void
HorseStore.load(GlowHorse entity, CompoundTag compound)
void
LivingEntityStore.load(T entity, CompoundTag compound)
void
MinecartStore.load(GlowMinecart entity, CompoundTag tag)
void
NormalTippedArrowStore.load(GlowArrow entity, CompoundTag tag)
void
PaintingStore.load(GlowPainting entity, CompoundTag tag)
void
ParrotStore.load(GlowParrot entity, CompoundTag compound)
void
ShulkerStore.load(GlowShulker entity, CompoundTag tag)
void
SplashPotionStore.load(T entity, CompoundTag tag)
void
VexStore.load(GlowVex entity, CompoundTag tag)
void
VindicatorStore.load(GlowVindicator entity, CompoundTag tag)
void
WitherStore.load(GlowWither entity, CompoundTag tag)
void
ZombieVillagerStore.load(GlowZombie zombie, CompoundTag compound)
static GlowEntity
EntityStorage.loadEntity(GlowWorld world, CompoundTag compound)
Load a new entity in the given world from the given data tag.void
AbstractHorseStore.save(T entity, CompoundTag tag)
void
AgeableStore.save(T entity, CompoundTag tag)
void
ArrowStore.save(T entity, CompoundTag tag)
void
BoatStore.save(GlowBoat entity, CompoundTag tag)
void
ChestedHorseStore.save(T entity, CompoundTag tag)
void
EnderCrystalStore.save(GlowEnderCrystal entity, CompoundTag tag)
void
EnderDragonStore.save(GlowEnderDragon entity, CompoundTag tag)
static void
EntityStorage.save(GlowEntity entity, CompoundTag compound)
Save an entity's data to the given compound tag.void
EntityStore.save(T entity, CompoundTag tag)
Save information about this entity to the given tag.void
FireballStore.save(T entity, CompoundTag tag)
void
FireworkStore.save(GlowFirework entity, CompoundTag tag)
void
HangingStore.save(T entity, CompoundTag tag)
void
HorseStore.save(GlowHorse entity, CompoundTag tag)
void
LivingEntityStore.save(T entity, CompoundTag tag)
void
MinecartStore.save(GlowMinecart entity, CompoundTag tag)
void
NormalTippedArrowStore.save(GlowArrow entity, CompoundTag tag)
void
PaintingStore.save(GlowPainting entity, CompoundTag tag)
void
ParrotStore.save(GlowParrot entity, CompoundTag tag)
void
ShulkerStore.save(GlowShulker entity, CompoundTag tag)
void
SplashPotionStore.save(T entity, CompoundTag tag)
void
VexStore.save(GlowVex entity, CompoundTag tag)
void
VindicatorStore.save(GlowVindicator entity, CompoundTag tag)
void
WitherStore.save(GlowWither entity, CompoundTag tag)
void
ZombieVillagerStore.save(GlowZombie zombie, CompoundTag compound)
-
Uses of CompoundTag in net.glowstone.io.nbt
Modifier and TypeMethodDescriptionstatic CompoundTag
NbtSerialization.writeBlockData(org.bukkit.block.data.BlockData blockData)
static CompoundTag
NbtSerialization.writeItem(org.bukkit.inventory.ItemStack stack, int slot)
Write an item stack to an NBT tag.Modifier and TypeMethodDescriptionstatic List<CompoundTag>
NbtSerialization.writeInventory(org.bukkit.inventory.ItemStack[] items, int start)
Write a full inventory (players, chests, etc.) to a compound list.Modifier and TypeMethodDescriptionstatic org.bukkit.Location
NbtSerialization.listTagsToLocation(org.bukkit.World world, CompoundTag tag)
Read a Location from the "Pos" and "Rotation" children of a tag.static void
NbtSerialization.locationToListTags(org.bukkit.Location loc, CompoundTag tag)
Write a Location to the "Pos" and "Rotation" children of a tag.static org.bukkit.block.data.BlockData
NbtSerialization.readBlockData(CompoundTag tag)
static org.bukkit.inventory.ItemStack
NbtSerialization.readItem(CompoundTag tag)
Read an item stack in from an NBT tag.static org.bukkit.World
NbtSerialization.readWorld(GlowServer server, CompoundTag compound)
Attempt to resolve a world based on the contents of a compound tag.static void
NbtSerialization.writeWorld(org.bukkit.World world, CompoundTag compound)
Save world identifiers (UUID and dimension) to a compound tag for later lookup.Modifier and TypeMethodDescriptionstatic org.bukkit.inventory.ItemStack[]
NbtSerialization.readInventory(List<CompoundTag> tagList, int start, int size)
Read a full inventory (players, chests, etc.) from a compound list. -
Uses of CompoundTag in net.glowstone.io.structure
Modifier and TypeMethodDescriptionvoid
DesertTempleStore.load(GlowDesertTemple structurePiece, CompoundTag compound)
void
JungleTempleStore.load(GlowJungleTemple structurePiece, CompoundTag compound)
void
StructurePieceStore.load(T structurePiece, CompoundTag compound)
Load structure piece data of the appropriate type from the given compound tag.void
StructureStore.load(T structure, CompoundTag compound)
Load structure data of the appropriate type from the given compound tag.void
WitchHutStore.load(GlowWitchHut structurePiece, CompoundTag compound)
static GlowStructure
StructureStorage.loadStructure(GlowWorld world, CompoundTag compound)
Load a structure in the given world from the given data tag.static GlowStructurePiece
StructurePieceStorage.loadStructurePiece(CompoundTag compound)
Load a structure piece from the given data tag.void
DesertTempleStore.save(GlowDesertTemple structurePiece, CompoundTag compound)
void
JungleTempleStore.save(GlowJungleTemple structurePiece, CompoundTag compound)
void
StructurePieceStore.save(T structurePiece, CompoundTag compound)
Save information about this structure piece to the given tag.void
StructureStore.save(T structure, CompoundTag compound)
Save information about this structure to the given tag.void
WitchHutStore.save(GlowWitchHut structurePiece, CompoundTag compound)
static StructureStore<GlowStructure>
StructureStorage.saveStructure(GlowStructure structure, CompoundTag compound)
Save a structure data to the given compound tag.static void
StructurePieceStorage.saveStructurePiece(GlowStructurePiece structurePiece, CompoundTag compound)
Save a structure piece data to the given compound tag. -
Uses of CompoundTag in net.glowstone.net
Modifier and TypeMethodDescriptionstatic CompoundTag
GlowBufUtils.readCompound(io.netty.buffer.ByteBuf buf)
Read an uncompressed compound NBT tag from the buffer.Modifier and TypeMethodDescriptionstatic void
GlowBufUtils.writeCompound(io.netty.buffer.ByteBuf buf, CompoundTag data)
Write an uncompressed compound NBT tag to the buffer. -
Uses of CompoundTag in net.glowstone.net.message.play.game
ModifierConstructorDescriptionUpdateBlockEntityMessage(int x, int y, int z, int action, CompoundTag nbt)
ModifierConstructorDescriptionChunkDataMessage(int x, int z, boolean continuous, int primaryMask, io.netty.buffer.ByteBuf data, Collection<CompoundTag> blockEntities)
-
Uses of CompoundTag in net.glowstone.util.mojangson
Modifier and TypeMethodDescriptionstatic CompoundTag
Mojangson.parseCompound(String mojangson)
Parses a Compound from a Mojangson string as an NBT CompoundTag.Modifier and TypeMethodDescriptionstatic String
Mojangson.fromTag(CompoundTag tag)
Creates a Mojangson string from the given Compound Tag. -
Uses of CompoundTag in net.glowstone.util.nbt
Modifier and TypeMethodDescriptionCompoundTag.getCompound(@NonNls String key)
Returns the value of a compound subtag.NbtInputStream.readCompound()
Reads the root NBTCompoundTag
from the stream.NbtInputStream.readCompound(NbtReadLimiter readLimiter)
Reads the root NBTCompoundTag
from the stream.Modifier and TypeMethodDescriptionCompoundTag.getCompoundList(@NonNls String key)
Returns the value of a list subtag with CompoundTag elements.CompoundTag.tryGetCompound(@NonNls String key)
Returns the value of a compound subtag, if it exists.Modifier and TypeMethodDescriptionboolean
CompoundTag.matches(CompoundTag other)
Checks to see if this tag is a strict, deep submap of the given CompoundTag.void
CompoundTag.mergeInto(CompoundTag other, boolean overwrite)
Merges the contents of this compound into the supplied compound.void
CompoundTag.putCompound(@NonNls String key, CompoundTag tag)
Modifier and TypeMethodDescriptionboolean
CompoundTag.iterateCompoundList(@NonNls String key, Consumer<? super CompoundTag> consumer)
Applies the given function to each compound tag in a compound-list subtag, if that subtag exists.void
CompoundTag.putCompoundList(@NonNls String key, List<CompoundTag> list)
Adds or replaces a list subtag with a list of compound tags.boolean
CompoundTag.readCompound(@NonNls String key, Consumer<? super CompoundTag> consumer)
Applies the given function to a compound subtag if it is present.boolean
CompoundTag.readCompoundList(@NonNls String key, Consumer<? super List<CompoundTag>> consumer)
Applies the given function to a list subtag if it is present and its contents are compound tags.