public final class NBTUtil
extends java.lang.Object
コンストラクタと説明 |
---|
NBTUtil() |
修飾子とタイプ | メソッドと説明 |
---|---|
static boolean |
areNBTEquals(INBT nbt1,
INBT nbt2,
boolean compareTagList) |
static BlockPos |
readBlockPos(CompoundNBT tag)
Creates a BlockPos object from the data stored in the passed NBTTagCompound.
|
static BlockState |
readBlockState(CompoundNBT tag)
Reads a blockstate from the given tag.
|
static com.mojang.authlib.GameProfile |
readGameProfile(CompoundNBT compound)
Reads and returns a GameProfile that has been saved to the passed in NBTTagCompound
|
static java.util.UUID |
readUniqueId(CompoundNBT tag)
Reads a UUID from the passed NBTTagCompound.
|
static CompoundNBT |
update(com.mojang.datafixers.DataFixer p_210822_0_,
DefaultTypeReferences p_210822_1_,
CompoundNBT p_210822_2_,
int p_210822_3_) |
static CompoundNBT |
update(com.mojang.datafixers.DataFixer dataFixer,
DefaultTypeReferences type,
CompoundNBT p_210821_2_,
int version,
int newVersion) |
static CompoundNBT |
writeBlockPos(BlockPos pos)
Creates a new NBTTagCompound from a BlockPos.
|
static CompoundNBT |
writeBlockState(BlockState tag)
Writes the given blockstate to the given tag.
|
static CompoundNBT |
writeGameProfile(CompoundNBT tagCompound,
com.mojang.authlib.GameProfile profile)
Writes a GameProfile to an NBTTagCompound.
|
static CompoundNBT |
writeUniqueId(java.util.UUID uuid)
Creates a new NBTTagCompound which stores a UUID.
|
@Nullable public static com.mojang.authlib.GameProfile readGameProfile(CompoundNBT compound)
public static CompoundNBT writeGameProfile(CompoundNBT tagCompound, com.mojang.authlib.GameProfile profile)
public static boolean areNBTEquals(@Nullable INBT nbt1, @Nullable INBT nbt2, boolean compareTagList)
public static CompoundNBT writeUniqueId(java.util.UUID uuid)
public static java.util.UUID readUniqueId(CompoundNBT tag)
public static BlockPos readBlockPos(CompoundNBT tag)
public static CompoundNBT writeBlockPos(BlockPos pos)
public static BlockState readBlockState(CompoundNBT tag)
public static CompoundNBT writeBlockState(BlockState tag)
public static CompoundNBT update(com.mojang.datafixers.DataFixer p_210822_0_, DefaultTypeReferences p_210822_1_, CompoundNBT p_210822_2_, int p_210822_3_)
public static CompoundNBT update(com.mojang.datafixers.DataFixer dataFixer, DefaultTypeReferences type, CompoundNBT p_210821_2_, int version, int newVersion)