修飾子とタイプ | フィールドと説明 |
---|---|
static INBTType<CompoundNBT> |
TYPE |
SYNTAX_HIGHLIGHTING_KEY, SYNTAX_HIGHLIGHTING_NUMBER, SYNTAX_HIGHLIGHTING_NUMBER_TYPE, SYNTAX_HIGHLIGHTING_STRING
コンストラクタと説明 |
---|
CompoundNBT() |
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
contains(java.lang.String key)
Returns whether the given string has been previously stored as a key in the map.
|
boolean |
contains(java.lang.String key,
int type)
Returns whether the given string has been previously stored as a key in this tag compound as a particular type,
denoted by a parameter in the form of an ordinal.
|
CompoundNBT |
copy()
Creates a clone of the tag.
|
boolean |
equals(java.lang.Object p_equals_1_) |
protected static ITextComponent |
func_197642_t(java.lang.String p_197642_0_) |
INBT |
get(java.lang.String key)
gets a generic tag with the specified name
|
boolean |
getBoolean(java.lang.String key)
Retrieves a boolean value using the specified key, or false if no such key was stored.
|
byte |
getByte(java.lang.String key)
Retrieves a byte value using the specified key, or 0 if no such key was stored.
|
byte[] |
getByteArray(java.lang.String key)
Retrieves a byte array using the specified key, or a zero-length array if no such key was stored.
|
CompoundNBT |
getCompound(java.lang.String key)
Retrieves a NBTTagCompound subtag matching the specified key, or a new empty NBTTagCompound if no such key was
stored.
|
double |
getDouble(java.lang.String key)
Retrieves a double value using the specified key, or 0 if no such key was stored.
|
float |
getFloat(java.lang.String key)
Retrieves a float value using the specified key, or 0 if no such key was stored.
|
byte |
getId()
Gets the type byte for the tag.
|
int |
getInt(java.lang.String key)
Retrieves an integer value using the specified key, or 0 if no such key was stored.
|
int[] |
getIntArray(java.lang.String key)
Retrieves an int array using the specified key, or a zero-length array if no such key was stored.
|
ListNBT |
getList(java.lang.String key,
int type)
Gets the NBTTagList object with the given name.
|
long |
getLong(java.lang.String key)
Retrieves a long value using the specified key, or 0 if no such key was stored.
|
long[] |
getLongArray(java.lang.String key) |
short |
getShort(java.lang.String key)
Retrieves a short value using the specified key, or 0 if no such key was stored.
|
java.lang.String |
getString(java.lang.String key)
Retrieves a string value using the specified key, or an empty string if no such key was stored.
|
byte |
getTagId(java.lang.String key)
Gets the ID byte for the given tag key
|
INBTType<CompoundNBT> |
getType() |
java.util.UUID |
getUniqueId(java.lang.String key) |
protected static java.lang.String |
handleEscape(java.lang.String p_193582_0_) |
int |
hashCode() |
boolean |
hasUniqueId(java.lang.String key) |
boolean |
isEmpty() |
java.util.Set<java.lang.String> |
keySet()
Gets a set with the names of the keys in the tag compound.
|
CompoundNBT |
merge(CompoundNBT other)
Deep copies all the tags of
other into this tag, then returns itself. |
INBT |
put(java.lang.String key,
INBT value) |
void |
putBoolean(java.lang.String key,
boolean value)
Stores the given boolean value as a NBTTagByte, storing 1 for true and 0 for false, using the given string key.
|
void |
putByte(java.lang.String key,
byte value)
Stores a new NBTTagByte with the given byte value into the map with the given string key.
|
void |
putByteArray(java.lang.String key,
byte[] value)
Stores a new NBTTagByteArray with the given array as data into the map with the given string key.
|
void |
putDouble(java.lang.String key,
double value)
Stores a new NBTTagDouble with the given double value into the map with the given string key.
|
void |
putFloat(java.lang.String key,
float value)
Stores a new NBTTagFloat with the given float value into the map with the given string key.
|
void |
putInt(java.lang.String key,
int value)
Stores a new NBTTagInt with the given integer value into the map with the given string key.
|
void |
putIntArray(java.lang.String key,
int[] value)
Stores a new NBTTagIntArray with the given array as data into the map with the given string key.
|
void |
putIntArray(java.lang.String key,
java.util.List<java.lang.Integer> value) |
void |
putLong(java.lang.String key,
long value)
Stores a new NBTTagLong with the given long value into the map with the given string key.
|
void |
putLongArray(java.lang.String key,
java.util.List<java.lang.Long> value) |
void |
putLongArray(java.lang.String key,
long[] value) |
void |
putShort(java.lang.String key,
short value)
Stores a new NBTTagShort with the given short value into the map with the given string key.
|
void |
putString(java.lang.String key,
java.lang.String value)
Stores a new NBTTagString with the given string value into the map with the given string key.
|
void |
putUniqueId(java.lang.String key,
java.util.UUID value) |
void |
remove(java.lang.String key)
Remove the specified tag.
|
void |
removeUniqueId(java.lang.String key) |
int |
size() |
ITextComponent |
toFormattedComponent(java.lang.String indentation,
int indentDepth) |
java.lang.String |
toString() |
void |
write(java.io.DataOutput output)
Write the actual data contents of the tag, implemented in NBT extension classes
|
getString, toFormattedComponent
public static final INBTType<CompoundNBT> TYPE
public void write(java.io.DataOutput output) throws java.io.IOException
public java.util.Set<java.lang.String> keySet()
public INBTType<CompoundNBT> getType()
public int size()
public void putByte(java.lang.String key, byte value)
public void putShort(java.lang.String key, short value)
public void putInt(java.lang.String key, int value)
public void putLong(java.lang.String key, long value)
public void putUniqueId(java.lang.String key, java.util.UUID value)
public java.util.UUID getUniqueId(java.lang.String key)
public boolean hasUniqueId(java.lang.String key)
public void removeUniqueId(java.lang.String key)
public void putFloat(java.lang.String key, float value)
public void putDouble(java.lang.String key, double value)
public void putString(java.lang.String key, java.lang.String value)
public void putByteArray(java.lang.String key, byte[] value)
public void putIntArray(java.lang.String key, int[] value)
public void putIntArray(java.lang.String key, java.util.List<java.lang.Integer> value)
public void putLongArray(java.lang.String key, long[] value)
public void putLongArray(java.lang.String key, java.util.List<java.lang.Long> value)
public void putBoolean(java.lang.String key, boolean value)
@Nullable public INBT get(java.lang.String key)
public byte getTagId(java.lang.String key)
public boolean contains(java.lang.String key)
public boolean contains(java.lang.String key, int type)
public byte getByte(java.lang.String key)
public short getShort(java.lang.String key)
public int getInt(java.lang.String key)
public long getLong(java.lang.String key)
public float getFloat(java.lang.String key)
public double getDouble(java.lang.String key)
public java.lang.String getString(java.lang.String key)
public byte[] getByteArray(java.lang.String key)
public int[] getIntArray(java.lang.String key)
public long[] getLongArray(java.lang.String key)
public CompoundNBT getCompound(java.lang.String key)
public ListNBT getList(java.lang.String key, int type)
public boolean getBoolean(java.lang.String key)
public void remove(java.lang.String key)
public java.lang.String toString()
public boolean isEmpty()
public CompoundNBT copy()
public boolean equals(java.lang.Object p_equals_1_)
equals
クラス内 java.lang.Object
public int hashCode()
hashCode
クラス内 java.lang.Object
public CompoundNBT merge(CompoundNBT other)
other
into this tag, then returns itself.protected static java.lang.String handleEscape(java.lang.String p_193582_0_)
protected static ITextComponent func_197642_t(java.lang.String p_197642_0_)
public ITextComponent toFormattedComponent(java.lang.String indentation, int indentDepth)
toFormattedComponent
インタフェース内 INBT