| Package | Description |
|---|---|
| com.nukkitx.nbt |
| Modifier and Type | Field and Description |
|---|---|
static NbtType<Byte> |
NbtType.BYTE |
static NbtType<byte[]> |
NbtType.BYTE_ARRAY |
static NbtType<NbtMap> |
NbtType.COMPOUND |
static NbtType<Double> |
NbtType.DOUBLE |
static NbtType<Void> |
NbtType.END |
static NbtType<Float> |
NbtType.FLOAT |
static NbtType<Integer> |
NbtType.INT |
static NbtType<int[]> |
NbtType.INT_ARRAY |
static NbtType<NbtList> |
NbtType.LIST |
static NbtType<Long> |
NbtType.LONG |
static NbtType<long[]> |
NbtType.LONG_ARRAY |
static NbtType<Short> |
NbtType.SHORT |
static NbtType<String> |
NbtType.STRING |
| Modifier and Type | Method and Description |
|---|---|
static <T> NbtType<T> |
NbtType.byClass(Class<T> tagClass) |
static NbtType<?> |
NbtType.byId(int id) |
NbtType<E> |
NbtList.getType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
NbtMap.containsKey(String key,
NbtType<?> type) |
<T> List<T> |
NbtMap.getList(String key,
NbtType<T> type) |
<T> List<T> |
NbtMap.getList(String key,
NbtType<T> type,
List<T> defaultValue) |
<T> void |
NbtMap.listenForList(String key,
NbtType<T> type,
Consumer<List<T>> consumer) |
<T> NbtMapBuilder |
NbtMapBuilder.putList(String name,
NbtType<T> type,
List<T> list) |
<T> NbtMapBuilder |
NbtMapBuilder.putList(String name,
NbtType<T> type,
T... values) |
| Constructor and Description |
|---|
NbtList(NbtType<E> type,
Collection<E> collection) |
NbtList(NbtType<E> tagClass,
E... array) |
Copyright © 2020. All rights reserved.