Modifier and Type | Method and Description |
---|---|
static Tag |
NBT.NBTToTag(Object o)
Converts an NBTTagCompound into a
Tag . |
static Tag<Boolean> |
Tag.newBool(boolean data)
Creates a new byte tag.
|
static Tag<Byte> |
Tag.newByte(byte data)
Creates a new byte tag.
|
static Tag<byte[]> |
Tag.newByteArray(byte[] data)
Creates a new byte array tag.
|
static Tag<Map<String,Tag>> |
Tag.newCompound(Map<String,?> data)
Creates a new Map tag.
|
static Tag<Double> |
Tag.newDouble(double data)
Creates a new double tag.
|
static Tag<Float> |
Tag.newFloat(float data)
Creates a new float tag.
|
static Tag<Integer> |
Tag.newInt(int data)
Creates a new int tag.
|
static Tag<int[]> |
Tag.newIntArray(int[] data)
Creates a new int array tag.
|
static Tag<List<Tag>> |
Tag.newList(List data)
Creates a new List tag.
|
static Tag<Long> |
Tag.newLong(long data)
Creates a new long tag.
|
static Tag<Short> |
Tag.newShort(short data)
Creates a new short tag.
|
static Tag<String> |
Tag.newString(String data)
Creates a new String tag.
|
Modifier and Type | Method and Description |
---|---|
static Map<String,Tag> |
NBT.itemStackToMap(ItemStack item)
|
static Map<String,Tag> |
NBT.NBTToMap(Object o)
Converts an NBTTagCompound into a
Map . |
static Tag<Map<String,Tag>> |
Tag.newCompound(Map<String,?> data)
Creates a new Map tag.
|
static Tag<List<Tag>> |
Tag.newList(List data)
Creates a new List tag.
|
Modifier and Type | Method and Description |
---|---|
static Object |
NBT.tagToNBT(String name,
Tag tag)
Deprecated.
|
static Object |
NBT.tagToNBT(Tag tag)
Converts a
Tag into an NBTTagCompound. |
Copyright © 2013. All Rights Reserved.