Package net.minecraft.nbt
Enum Class SnbtGrammar.ArrayPrefix
- All Implemented Interfaces:
Serializable
,Comparable<SnbtGrammar.ArrayPrefix>
,Constable
- Enclosing class:
SnbtGrammar
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set
<SnbtGrammar.TypeSuffix> private final SnbtGrammar.TypeSuffix
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ArrayPrefix
(SnbtGrammar.TypeSuffix p_410014_, SnbtGrammar.TypeSuffix... p_410215_) -
Method Summary
Modifier and TypeMethodDescriptionprotected Number
buildNumber
(SnbtGrammar.IntegerLiteral p_410128_, ParseState<?> p_410405_) private SnbtGrammar.TypeSuffix
computeType
(SnbtGrammar.IntegerSuffix p_409627_) abstract <T> T
create
(com.mojang.serialization.DynamicOps<T> p_409743_) abstract <T> T
create
(com.mojang.serialization.DynamicOps<T> p_409952_, List<SnbtGrammar.IntegerLiteral> p_409879_, ParseState<?> p_410609_) boolean
isAllowed
(SnbtGrammar.TypeSuffix p_410024_) static SnbtGrammar.ArrayPrefix
Returns the enum constant of this class with the specified name.static SnbtGrammar.ArrayPrefix[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BYTE
-
INT
-
LONG
-
-
Field Details
-
defaultType
-
additionalTypes
-
-
Constructor Details
-
ArrayPrefix
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isAllowed
-
create
public abstract <T> T create(com.mojang.serialization.DynamicOps<T> p_409743_) -
create
@Nullable public abstract <T> T create(com.mojang.serialization.DynamicOps<T> p_409952_, List<SnbtGrammar.IntegerLiteral> p_409879_, ParseState<?> p_410609_) -
buildNumber
@Nullable protected Number buildNumber(SnbtGrammar.IntegerLiteral p_410128_, ParseState<?> p_410405_) -
computeType
-