类 NbtUtils
java.lang.Object
net.minecraft.nbt.NbtUtils
-
字段概要
字段修饰符和类型字段说明private static final com.mojang.serialization.Codec
<ResourceKey<Block>> private static final com.google.common.base.Splitter
private static final com.google.common.base.Splitter
private static final String
private static final int
private static final char
private static final org.slf4j.Logger
private static final int
private static final char
private static final char
static final String
private static final Comparator
<ListTag> private static final Comparator
<ListTag> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static CompoundTag
addCurrentDataVersion
(CompoundTag p_265050_) static void
addCurrentDataVersion
(ValueOutput p_422165_) static CompoundTag
addDataVersion
(CompoundTag p_265534_, int p_265686_) static void
addDataVersion
(ValueOutput p_421820_, int p_422605_) static boolean
compareNbt
(Tag p_129236_, Tag p_129237_, boolean p_129238_) static int
getDataVersion
(com.mojang.serialization.Dynamic<?> p_405880_, int p_404676_) static int
getDataVersion
(CompoundTag p_265397_, int p_265399_) private static <T extends Comparable<T>>
StringgetName
(Property<T> p_129211_, Comparable<?> p_129212_) private static StringBuilder
indent
(int p_178020_, StringBuilder p_178021_) (专用程序包) static String
packBlockState
(CompoundTag p_178076_) (专用程序包) static CompoundTag
packStructureTemplate
(CompoundTag p_178068_) static StringBuilder
prettyPrint
(StringBuilder p_178027_, Tag p_178028_, int p_178029_, boolean p_178030_) static String
prettyPrint
(Tag p_178058_) static String
prettyPrint
(Tag p_178051_, boolean p_178052_) static BlockState
readBlockState
(HolderGetter<Block> p_256363_, CompoundTag p_250775_) private static <S extends StateHolder<?,
S>, T extends Comparable<T>>
SsetValueHelper
(S p_129205_, Property<T> p_129206_, String p_129207_, CompoundTag p_129208_, CompoundTag p_129209_) static CompoundTag
snbtToStructure
(String p_178025_) static String
structureToSnbt
(CompoundTag p_178064_) static Component
toPrettyComponent
(Tag p_178062_) (专用程序包) static CompoundTag
unpackBlockState
(String p_178054_) (专用程序包) static CompoundTag
unpackStructureTemplate
(CompoundTag p_178072_) static CompoundTag
writeBlockState
(BlockState p_129203_) static CompoundTag
writeFluidState
(FluidState p_178023_)
-
字段详细资料
-
YXZ_LISTTAG_INT_COMPARATOR
-
YXZ_LISTTAG_DOUBLE_COMPARATOR
-
BLOCK_NAME_CODEC
-
SNBT_DATA_TAG
- 另请参阅:
-
PROPERTIES_START
private static final char PROPERTIES_START- 另请参阅:
-
PROPERTIES_END
private static final char PROPERTIES_END- 另请参阅:
-
ELEMENT_SEPARATOR
- 另请参阅:
-
KEY_VALUE_SEPARATOR
private static final char KEY_VALUE_SEPARATOR- 另请参阅:
-
COMMA_SPLITTER
private static final com.google.common.base.Splitter COMMA_SPLITTER -
COLON_SPLITTER
private static final com.google.common.base.Splitter COLON_SPLITTER -
LOGGER
private static final org.slf4j.Logger LOGGER -
INDENT
private static final int INDENT- 另请参阅:
-
NOT_FOUND
private static final int NOT_FOUND- 另请参阅:
-
-
构造器详细资料
-
NbtUtils
private NbtUtils()
-
-
方法详细资料
-
compareNbt
-
readBlockState
-
setValueHelper
private static <S extends StateHolder<?,S>, S setValueHelperT extends Comparable<T>> (S p_129205_, Property<T> p_129206_, String p_129207_, CompoundTag p_129208_, CompoundTag p_129209_) -
writeBlockState
-
writeFluidState
-
getName
private static <T extends Comparable<T>> String getName(Property<T> p_129211_, Comparable<?> p_129212_) -
prettyPrint
-
prettyPrint
-
prettyPrint
public static StringBuilder prettyPrint(StringBuilder p_178027_, Tag p_178028_, int p_178029_, boolean p_178030_) -
indent
-
toPrettyComponent
-
structureToSnbt
-
snbtToStructure
public static CompoundTag snbtToStructure(String p_178025_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
packStructureTemplate
-
unpackStructureTemplate
-
packBlockState
-
unpackBlockState
-
addCurrentDataVersion
-
addDataVersion
-
addCurrentDataVersion
-
addDataVersion
-
getDataVersion
-
getDataVersion
public static int getDataVersion(com.mojang.serialization.Dynamic<?> p_405880_, int p_404676_)
-