Modifier and Type | Method and Description |
---|---|
static List<CompoundTag> |
BlockBanner.toNbt(List<org.bukkit.block.banner.Pattern> banner)
Converts banner patterns to NBT tags.
|
Modifier and Type | Method and Description |
---|---|
static List<org.bukkit.block.banner.Pattern> |
BlockBanner.fromNbt(List<CompoundTag> tag)
Converts NBT tags to banner patterns.
|
Modifier and Type | Method and Description |
---|---|
void |
ContainerEntity.loadNbt(CompoundTag tag) |
void |
FurnaceEntity.loadNbt(CompoundTag tag) |
void |
BrewingStandEntity.loadNbt(CompoundTag tag) |
void |
BedEntity.loadNbt(CompoundTag tag) |
void |
FlowerPotEntity.loadNbt(CompoundTag tag) |
void |
JukeboxEntity.loadNbt(CompoundTag tag) |
void |
EnchantingTableEntity.loadNbt(CompoundTag tag) |
void |
BannerEntity.loadNbt(CompoundTag tag) |
void |
BeaconEntity.loadNbt(CompoundTag tag) |
void |
MobSpawnerEntity.loadNbt(CompoundTag tag) |
void |
SignEntity.loadNbt(CompoundTag tag) |
void |
SkullEntity.loadNbt(CompoundTag tag) |
void |
NoteblockEntity.loadNbt(CompoundTag tag) |
void |
BlockEntity.loadNbt(CompoundTag tag)
Read this BlockEntity's data from the saved tag.
|
void |
ContainerEntity.saveNbt(CompoundTag tag) |
void |
FurnaceEntity.saveNbt(CompoundTag tag) |
void |
BrewingStandEntity.saveNbt(CompoundTag tag) |
void |
BedEntity.saveNbt(CompoundTag tag) |
void |
FlowerPotEntity.saveNbt(CompoundTag tag) |
void |
JukeboxEntity.saveNbt(CompoundTag tag) |
void |
EnchantingTableEntity.saveNbt(CompoundTag tag) |
void |
BannerEntity.saveNbt(CompoundTag tag) |
void |
BeaconEntity.saveNbt(CompoundTag tag) |
void |
MobSpawnerEntity.saveNbt(CompoundTag tag) |
void |
SignEntity.saveNbt(CompoundTag tag) |
void |
SkullEntity.saveNbt(CompoundTag tag) |
void |
NoteblockEntity.saveNbt(CompoundTag tag) |
void |
BlockEntity.saveNbt(CompoundTag tag)
Save this BlockEntity's data to NBT.
|
Modifier and Type | Method and Description |
---|---|
static 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.
|
Modifier and Type | Method and Description |
---|---|
CompoundTag |
GlowHumanEntity.getLeftShoulderTag() |
CompoundTag |
GlowHumanEntity.getRightShoulderTag() |
Modifier and Type | Method and Description |
---|---|
void |
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) |
Modifier and Type | Method and Description |
---|---|
CompoundTag |
GlowPlayerProfile.toNbt()
Converts this player profile to an NBT compound tag.
|
Modifier and Type | Method and Description |
---|---|
static CompletableFuture<GlowPlayerProfile> |
GlowPlayerProfile.fromNbt(CompoundTag tag)
Get the profile from a NBT tag (e.g.
|
Modifier and Type | Method and Description |
---|---|
CompoundTag |
GlowFallingBlock.getBlockEntityCompoundTag() |
Modifier and Type | Method and Description |
---|---|
void |
GlowFallingBlock.setBlockEntityCompoundTag(CompoundTag blockEntityCompoundTag) |
Modifier and Type | Method and Description |
---|---|
CompoundTag |
GlowMetaSpawn.getEntityTag() |
static CompoundTag |
GlowMetaPotion.toNbt(org.bukkit.potion.PotionEffect effect)
Converts a
PotionEffect to an NBT compound tag. |
CompoundTag |
GlowItemFactory.writeNbt(org.bukkit.inventory.meta.ItemMeta meta)
Writes an
ItemMeta to an NBT tag. |
Modifier and Type | Method and Description |
---|---|
static org.bukkit.potion.PotionEffect |
GlowMetaPotion.fromNbt(CompoundTag tag)
Reads a
PotionEffect from an NBT compound tag. |
org.bukkit.inventory.meta.ItemMeta |
GlowItemFactory.readNbt(org.bukkit.Material material,
CompoundTag tag)
Reads an
ItemMeta from an NBT tag. |
protected static Map<org.bukkit.enchantments.Enchantment,Integer> |
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) |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
Modifier and Type | Method and Description |
---|---|
CompoundTag |
UnknownEntityTypeException.getNbt() |
Modifier and Type | Method and Description |
---|---|
GlowMinecart |
MinecartStore.createEntity(org.bukkit.Location location,
CompoundTag compound) |
GlowArrow |
NormalTippedArrowStore.createEntity(org.bukkit.Location location,
CompoundTag compound) |
GlowPainting |
PaintingStore.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.
|
GlowEnderDragon |
EnderDragonStore.createEntity(org.bukkit.Location location,
CompoundTag compound) |
GlowFirework |
FireworkStore.createEntity(org.bukkit.Location location,
CompoundTag compound) |
GlowEnderCrystal |
EnderCrystalStore.createEntity(org.bukkit.Location location,
CompoundTag compound) |
T |
WaterMobStore.createEntity(org.bukkit.Location location,
CompoundTag compound) |
T |
AnimalStore.createEntity(org.bukkit.Location location,
CompoundTag compound) |
T |
AgeableStore.createEntity(org.bukkit.Location location,
CompoundTag compound) |
GlowBoat |
BoatStore.createEntity(org.bukkit.Location location,
CompoundTag compound) |
T |
MonsterStore.createEntity(org.bukkit.Location location,
CompoundTag compound) |
void |
NormalTippedArrowStore.load(GlowArrow entity,
CompoundTag tag) |
void |
BoatStore.load(GlowBoat entity,
CompoundTag tag) |
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 |
FireworkStore.load(GlowFirework entity,
CompoundTag tag) |
void |
HorseStore.load(GlowHorse entity,
CompoundTag compound) |
void |
MinecartStore.load(GlowMinecart 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 |
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) |
void |
ArrowStore.load(T entity,
CompoundTag tag) |
void |
LivingEntityStore.load(T entity,
CompoundTag compound) |
void |
FireballStore.load(T entity,
CompoundTag tag) |
void |
HangingStore.load(T entity,
CompoundTag tag) |
void |
EntityStore.load(T entity,
CompoundTag tag)
Load data into an existing entity of the appropriate type from the given compound tag.
|
void |
AbstractHorseStore.load(T entity,
CompoundTag compound) |
void |
SplashPotionStore.load(T entity,
CompoundTag tag) |
void |
ChestedHorseStore.load(T entity,
CompoundTag compound) |
void |
AgeableStore.load(T entity,
CompoundTag compound) |
static GlowEntity |
EntityStorage.loadEntity(GlowWorld world,
CompoundTag compound)
Load a new entity in the given world from the given data tag.
|
void |
NormalTippedArrowStore.save(GlowArrow entity,
CompoundTag tag) |
void |
BoatStore.save(GlowBoat 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 |
FireworkStore.save(GlowFirework entity,
CompoundTag tag) |
void |
HorseStore.save(GlowHorse entity,
CompoundTag tag) |
void |
MinecartStore.save(GlowMinecart 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 |
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) |
void |
ArrowStore.save(T entity,
CompoundTag tag) |
void |
LivingEntityStore.save(T entity,
CompoundTag tag) |
void |
FireballStore.save(T entity,
CompoundTag tag) |
void |
HangingStore.save(T entity,
CompoundTag tag) |
void |
EntityStore.save(T entity,
CompoundTag tag)
Save information about this entity to the given tag.
|
void |
AbstractHorseStore.save(T entity,
CompoundTag tag) |
void |
SplashPotionStore.save(T entity,
CompoundTag tag) |
void |
ChestedHorseStore.save(T entity,
CompoundTag tag) |
void |
AgeableStore.save(T entity,
CompoundTag tag) |
Constructor and Description |
---|
UnknownEntityTypeException(CompoundTag nbt) |
Modifier and Type | Method and Description |
---|---|
static CompoundTag |
NbtSerialization.writeItem(org.bukkit.inventory.ItemStack stack,
int slot)
Write an item stack to an NBT tag.
|
Modifier and Type | Method and Description |
---|---|
static List<CompoundTag> |
NbtSerialization.writeInventory(org.bukkit.inventory.ItemStack[] items,
int start)
Write a full inventory (players, chests, etc.) to a compound list.
|
Modifier and Type | Method and Description |
---|---|
static 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.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 Type | Method and Description |
---|---|
static org.bukkit.inventory.ItemStack[] |
NbtSerialization.readInventory(List<CompoundTag> tagList,
int start,
int size)
Read a full inventory (players, chests, etc.) from a compound list.
|
Modifier and Type | Method and Description |
---|---|
void |
DesertTempleStore.load(GlowDesertTemple structurePiece,
CompoundTag compound) |
void |
JungleTempleStore.load(GlowJungleTemple structurePiece,
CompoundTag compound) |
void |
WitchHutStore.load(GlowWitchHut 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.
|
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 |
WitchHutStore.save(GlowWitchHut 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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
static CompoundTag |
GlowBufUtils.readCompound(io.netty.buffer.ByteBuf buf)
Read an uncompressed compound NBT tag from the buffer.
|
Modifier and Type | Method and Description |
---|---|
static void |
GlowBufUtils.writeCompound(io.netty.buffer.ByteBuf buf,
CompoundTag data)
Write an uncompressed compound NBT tag to the buffer.
|
Modifier and Type | Method and Description |
---|---|
CompoundTag |
UpdateBlockEntityMessage.getNbt() |
Modifier and Type | Method and Description |
---|---|
Collection<CompoundTag> |
ChunkDataMessage.getBlockEntities() |
Constructor and Description |
---|
UpdateBlockEntityMessage(int x,
int y,
int z,
int action,
CompoundTag nbt) |
Constructor and Description |
---|
ChunkDataMessage(int x,
int z,
boolean continuous,
int primaryMask,
io.netty.buffer.ByteBuf data,
Collection<CompoundTag> blockEntities) |
Modifier and Type | Method and Description |
---|---|
static CompoundTag |
Mojangson.parseCompound(String mojangson)
Parses a Compound from a Mojangson string as an NBT CompoundTag.
|
Modifier and Type | Method and Description |
---|---|
static String |
Mojangson.fromTag(CompoundTag tag)
Creates a Mojangson string from the given Compound Tag.
|
Modifier and Type | Method and Description |
---|---|
CompoundTag |
CompoundTag.getCompound(@NonNls String key)
Returns the value of a compound subtag.
|
CompoundTag |
NbtInputStream.readCompound()
Reads the root NBT
CompoundTag from the stream. |
CompoundTag |
NbtInputStream.readCompound(NbtReadLimiter readLimiter)
Reads the root NBT
CompoundTag from the stream. |
Modifier and Type | Method and Description |
---|---|
List<CompoundTag> |
CompoundTag.getCompoundList(@NonNls String key)
Returns the value of a list subtag with CompoundTag elements.
|
Optional<CompoundTag> |
CompoundTag.tryGetCompound(@NonNls String key)
Returns the value of a compound subtag, if it exists.
|
Modifier and Type | Method and Description |
---|---|
boolean |
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 Type | Method and Description |
---|---|
boolean |
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.
|
Copyright © 2021. All rights reserved.