net.minecraft.nbt

public final class NbtList

extends AbstractList<NbtElement> implements AbstractNbtList

All mapped superinterfaces:

AbstractNbtList, NbtElement

net.minecraft.nbt.ListTag
net.minecraft.nbt.ListTag
net.minecraft.class_2499
net.minecraft.nbt.NbtList

Field summary

Modifier and TypeField
private static final String
WRAPPER_MARKER
WRAPPER_MARKER
field_57977
HOMOGENIZED_ENTRY_KEY
private static final int
SELF_SIZE_IN_BYTES
SELF_SIZE_IN_BYTES
field_41725
SIZE
public static final NbtType<NbtList>
TYPE
TYPE
field_21039
TYPE
private final List<NbtElement>
list
list
field_11550
value

Constructor summary

ModifierConstructor
public ()
(List<NbtElement> value)

Method summary

Modifier and TypeMethod
private static NbtElement
tryUnwrap(CompoundTag tag)
tryUnwrap(CompoundTag tag)
method_68579(class_2487 arg0)
unwrap(NbtCompound nbt)
private static boolean
isWrapper(CompoundTag tag)
isWrapper(CompoundTag tag)
method_68583(class_2487 arg0)
isConvertedEntry(NbtCompound nbt)
private static NbtElement
wrapIfNeeded(byte elementType, Tag tag)
wrapIfNeeded(byte elementType, Tag tag)
method_68573(byte arg0, class_2520 arg1)
wrapIfNeeded(byte type, NbtElement value)
private static NbtCompound
wrapElement(Tag tag)
wrapElement(Tag tag)
method_68584(class_2520 arg0)
convertToCompound(NbtElement nbt)
public void
write(DataOutput output)
write(DataOutput output)
method_10713(DataOutput arg0)
write(DataOutput arg0)
byte
identifyRawElementType()
identifyRawElementType()
method_68587()
getValueType()
public void
addAndUnwrap(Tag tag)
addAndUnwrap(Tag tag)
method_68580(class_2520 arg0)
unwrapAndAdd(NbtElement nbt)
public int
sizeInBytes()
sizeInBytes()
method_47988()
getSizeInBytes()
public byte
getId()
getId()
method_10711()
getType()
public NbtType<NbtList>
getType()
getType()
method_23258()
getNbtType()
public NbtElement
remove(int index)
remove(int index)
method_10536(int arg0)
remove(int arg0)
public boolean
isEmpty()
isEmpty()
public Optional<NbtCompound>
getCompound(int index)
getCompound(int index)
method_10602(int arg0)
getCompound(int index)
public NbtCompound
getCompoundOrEmpty(int index)
getCompoundOrEmpty(int index)
method_68582(int arg0)
getCompoundOrEmpty(int index)
public Optional<NbtList>
getList(int index)
getList(int index)
method_10603(int arg0)
getList(int index)
public NbtList
getListOrEmpty(int index)
getListOrEmpty(int index)
method_68588(int arg0)
getListOrEmpty(int index)
public Optional<Short>
getShort(int index)
getShort(int index)
method_10609(int arg0)
getShort(int index)
public short
getShortOr(int index, short defaultValue)
getShortOr(int index, short defaultValue)
method_68578(int arg0, short arg1)
getShort(int index, short fallback)
public Optional<Integer>
getInt(int index)
getInt(int index)
method_10600(int arg0)
getInt(int index)
public int
getIntOr(int index, int defaultValue)
getIntOr(int index, int defaultValue)
method_68576(int arg0, int arg1)
getInt(int index, int fallback)
public Optional<int[]>
getIntArray(int index)
getIntArray(int index)
method_36111(int arg0)
getIntArray(int index)
public Optional<long[]>
getLongArray(int index)
getLongArray(int index)
method_36112(int arg0)
getLongArray(int index)
public Optional<Double>
getDouble(int index)
getDouble(int index)
method_10611(int arg0)
getDouble(int index)
public double
getDoubleOr(int index, double defaultValue)
getDoubleOr(int index, double defaultValue)
method_68574(int arg0, double arg1)
getDouble(int index, double fallback)
public Optional<Float>
getFloat(int index)
getFloat(int index)
method_10604(int arg0)
getFloat(int index)
public float
getFloatOr(int index, float defaultValue)
getFloatOr(int index, float defaultValue)
method_68575(int arg0, float arg1)
getFloat(int index, float fallback)
public Optional<String>
getString(int index)
getString(int index)
method_10608(int arg0)
getString(int index)
public String
getStringOr(int index, String defaultValue)
getStringOr(int index, String defaultValue)
method_68577(int arg0, String arg1)
getString(int index, String fallback)
private NbtElement
getNullable(int index)
getNullable(int index)
method_68590(int arg0)
getNullable(int index)
private Optional<NbtElement>
getOptional(int index)
getOptional(int index)
method_68591(int arg0)
getOptional(int index)
public int
size()
size()
public NbtElement
get(int index)
get(int index)
method_10534(int arg0)
get(int arg0)
public NbtElement
set(int index, Tag tag)
set(int index, Tag tag)
method_68585(int arg0, class_2520 arg1)
set(int arg0, NbtElement arg1)
public void
add(int index, Tag tag)
add(int index, Tag tag)
method_68586(int arg0, class_2520 arg1)
add(int arg0, NbtElement arg1)
public boolean
setTag(int index, Tag tag)
setTag(int index, Tag tag)
method_10535(int arg0, class_2520 arg1)
setElement(int arg0, NbtElement arg1)
public boolean
addTag(int index, Tag tag)
addTag(int index, Tag tag)
method_10533(int arg0, class_2520 arg1)
addElement(int arg0, NbtElement arg1)
public NbtList
copy()
copy()
method_10707()
copy()
public Optional<NbtList>
asList()
asList()
method_68592()
asNbtList()
public Stream<NbtElement>
stream()
stream()
public Stream<NbtCompound>
compoundStream()
compoundStream()
method_68589()
streamCompounds()
public void
accept(TagVisitor visitor)
accept(TagVisitor visitor)
method_32289(class_5627 arg0)
accept(NbtElementVisitor arg0)
public void
clear()
clear()
public NbtScanner$Result
accept(StreamTagVisitor visitor)
accept(StreamTagVisitor visitor)
method_39850(class_6836 arg0)
doAccept(NbtScanner arg0)