Package | Description |
---|---|
net.glowstone.util.nbt |
Modifier and Type | Method and Description |
---|---|
static TagType |
TagType.byId(int id)
Returns the tag type with a given ID.
|
TagType |
ListTag.getChildType()
The type of entries within this list.
|
TagType |
Tag.getType()
The type of this tag.
|
static TagType |
TagType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TagType[] |
TagType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
<V> List<V> |
CompoundTag.getList(@NonNls String key,
TagType type)
Returns the value of a
List subtag. |
boolean |
CompoundTag.isList(@NonNls String key,
TagType type)
Test whether the subtag with the given key is of
List type. |
<V> void |
CompoundTag.putList(@NonNls String key,
TagType type,
List<V> value,
Function<? super V,? extends Tag> tagCreator)
Adds or replaces a list subtag, converting the list entries to tags.
|
<T> boolean |
CompoundTag.readList(@NonNls String key,
TagType type,
Consumer<? super List<T>> consumer)
Applies the given function to a list subtag if it is present, converting it to a list of
values first.
|
Constructor and Description |
---|
ListTag(TagType childType,
List<T> value)
Creates the tag.
|
NumericTag(TagType type) |
Tag(TagType type) |
Copyright © 2021. All rights reserved.