-
- All Implemented Interfaces:
public class NbtList.CompanionContains useful methods to create NbtLists from Java.
Kotlin's users may call
list(1,2,3).toNbtList()or similar methods.
-
-
Field Summary
Fields Modifier and Type Field Description public final static NbtList.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final NbtList<NbtByte>create(Byte tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtShort>create(Short tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtInt>create(Integer tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtLong>create(Long tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtFloat>create(Float tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtDouble>create(Double tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtString>create(String tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtByteArray>create(ByteArray tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtIntArray>create(IntArray tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtLongArray>create(LongArray tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtCompound>create(Map<String, NbtTag> tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtList<NbtTag>>create(Iterable<NbtTag> tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtList<NbtByte>>createByteSublist(Iterable<Byte> tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtList<NbtByte>>createByteSublist(ByteArray tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtList<NbtByte>>createByteSublist(ByteArray tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtList<NbtShort>>createShortSublist(Iterable<Short> tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtList<NbtShort>>createShortSublist(ShortArray tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtList<NbtShort>>createShortSublist(ShortArray tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtList<NbtInt>>createIntSublist(Iterable<Integer> tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtList<NbtInt>>createIntSublist(IntArray tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtList<NbtInt>>createIntSublist(IntArray tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtList<NbtFloat>>createFloatSublist(Iterable<Float> tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtList<NbtFloat>>createFloatSublist(FloatArray tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtList<NbtFloat>>createFloatSublist(FloatArray tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtList<NbtDouble>>createDoubleSublist(Iterable<Double> tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtList<NbtDouble>>createDoubleSublist(DoubleArray tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtList<NbtDouble>>createDoubleSublist(DoubleArray tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtList<NbtString>>createStringSublist(Iterable<String> tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtList<NbtString>>createStringSublist(Array<String> tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtList<NbtCompound>>createCompoundSublist(Iterable<Map<String, NbtTag>> tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtList<NbtCompound>>createCompoundSublist(Array<Map<String, NbtTag>> tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. final NbtList<NbtList<NbtList<NbtTag>>>createSublist(Iterable<Iterable<NbtTag>> tags)Returns a NbtList contained all elements wrapped in the appropriated NbtTag. -
-
Method Detail
-
create
final NbtList<NbtByteArray> create(ByteArray tags)
-
create
final NbtList<NbtIntArray> create(IntArray tags)
-
create
final NbtList<NbtLongArray> create(LongArray tags)
-
createByteSublist
final NbtList<NbtList<NbtByte>> createByteSublist(ByteArray tags)
-
createByteSublist
final NbtList<NbtList<NbtByte>> createByteSublist(ByteArray tags)
-
createShortSublist
final NbtList<NbtList<NbtShort>> createShortSublist(ShortArray tags)
-
createShortSublist
final NbtList<NbtList<NbtShort>> createShortSublist(ShortArray tags)
-
createIntSublist
final NbtList<NbtList<NbtInt>> createIntSublist(IntArray tags)
-
createIntSublist
final NbtList<NbtList<NbtInt>> createIntSublist(IntArray tags)
-
createFloatSublist
final NbtList<NbtList<NbtFloat>> createFloatSublist(FloatArray tags)
-
createFloatSublist
final NbtList<NbtList<NbtFloat>> createFloatSublist(FloatArray tags)
-
createDoubleSublist
final NbtList<NbtList<NbtDouble>> createDoubleSublist(DoubleArray tags)
-
createDoubleSublist
final NbtList<NbtList<NbtDouble>> createDoubleSublist(DoubleArray tags)
-
createCompoundSublist
final NbtList<NbtList<NbtCompound>> createCompoundSublist(Iterable<Map<String, NbtTag>> tags)
-
createCompoundSublist
final NbtList<NbtList<NbtCompound>> createCompoundSublist(Array<Map<String, NbtTag>> tags)
-
-
-
-