# INBTCompound.setString [← INBTCompound](index.md) · [← Master](../../wiki.md) Parça 1/2 · [sonraki](setString-2.md) setString(java.lang.String key, java.lang.String value) void Set string value by given key. Methods inherited from interface mchorse.mappet.api.scripts.user.nbt.INBT combine, copy, isCompound, isEmpty, isList, isSame, size, stringify Method Detail getNBTTagCompound NBTTagCompound getNBTTagCompound() Get raw NBT tag compound. BEWARE: you need to know the MCP mappings in order to directly call methods on this instance! getNBTTagComound @Deprecated default NBTTagCompound getNBTTagComound() Deprecated. Deprecated version of getNBTTagCompound() to avoid errors in existing scripts. Use the other method! has boolean has(java.lang.String key) Check whether this NBT compound has a value by given key. remove void remove(java.lang.String key) Remove a value by given key. keys java.util.Set keys() Get all keys. getByte byte getByte(java.lang.String key) Get byte (8-bit integer) value by given key. setByte void setByte(java.lang.String key, byte value) Set byte (8-bit integer) value by given key. getShort short getShort(java.lang.String key) Get short (16-bit integer) value by given key. setShort void setShort(java.lang.String key, short value) Set short (16-bit integer) value by given key. getInt int getInt(java.lang.String key) Get integer (32-bit integer) value by given key. setInt void setInt(java.lang.String key, int value) Set integer (32-bit integer) value by given key. getLong long getLong(java.lang.String key) Get long (64-bit integer) value by given key. setLong void setLong(java.lang.String key, long value) Set long (64-bit integer) value by given key. getFloat float getFloat(java.lang.String key)