类 TagValueInput
java.lang.Object
net.minecraft.world.level.storage.TagValueInput
- 所有已实现的接口:
ValueInput
,ValueInputExtension
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) static class
static final record
static final record
static final record
(专用程序包) static class
(专用程序包) static class
static final record
static final record
static final record
从接口继承的嵌套类/接口 net.minecraft.world.level.storage.ValueInput
ValueInput.TypedInputList<T>, ValueInput.ValueInputList
-
字段概要
字段修饰符和类型字段说明private final ValueInputContextHelper
private final CompoundTag
private final ProblemReporter
-
构造器概要
构造器限定符构造器说明private
TagValueInput
(ProblemReporter p_421784_, ValueInputContextHelper p_422152_, CompoundTag p_421946_) -
方法概要
修饰符和类型方法说明childOrEmpty
(String p_422555_) childrenList
(String p_421700_) childrenListOrEmpty
(String p_422523_) static ValueInput.ValueInputList
create
(ProblemReporter p_422238_, HolderLookup.Provider p_421977_, List<CompoundTag> p_422016_) static ValueInput
create
(ProblemReporter p_422128_, HolderLookup.Provider p_421808_, CompoundTag p_421841_) boolean
getBooleanOr
(String p_422592_, boolean p_422347_) byte
double
getDoubleOr
(String p_422065_, double p_421551_) float
getFloatOr
(String p_421957_, float p_422667_) Optional
<int[]> getIntArray
(String p_422301_) int
long
private NumericTag
getNumericTag
(String p_421843_) private <T extends Tag>
TgetOptionalTypedTag
(String p_421947_, TagType<T> p_421665_) int
getShortOr
(String p_421616_, short p_421751_) getStringOr
(String p_422061_, String p_421849_) keySet()
返回 the top-level keys of this object。<T> Optional
<ValueInput.TypedInputList<T>> <T> ValueInput.TypedInputList
<T> listOrEmpty
(String p_422509_, com.mojang.serialization.Codec<T> p_422700_) lookup()
<T> Optional
<T> read
(com.mojang.serialization.MapCodec<T> p_422606_) <T> Optional
<T> private ValueInput
wrapChild
(String p_422021_, CompoundTag p_422689_) (专用程序包) static ValueInput
wrapChild
(ProblemReporter p_422473_, ValueInputContextHelper p_421819_, CompoundTag p_422675_) private ValueInput.ValueInputList
wrapList
(String p_422657_, ValueInputContextHelper p_421936_, ListTag p_422099_) private <T> ValueInput.TypedInputList
<T> wrapTypedList
(String p_422691_, ListTag p_422064_, com.mojang.serialization.Codec<T> p_422638_)
-
字段详细资料
-
problemReporter
-
context
-
input
-
-
构造器详细资料
-
TagValueInput
private TagValueInput(ProblemReporter p_421784_, ValueInputContextHelper p_422152_, CompoundTag p_421946_)
-
-
方法详细资料
-
create
public static ValueInput create(ProblemReporter p_422128_, HolderLookup.Provider p_421808_, CompoundTag p_421841_) -
create
public static ValueInput.ValueInputList create(ProblemReporter p_422238_, HolderLookup.Provider p_421977_, List<CompoundTag> p_422016_) -
read
- 指定者:
read
在接口中ValueInput
-
read
- 指定者:
read
在接口中ValueInput
-
getOptionalTypedTag
-
getNumericTag
-
child
- 指定者:
child
在接口中ValueInput
-
childOrEmpty
- 指定者:
childOrEmpty
在接口中ValueInput
-
childrenList
- 指定者:
childrenList
在接口中ValueInput
-
childrenListOrEmpty
- 指定者:
childrenListOrEmpty
在接口中ValueInput
-
list
public <T> Optional<ValueInput.TypedInputList<T>> list(String p_422068_, com.mojang.serialization.Codec<T> p_421633_) - 指定者:
list
在接口中ValueInput
-
listOrEmpty
public <T> ValueInput.TypedInputList<T> listOrEmpty(String p_422509_, com.mojang.serialization.Codec<T> p_422700_) - 指定者:
listOrEmpty
在接口中ValueInput
-
getBooleanOr
- 指定者:
getBooleanOr
在接口中ValueInput
-
getByteOr
- 指定者:
getByteOr
在接口中ValueInput
-
getShortOr
- 指定者:
getShortOr
在接口中ValueInput
-
getInt
- 指定者:
getInt
在接口中ValueInput
-
getIntOr
- 指定者:
getIntOr
在接口中ValueInput
-
getLongOr
- 指定者:
getLongOr
在接口中ValueInput
-
getLong
- 指定者:
getLong
在接口中ValueInput
-
getFloatOr
- 指定者:
getFloatOr
在接口中ValueInput
-
getDoubleOr
- 指定者:
getDoubleOr
在接口中ValueInput
-
getString
- 指定者:
getString
在接口中ValueInput
-
getStringOr
- 指定者:
getStringOr
在接口中ValueInput
-
getIntArray
- 指定者:
getIntArray
在接口中ValueInput
-
lookup
- 指定者:
lookup
在接口中ValueInput
-
keySet
从接口复制的说明:ValueInputExtension
返回 the top-level keys of this object。- 指定者:
keySet
在接口中ValueInputExtension
- 返回:
- the top-level keys of this object
-
wrapChild
-
wrapChild
static ValueInput wrapChild(ProblemReporter p_422473_, ValueInputContextHelper p_421819_, CompoundTag p_422675_) -
wrapList
private ValueInput.ValueInputList wrapList(String p_422657_, ValueInputContextHelper p_421936_, ListTag p_422099_) -
wrapTypedList
private <T> ValueInput.TypedInputList<T> wrapTypedList(String p_422691_, ListTag p_422064_, com.mojang.serialization.Codec<T> p_422638_)
-