Interface NbtComponentLike

  • All Implemented Interfaces:
    java.util.Map , pers.neige.neigeitems.libs.bot.inker.bukkit.nbt.api.NbtLike

    
    public interface NbtComponentLike
     implements NbtLike, Map<K, V>
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Nbt<out Object> get(String key)
      Nbt<out Object> get(Object key)
      abstract boolean containsKey(String key)
      boolean containsKey(Object key)
      abstract Nbt<out Object> remove(String key)
      Nbt<out Object> remove(Object key)
      Nbt<out Object> removeDeep(@NonNull() String key)
      Nbt<out Object> removeDeep(@NonNull() String key, char separator, char escape)
      boolean contains(Object key)
      boolean contains(String key)
      void delete(Object key)
      void delete(String key)
      void set(String key, Nbt<out Object> value)
      void putByte(String key, byte value) 等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.
      void putShort(String key, short value) 等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.
      void putInt(String key, int value) 等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.
      void putLong(String key, long value) 等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.
      void putUUID(String key, UUID value) 等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.
      void putFloat(String key, float value) 等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.
      void putDouble(String key, double value) 等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.
      void putString(String key, String value) 等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.
      void putByteArray(String key, Array<byte> value) 等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.
      void putByteArray(String key, List<Byte> value) 等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.
      void putIntArray(String key, Array<int> value) 等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.
      void putIntArray(String key, List<Integer> value) 等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.
      void putLongArray(String key, Array<long> value) 等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.
      void putLongArray(String key, List<Long> value) 等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.
      void putBoolean(String key, boolean value) 等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.
      byte getTagType(String key) 获取指定 NBT键 对应的 NBT值 的 NBT类型.
      boolean contains(String key, int value) 检测指定 NBT键 对应的 NBT值 是否属于对应类型.
      byte getByte(@NonNull() String key) 根据 NBT键 获取对应的 byte, 如果没有找到对应的 byte 则返回 0.
      Byte getByteOrNull(@NonNull() String key) 根据 NBT键 获取对应的 byte, 如果没有找到对应的 byte 则返回 null.
      byte getByte(@NonNull() String key, byte def) 根据 NBT键 获取对应的 byte, 如果没有找到对应的 byte 则返回默认值.
      short getShort(@NonNull() String key) 根据 NBT键 获取对应的 short, 如果没有找到对应的 short 则返回 0.
      Short getShortOrNull(@NonNull() String key) 根据 NBT键 获取对应的 short, 如果没有找到对应的 short 则返回 null.
      short getShort(@NonNull() String key, short def) 根据 NBT键 获取对应的 short, 如果没有找到对应的 short 则返回默认值.
      int getInt(@NonNull() String key) 根据 NBT键 获取对应的 int, 如果没有找到对应的 int 则返回 0.
      Integer getIntOrNull(@NonNull() String key) 根据 NBT键 获取对应的 int, 如果没有找到对应的 int 则返回 null.
      int getInt(@NonNull() String key, int def) 根据 NBT键 获取对应的 int, 如果没有找到对应的 int 则返回默认值.
      long getLong(@NonNull() String key) 根据 NBT键 获取对应的 long, 如果没有找到对应的 long 则返回 0.
      Long getLongOrNull(@NonNull() String key) 根据 NBT键 获取对应的 long, 如果没有找到对应的 long 则返回 null.
      long getLong(@NonNull() String key, long def) 根据 NBT键 获取对应的 long, 如果没有找到对应的 long 则返回默认值.
      UUID getUUID(@NonNull() String key) 根据 NBT键 获取对应的 UUID, 如果没有找到对应的 UUID 则返回 null.
      UUID getUUIDOrNull(@NonNull() String key) 根据 NBT键 获取对应的 UUID, 如果没有找到对应的 UUID 则返回 null.
      UUID getUUID(@NonNull() String key, @Nullable() UUID def) 根据 NBT键 获取对应的 UUID, 如果没有找到对应的 UUID 则返回默认值.
      float getFloat(@NonNull() String key) 根据 NBT键 获取对应的 float, 如果没有找到对应的 float 则返回 0.
      Float getFloatOrNull(@NonNull() String key) 根据 NBT键 获取对应的 float, 如果没有找到对应的 float 则返回 null.
      float getFloat(@NonNull() String key, float def) 根据 NBT键 获取对应的 float, 如果没有找到对应的 float 则返回默认值.
      double getDouble(@NonNull() String key) 根据 NBT键 获取对应的 double, 如果没有找到对应的 double 则返回 0.
      Double getDoubleOrNull(@NonNull() String key) 根据 NBT键 获取对应的 double, 如果没有找到对应的 double 则返回 null.
      double getDouble(@NonNull() String key, double def) 根据 NBT键 获取对应的 double, 如果没有找到对应的 double 则返回默认值.
      String getString(@NonNull() String key) 根据 NBT键 获取对应的 String, 如果没有找到对应的 String 则返回 null.
      String getStringOrNull(@NonNull() String key) 根据 NBT键 获取对应的 String, 如果没有找到对应的 String 则返回 null.
      String getString(@NonNull() String key, @Nullable() String def) 根据 NBT键 获取对应的 String, 如果没有找到对应的 String 则返回默认值.
      Array<byte> getByteArray(@NonNull() String key) 根据 NBT键 获取对应的 byte[], 如果没有找到对应的 byte[] 则返回空数组.
      Array<byte> getByteArrayOrNull(@NonNull() String key) 根据 NBT键 获取对应的 byte[], 如果没有找到对应的 byte[] 则返回 null.
      Array<byte> getByteArray(@NonNull() String key, Array<byte> def) 根据 NBT键 获取对应的 byte[], 如果没有找到对应的 byte[] 则返回默认值.
      Array<int> getIntArray(@NonNull() String key) 根据 NBT键 获取对应的 int[], 如果没有找到对应的 int[] 则返回空数组.
      Array<int> getIntArrayOrNull(@NonNull() String key) 根据 NBT键 获取对应的 int[], 如果没有找到对应的 int[] 则返回 null.
      Array<int> getIntArray(@NonNull() String key, Array<int> def) 根据 NBT键 获取对应的 int[], 如果没有找到对应的 int[] 则返回默认值.
      Array<long> getLongArray(@NonNull() String key) 根据 NBT键 获取对应的 long[], 如果没有找到对应的 long[] 则返回空数组.
      Array<long> getLongArrayOrNull(@NonNull() String key) 根据 NBT键 获取对应的 long[], 如果没有找到对应的 long[] 则返回 null.
      Array<long> getLongArray(@NonNull() String key, Array<long> def) 根据 NBT键 获取对应的 long[], 如果没有找到对应的 long[] 则返回默认值.
      NbtCompound getCompound(@NonNull() String key) 根据 NBT键 获取对应的 NbtCompound, 如果没有找到对应的 NbtCompound 则返回 null.
      NbtCompound getCompoundOrNull(@NonNull() String key) 根据 NBT键 获取对应的 NbtCompound, 如果没有找到对应的 NbtCompound 则返回 null.
      NbtCompound getCompound(@NonNull() String key, @Nullable() NbtCompound def) 根据 NBT键 获取对应的 NbtCompound, 如果没有找到对应的 NbtCompound 则返回默认值.
      NbtCompound getOrCreateCompound(@NonNull() String key) 根据 NBT键 获取对应的 NbtCompound, 如果没有找到对应的 NbtCompound 则设置并返回一个空 NbtCompound.
      NbtList getList(@NonNull() String key) 根据 NBT键 获取对应的 NbtList, 如果没有找到对应的 NbtList 则返回 null.
      NbtList getListOrNull(@NonNull() String key) 根据 NBT键 获取对应的 NbtList, 如果没有找到对应的 NbtList 则返回 null.
      NbtList getList(@NonNull() String key, @Nullable() NbtList def) 根据 NBT键 获取对应的 NbtList, 如果没有找到对应的 NbtList 则返回默认值.
      NbtList getOrCreateList(@NonNull() String key) 根据 NBT键 获取对应的 NbtList, 如果没有找到对应的 NbtList 则设置并返回一个空 NbtList.
      NbtList getList(String key, int elementType) 根据 NBT键 和 NBT类型 获取对应的 NbtList, 如果没有找到对应的 NbtList 或 类型不符 则返回 null.
      boolean getBoolean(@NonNull() String key) 根据 NBT键 获取对应的 boolean, 如果没有找到对应的 boolean 则返回 false.
      Boolean getBooleanOrNull(@NonNull() String key) 根据 NBT键 获取对应的 boolean, 如果没有找到对应的 boolean 则返回 null.
      boolean getBoolean(@NonNull() String key, boolean def) 根据 NBT键 获取对应的 boolean, 如果没有找到对应的 boolean 则返回默认值.
      Nbt<out Object> getDeep(@NonNull() String key, char separator, char escape) 根据 NBT键 获取对应的 Nbt, 如果没有找到对应的 Nbt 则返回 null.
      Nbt<out Object> getDeep(@NonNull() String key) 根据 NBT键 获取对应的 Nbt, 如果没有找到对应的 Nbt 则返回 null.
      byte getDeepByte(@NonNull() String key) 根据 NBT键 获取对应的 byte, 如果没有找到对应的 byte 则返回 (byte) 0.
      Byte getDeepByteOrNull(@NonNull() String key) 根据 NBT键 获取对应的 byte, 如果没有找到对应的 byte 则返回 null.
      byte getDeepByte(@NonNull() String key, byte def) 根据 NBT键 获取对应的 byte, 如果没有找到对应的 byte 则返回默认值.
      short getDeepShort(@NonNull() String key) 根据 NBT键 获取对应的 short, 如果没有找到对应的 short 则返回 (short) 0.
      Short getDeepShortOrNull(@NonNull() String key) 根据 NBT键 获取对应的 short, 如果没有找到对应的 short 则返回 null.
      short getDeepShort(@NonNull() String key, short def) 根据 NBT键 获取对应的 short, 如果没有找到对应的 short 则返回默认值.
      int getDeepInt(@NonNull() String key) 根据 NBT键 获取对应的 int, 如果没有找到对应的 int 则返回 0.
      Integer getDeepIntOrNull(@NonNull() String key) 根据 NBT键 获取对应的 int, 如果没有找到对应的 int 则返回 null.
      int getDeepInt(@NonNull() String key, int def) 根据 NBT键 获取对应的 int, 如果没有找到对应的 int 则返回默认值.
      long getDeepLong(@NonNull() String key) 根据 NBT键 获取对应的 long, 如果没有找到对应的 long 则返回 0.
      Long getDeepLongOrNull(@NonNull() String key) 根据 NBT键 获取对应的 long, 如果没有找到对应的 long 则返回 null.
      long getDeepLong(@NonNull() String key, long def) 根据 NBT键 获取对应的 long, 如果没有找到对应的 long 则返回默认值.
      UUID getDeepUUID(@NonNull() String key) 根据 NBT键 获取对应的 UUID, 如果没有找到对应的 UUID 则返回 null.
      UUID getDeepUUIDOrNull(@NonNull() String key) 根据 NBT键 获取对应的 UUID, 如果没有找到对应的 UUID 则返回 null.
      UUID getDeepUUID(@NonNull() String key, @Nullable() UUID def) 根据 NBT键 获取对应的 UUID, 如果没有找到对应的 UUID 则返回默认值.
      float getDeepFloat(@NonNull() String key) 根据 NBT键 获取对应的 float, 如果没有找到对应的 float 则返回 0.0F.
      Float getDeepFloatOrNull(@NonNull() String key) 根据 NBT键 获取对应的 float, 如果没有找到对应的 float 则返回 null.
      float getDeepFloat(@NonNull() String key, float def) 根据 NBT键 获取对应的 float, 如果没有找到对应的 float 则返回默认值.
      double getDeepDouble(@NonNull() String key) 根据 NBT键 获取对应的 double, 如果没有找到对应的 double 则返回 0.0D.
      Double getDeepDoubleOrNull(@NonNull() String key) 根据 NBT键 获取对应的 double, 如果没有找到对应的 double 则返回 null.
      double getDeepDouble(@NonNull() String key, double def) 根据 NBT键 获取对应的 double, 如果没有找到对应的 double 则返回默认值.
      String getDeepString(@NonNull() String key) 根据 NBT键 获取对应的 String, 如果没有找到对应的 String 则返回 null.
      String getDeepStringOrNull(@NonNull() String key) 根据 NBT键 获取对应的 String, 如果没有找到对应的 String 则返回 null.
      String getDeepString(@NonNull() String key, @Nullable() String def) 根据 NBT键 获取对应的 String, 如果没有找到对应的 String 则返回默认值.
      Array<byte> getDeepByteArray(@NonNull() String key) 根据 NBT键 获取对应的 byte[], 如果没有找到对应的 byte[] 则返回空数组.
      Array<byte> getDeepByteArrayOrNull(@NonNull() String key) 根据 NBT键 获取对应的 byte[], 如果没有找到对应的 byte[] 则返回 null.
      Array<byte> getDeepByteArray(@NonNull() String key, Array<byte> def) 根据 NBT键 获取对应的 byte[], 如果没有找到对应的 byte[] 则返回默认值.
      Array<int> getDeepIntArray(@NonNull() String key) 根据 NBT键 获取对应的 int[], 如果没有找到对应的 int[] 则返回空数组.
      Array<int> getDeepIntArrayOrNull(@NonNull() String key) 根据 NBT键 获取对应的 int[], 如果没有找到对应的 int[] 则返回 null.
      Array<int> getDeepIntArray(@NonNull() String key, Array<int> def) 根据 NBT键 获取对应的 int[], 如果没有找到对应的 int[] 则返回默认值.
      Array<long> getDeepLongArray(@NonNull() String key) 根据 NBT键 获取对应的 long[], 如果没有找到对应的 long[] 则返回空数组.
      Array<long> getDeepLongArrayOrNull(@NonNull() String key) 根据 NBT键 获取对应的 long[], 如果没有找到对应的 long[] 则返回 null.
      Array<long> getDeepLongArray(@NonNull() String key, Array<long> def) 根据 NBT键 获取对应的 long[], 如果没有找到对应的 long[] 则返回默认值.
      NbtCompound getDeepCompound(@NonNull() String key) 根据 NBT键 获取对应的 NbtCompound, 如果没有找到对应的 NbtCompound 则返回 null.
      NbtCompound getDeepCompoundOrNull(@NonNull() String key) 根据 NBT键 获取对应的 NbtCompound, 如果没有找到对应的 NbtCompound 则返回 null.
      NbtCompound getDeepCompound(@NonNull() String key, @Nullable() NbtCompound def) 根据 NBT键 获取对应的 NbtCompound, 如果没有找到对应的 NbtCompound 则返回默认值.
      NbtList getDeepList(@NonNull() String key) 根据 NBT键 获取对应的 NbtList, 如果没有找到对应的 NbtList 则返回 null.
      NbtList getDeepListOrNull(@NonNull() String key) 根据 NBT键 获取对应的 NbtList, 如果没有找到对应的 NbtList 则返回 null.
      NbtList getDeepList(@NonNull() String key, @Nullable() NbtList def) 根据 NBT键 获取对应的 NbtList, 如果没有找到对应的 NbtList 则返回默认值.
      boolean getDeepBoolean(@NonNull() String key) 根据 NBT键 获取对应的 boolean, 如果没有找到对应的 boolean 则返回 false.
      Boolean getDeepBooleanOrNull(@NonNull() String key) 根据 NBT键 获取对应的 boolean, 如果没有找到对应的 boolean 则返回 null.
      boolean getDeepBoolean(@NonNull() String key, boolean def) 根据 NBT键 获取对应的 boolean, 如果没有找到对应的 boolean 则返回默认值.
      void putDeep(@NonNull() String key, @NonNull() Nbt<out Object> value, boolean force, char separator, char escape)
      void putDeep(@NonNull() String key, @NonNull() Nbt<out Object> value, boolean force)
      void putDeep(@NonNull() String key, @NonNull() Nbt<out Object> value)
      void putDeepByte(@NonNull() String key, byte value, boolean force) 将指定的 NBT键 设置为给定值.
      void putDeepByte(@NonNull() String key, byte value) 将指定的 NBT键 设置为给定值.
      void putDeepShort(@NonNull() String key, short value, boolean force) 将指定的 NBT键 设置为给定值.
      void putDeepShort(@NonNull() String key, short value) 将指定的 NBT键 设置为给定值.
      void putDeepInt(@NonNull() String key, int value, boolean force) 将指定的 NBT键 设置为给定值.
      void putDeepInt(@NonNull() String key, int value) 将指定的 NBT键 设置为给定值.
      void putDeepLong(@NonNull() String key, long value, boolean force) 将指定的 NBT键 设置为给定值.
      void putDeepLong(@NonNull() String key, long value) 将指定的 NBT键 设置为给定值.
      void putDeepFloat(@NonNull() String key, float value, boolean force) 将指定的 NBT键 设置为给定值.
      void putDeepFloat(@NonNull() String key, float value) 将指定的 NBT键 设置为给定值.
      void putDeepDouble(@NonNull() String key, double value, boolean force) 将指定的 NBT键 设置为给定值.
      void putDeepDouble(@NonNull() String key, double value) 将指定的 NBT键 设置为给定值.
      void putDeepString(@NonNull() String key, @NonNull() String value, boolean force) 将指定的 NBT键 设置为给定值.
      void putDeepString(@NonNull() String key, @NonNull() String value) 将指定的 NBT键 设置为给定值.
      void putDeepByteArray(@NonNull() String key, Array<byte> value, boolean force) 将指定的 NBT键 设置为给定值.
      void putDeepByteArray(@NonNull() String key, Array<byte> value) 将指定的 NBT键 设置为给定值.
      void putDeepByteArray(@NonNull() String key, @NonNull() List<Byte> value, boolean force) 将指定的 NBT键 设置为给定值.
      void putDeepByteArray(@NonNull() String key, @NonNull() List<Byte> value) 将指定的 NBT键 设置为给定值.
      void putDeepIntArray(@NonNull() String key, Array<int> value, boolean force) 将指定的 NBT键 设置为给定值.
      void putDeepIntArray(@NonNull() String key, Array<int> value) 将指定的 NBT键 设置为给定值.
      void putDeepIntArray(@NonNull() String key, @NonNull() List<Integer> value, boolean force) 将指定的 NBT键 设置为给定值.
      void putDeepIntArray(@NonNull() String key, @NonNull() List<Integer> value) 将指定的 NBT键 设置为给定值.
      void putDeepLongArray(@NonNull() String key, Array<long> value, boolean force) 将指定的 NBT键 设置为给定值.
      void putDeepLongArray(@NonNull() String key, Array<long> value) 将指定的 NBT键 设置为给定值.
      void putDeepLongArray(@NonNull() String key, @NonNull() List<Long> value, boolean force) 将指定的 NBT键 设置为给定值.
      void putDeepLongArray(@NonNull() String key, @NonNull() List<Long> value) 将指定的 NBT键 设置为给定值.
      void putDeepBoolean(@NonNull() String key, boolean value, boolean force) 将指定的 NBT键 设置为给定值.
      void putDeepBoolean(@NonNull() String key, boolean value) 将指定的 NBT键 设置为给定值.
      abstract NbtComponentLike clone()
      • Methods inherited from class pers.neige.neigeitems.libs.bot.inker.bukkit.nbt.api.NbtLike

        getAsString, getId
      • Methods inherited from class java.util.Map

        clear, compute, computeIfAbsent, computeIfPresent, containsValue, copyOf, entry, entrySet, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, of, ofEntries, put, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • putByte

         void putByte(String key, byte value)

        等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.

      • putShort

         void putShort(String key, short value)

        等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.

      • putInt

         void putInt(String key, int value)

        等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.

      • putLong

         void putLong(String key, long value)

        等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.

      • putUUID

         void putUUID(String key, UUID value)

        等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.

      • putFloat

         void putFloat(String key, float value)

        等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.

      • putDouble

         void putDouble(String key, double value)

        等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.

      • putString

         void putString(String key, String value)

        等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.

      • putByteArray

         void putByteArray(String key, Array<byte> value)

        等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.

      • putByteArray

         void putByteArray(String key, List<Byte> value)

        等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.

      • putIntArray

         void putIntArray(String key, Array<int> value)

        等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.

      • putIntArray

         void putIntArray(String key, List<Integer> value)

        等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.

      • putLongArray

         void putLongArray(String key, Array<long> value)

        等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.

      • putLongArray

         void putLongArray(String key, List<Long> value)

        等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.

      • putBoolean

         void putBoolean(String key, boolean value)

        等价于 Map#put(Object, Object) 方法, 区别在于将 value 转换为了对应类型的 NBT实例.

      • getTagType

         byte getTagType(String key)

        获取指定 NBT键 对应的 NBT值 的 NBT类型.

        Parameters:
        key - 待检测的 NBT键.
        Returns:

        指定 NBT键 对应的 NBT值 的 NBT类型, 数字与类型的对应关系详见 pers.neige.neigeitems.libs.bot.inker.bukkit.nbt.NbtType 类所属的公有静态变量.

      • contains

         boolean contains(String key, int value)

        检测指定 NBT键 对应的 NBT值 是否属于对应类型.

        Parameters:
        key - 待检测的 NBT键.
        value - NBT类型, 数字与类型的对应关系详见 pers.neige.neigeitems.libs.bot.inker.bukkit.nbt.NbtType 类所属的公有静态变量.
        Returns:

        指定 NBT键 对应的 NBT值 是否属于对应类型.

      • getByte

         byte getByte(@NonNull() String key)

        根据 NBT键 获取对应的 byte, 如果没有找到对应的 byte 则返回 0.

        Parameters:
        key - 要获取 byte 的 NBT键.
        Returns:

        待查找的 byte.

      • getByteOrNull

        @Nullable() Byte getByteOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 byte, 如果没有找到对应的 byte 则返回 null.

        Parameters:
        key - 要获取 byte 的 NBT键.
        Returns:

        待查找的 byte.

      • getByte

         byte getByte(@NonNull() String key, byte def)

        根据 NBT键 获取对应的 byte, 如果没有找到对应的 byte 则返回默认值.

        Parameters:
        key - 要获取 byte 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 数字, 则返回的默认值.
        Returns:

        待查找的 byte.

      • getShort

         short getShort(@NonNull() String key)

        根据 NBT键 获取对应的 short, 如果没有找到对应的 short 则返回 0.

        Parameters:
        key - 要获取 short 的 NBT键.
        Returns:

        待查找的 short.

      • getShortOrNull

        @Nullable() Short getShortOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 short, 如果没有找到对应的 short 则返回 null.

        Parameters:
        key - 要获取 short 的 NBT键.
        Returns:

        待查找的 short.

      • getShort

         short getShort(@NonNull() String key, short def)

        根据 NBT键 获取对应的 short, 如果没有找到对应的 short 则返回默认值.

        Parameters:
        key - 要获取 short 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 数字, 则返回的默认值.
        Returns:

        待查找的 short.

      • getInt

         int getInt(@NonNull() String key)

        根据 NBT键 获取对应的 int, 如果没有找到对应的 int 则返回 0.

        Parameters:
        key - 要获取 int 的 NBT键.
        Returns:

        待查找的 int.

      • getIntOrNull

        @Nullable() Integer getIntOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 int, 如果没有找到对应的 int 则返回 null.

        Parameters:
        key - 要获取 int 的 NBT键.
        Returns:

        待查找的 int.

      • getInt

         int getInt(@NonNull() String key, int def)

        根据 NBT键 获取对应的 int, 如果没有找到对应的 int 则返回默认值.

        Parameters:
        key - 要获取 int 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 数字, 则返回的默认值.
        Returns:

        待查找的 int.

      • getLong

         long getLong(@NonNull() String key)

        根据 NBT键 获取对应的 long, 如果没有找到对应的 long 则返回 0.

        Parameters:
        key - 要获取 long 的 NBT键.
        Returns:

        待查找的 long.

      • getLongOrNull

        @Nullable() Long getLongOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 long, 如果没有找到对应的 long 则返回 null.

        Parameters:
        key - 要获取 long 的 NBT键.
        Returns:

        待查找的 long.

      • getLong

         long getLong(@NonNull() String key, long def)

        根据 NBT键 获取对应的 long, 如果没有找到对应的 long 则返回默认值.

        Parameters:
        key - 要获取 long 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 数字, 则返回的默认值.
        Returns:

        待查找的 long.

      • getUUID

        @Nullable() UUID getUUID(@NonNull() String key)

        根据 NBT键 获取对应的 UUID, 如果没有找到对应的 UUID 则返回 null.

        Parameters:
        key - 要获取 UUID 的 NBT键.
        Returns:

        待查找的 UUID.

      • getUUIDOrNull

        @Nullable() UUID getUUIDOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 UUID, 如果没有找到对应的 UUID 则返回 null.

        Parameters:
        key - 要获取 UUID 的 NBT键.
        Returns:

        待查找的 UUID.

      • getUUID

        @Contract(value = "_, !null -> !null")@Nullable() UUID getUUID(@NonNull() String key, @Nullable() UUID def)

        根据 NBT键 获取对应的 UUID, 如果没有找到对应的 UUID 则返回默认值.

        Parameters:
        key - 要获取 UUID 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 UUID, 则返回的默认值.
        Returns:

        待查找的 UUID.

      • getFloat

         float getFloat(@NonNull() String key)

        根据 NBT键 获取对应的 float, 如果没有找到对应的 float 则返回 0.

        Parameters:
        key - 要获取 float 的 NBT键.
        Returns:

        待查找的 float.

      • getFloatOrNull

        @Nullable() Float getFloatOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 float, 如果没有找到对应的 float 则返回 null.

        Parameters:
        key - 要获取 float 的 NBT键.
        Returns:

        待查找的 float.

      • getFloat

         float getFloat(@NonNull() String key, float def)

        根据 NBT键 获取对应的 float, 如果没有找到对应的 float 则返回默认值.

        Parameters:
        key - 要获取 float 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 数字, 则返回的默认值.
        Returns:

        待查找的 float.

      • getDouble

         double getDouble(@NonNull() String key)

        根据 NBT键 获取对应的 double, 如果没有找到对应的 double 则返回 0.

        Parameters:
        key - 要获取 double 的 NBT键.
        Returns:

        待查找的 double.

      • getDoubleOrNull

        @Nullable() Double getDoubleOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 double, 如果没有找到对应的 double 则返回 null.

        Parameters:
        key - 要获取 double 的 NBT键.
        Returns:

        待查找的 double.

      • getDouble

         double getDouble(@NonNull() String key, double def)

        根据 NBT键 获取对应的 double, 如果没有找到对应的 double 则返回默认值.

        Parameters:
        key - 要获取 double 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 数字, 则返回的默认值.
        Returns:

        待查找的 double.

      • getString

        @Nullable() String getString(@NonNull() String key)

        根据 NBT键 获取对应的 String, 如果没有找到对应的 String 则返回 null.

        Parameters:
        key - 要获取 String 的 NBT键.
        Returns:

        待查找的 String.

      • getStringOrNull

        @Nullable() String getStringOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 String, 如果没有找到对应的 String 则返回 null.

        Parameters:
        key - 要获取 String 的 NBT键.
        Returns:

        待查找的 String.

      • getString

        @Contract(value = "_, !null -> !null")@Nullable() String getString(@NonNull() String key, @Nullable() String def)

        根据 NBT键 获取对应的 String, 如果没有找到对应的 String 则返回默认值.

        Parameters:
        key - 要获取 String 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不存在, 则返回的默认值.
        Returns:

        待查找的 String.

      • getByteArray

         Array<byte> getByteArray(@NonNull() String key)

        根据 NBT键 获取对应的 byte[], 如果没有找到对应的 byte[] 则返回空数组.

        Parameters:
        key - 要获取 byte[] 的 NBT键.
        Returns:

        待查找的 byte[].

      • getByteArrayOrNull

         Array<byte> getByteArrayOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 byte[], 如果没有找到对应的 byte[] 则返回 null.

        Parameters:
        key - 要获取 byte[] 的 NBT键.
        Returns:

        待查找的 byte[].

      • getByteArray

        @Contract(value = "_, !null -> !null") Array<byte> getByteArray(@NonNull() String key, Array<byte> def)

        根据 NBT键 获取对应的 byte[], 如果没有找到对应的 byte[] 则返回默认值.

        Parameters:
        key - 要获取 byte[] 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 byte[], 则返回的默认值.
        Returns:

        待查找的 byte[].

      • getIntArray

         Array<int> getIntArray(@NonNull() String key)

        根据 NBT键 获取对应的 int[], 如果没有找到对应的 int[] 则返回空数组.

        Parameters:
        key - 要获取 int[] 的 NBT键.
        Returns:

        待查找的 int[].

      • getIntArrayOrNull

         Array<int> getIntArrayOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 int[], 如果没有找到对应的 int[] 则返回 null.

        Parameters:
        key - 要获取 int[] 的 NBT键.
        Returns:

        待查找的 int[].

      • getIntArray

        @Contract(value = "_, !null -> !null") Array<int> getIntArray(@NonNull() String key, Array<int> def)

        根据 NBT键 获取对应的 int[], 如果没有找到对应的 int[] 则返回默认值.

        Parameters:
        key - 要获取 int[] 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 int[], 则返回的默认值.
        Returns:

        待查找的 int[].

      • getLongArray

         Array<long> getLongArray(@NonNull() String key)

        根据 NBT键 获取对应的 long[], 如果没有找到对应的 long[] 则返回空数组.

        Parameters:
        key - 要获取 long[] 的 NBT键.
        Returns:

        待查找的 long[].

      • getLongArrayOrNull

         Array<long> getLongArrayOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 long[], 如果没有找到对应的 long[] 则返回 null.

        Parameters:
        key - 要获取 long[] 的 NBT键.
        Returns:

        待查找的 long[].

      • getLongArray

        @Contract(value = "_, !null -> !null") Array<long> getLongArray(@NonNull() String key, Array<long> def)

        根据 NBT键 获取对应的 long[], 如果没有找到对应的 long[] 则返回默认值.

        Parameters:
        key - 要获取 long[] 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 long[], 则返回的默认值.
        Returns:

        待查找的 long[].

      • getCompound

        @Nullable() NbtCompound getCompound(@NonNull() String key)

        根据 NBT键 获取对应的 NbtCompound, 如果没有找到对应的 NbtCompound 则返回 null.

        Parameters:
        key - 要获取 NbtCompound 的 NBT键.
        Returns:

        待查找的 NbtCompound.

      • getCompoundOrNull

        @Nullable() NbtCompound getCompoundOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 NbtCompound, 如果没有找到对应的 NbtCompound 则返回 null.

        Parameters:
        key - 要获取 NbtCompound 的 NBT键.
        Returns:

        待查找的 NbtCompound.

      • getCompound

        @Contract(value = "_, !null -> !null")@Nullable() NbtCompound getCompound(@NonNull() String key, @Nullable() NbtCompound def)

        根据 NBT键 获取对应的 NbtCompound, 如果没有找到对应的 NbtCompound 则返回默认值.

        Parameters:
        key - 要获取 NbtCompound 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 NbtCompound, 则返回的默认值.
        Returns:

        待查找的 NbtCompound.

      • getOrCreateCompound

        @NonNull() NbtCompound getOrCreateCompound(@NonNull() String key)

        根据 NBT键 获取对应的 NbtCompound, 如果没有找到对应的 NbtCompound 则设置并返回一个空 NbtCompound.

        Parameters:
        key - 要获取 NbtCompound 的 NBT键.
        Returns:

        待查找的 NbtCompound.

      • getList

        @Nullable() NbtList getList(@NonNull() String key)

        根据 NBT键 获取对应的 NbtList, 如果没有找到对应的 NbtList 则返回 null.

        Parameters:
        key - 要获取 NbtList 的 NBT键.
        Returns:

        待查找的 NbtList.

      • getListOrNull

        @Nullable() NbtList getListOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 NbtList, 如果没有找到对应的 NbtList 则返回 null.

        Parameters:
        key - 要获取 NbtList 的 NBT键.
        Returns:

        待查找的 NbtList.

      • getList

        @Contract(value = "_, !null -> !null")@Nullable() NbtList getList(@NonNull() String key, @Nullable() NbtList def)

        根据 NBT键 获取对应的 NbtList, 如果没有找到对应的 NbtList 则返回默认值.

        Parameters:
        key - 要获取 NbtList 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 NbtList, 则返回的默认值.
        Returns:

        待查找的 NbtList.

      • getOrCreateList

        @NonNull() NbtList getOrCreateList(@NonNull() String key)

        根据 NBT键 获取对应的 NbtList, 如果没有找到对应的 NbtList 则设置并返回一个空 NbtList.

        Parameters:
        key - 要获取 NbtList 的 NBT键.
        Returns:

        待查找的 NbtList.

      • getList

        @Nullable() NbtList getList(String key, int elementType)

        根据 NBT键 和 NBT类型 获取对应的 NbtList, 如果没有找到对应的 NbtList 或 类型不符 则返回 null.

        Parameters:
        key - 要获取 NbtList 的 NBT键.
        elementType - NbtList 的 期望类型(可藉由 NbtType 类传入).
        Returns:

        待查找的 NbtList.

      • getBoolean

         boolean getBoolean(@NonNull() String key)

        根据 NBT键 获取对应的 boolean, 如果没有找到对应的 boolean 则返回 false.

        Parameters:
        key - 要获取 boolean 的 NBT键.
        Returns:

        待查找的 boolean.

      • getBooleanOrNull

        @Nullable() Boolean getBooleanOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 boolean, 如果没有找到对应的 boolean 则返回 null.

        Parameters:
        key - 要获取 boolean 的 NBT键.
        Returns:

        待查找的 boolean.

      • getBoolean

         boolean getBoolean(@NonNull() String key, boolean def)

        根据 NBT键 获取对应的 boolean, 如果没有找到对应的 boolean 则返回默认值.

        Parameters:
        key - 要获取 boolean 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 boolean, 则返回的默认值.
        Returns:

        待查找的 boolean.

      • getDeep

        @Nullable() Nbt<out Object> getDeep(@NonNull() String key, char separator, char escape)

        根据 NBT键 获取对应的 Nbt, 如果没有找到对应的 Nbt 则返回 null. 例如 key 填写 "test.test\\.test", separator 填写 '.', escape 填写 '\\'. 最后将获取键为 "test" 的 NbtComponentLike 下键为 "test.test" 的 NbtLike 的值.

        Parameters:
        key - 要获取 Nbt 的 NBT键.
        separator - 多级NBT键分隔符.
        escape - 分隔符转义符.
        Returns:

        待查找的 Nbt.

      • getDeep

        @Nullable() Nbt<out Object> getDeep(@NonNull() String key)

        根据 NBT键 获取对应的 Nbt, 如果没有找到对应的 Nbt 则返回 null. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 Nbt 的 NBT键.
        Returns:

        待查找的 Nbt.

      • getDeepByte

         byte getDeepByte(@NonNull() String key)

        根据 NBT键 获取对应的 byte, 如果没有找到对应的 byte 则返回 (byte) 0. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 byte 的 NBT键.
        Returns:

        待查找的 byte.

      • getDeepByteOrNull

        @Nullable() Byte getDeepByteOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 byte, 如果没有找到对应的 byte 则返回 null. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 byte 的 NBT键.
        Returns:

        待查找的 byte.

      • getDeepByte

         byte getDeepByte(@NonNull() String key, byte def)

        根据 NBT键 获取对应的 byte, 如果没有找到对应的 byte 则返回默认值. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 byte 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 数字, 则返回的默认值.
        Returns:

        待查找的 byte.

      • getDeepShort

         short getDeepShort(@NonNull() String key)

        根据 NBT键 获取对应的 short, 如果没有找到对应的 short 则返回 (short) 0. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 short 的 NBT键.
        Returns:

        待查找的 short.

      • getDeepShortOrNull

        @Nullable() Short getDeepShortOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 short, 如果没有找到对应的 short 则返回 null. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 short 的 NBT键.
        Returns:

        待查找的 short.

      • getDeepShort

         short getDeepShort(@NonNull() String key, short def)

        根据 NBT键 获取对应的 short, 如果没有找到对应的 short 则返回默认值. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 short 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 数字, 则返回的默认值.
        Returns:

        待查找的 short.

      • getDeepInt

         int getDeepInt(@NonNull() String key)

        根据 NBT键 获取对应的 int, 如果没有找到对应的 int 则返回 0. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 int 的 NBT键.
        Returns:

        待查找的 int.

      • getDeepIntOrNull

        @Nullable() Integer getDeepIntOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 int, 如果没有找到对应的 int 则返回 null. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 int 的 NBT键.
        Returns:

        待查找的 int.

      • getDeepInt

         int getDeepInt(@NonNull() String key, int def)

        根据 NBT键 获取对应的 int, 如果没有找到对应的 int 则返回默认值. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 int 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 数字, 则返回的默认值.
        Returns:

        待查找的 int.

      • getDeepLong

         long getDeepLong(@NonNull() String key)

        根据 NBT键 获取对应的 long, 如果没有找到对应的 long 则返回 0. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 long 的 NBT键.
        Returns:

        待查找的 long.

      • getDeepLongOrNull

        @Nullable() Long getDeepLongOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 long, 如果没有找到对应的 long 则返回 null. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 long 的 NBT键.
        Returns:

        待查找的 long.

      • getDeepLong

         long getDeepLong(@NonNull() String key, long def)

        根据 NBT键 获取对应的 long, 如果没有找到对应的 long 则返回默认值. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 long 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 数字, 则返回的默认值.
        Returns:

        待查找的 long.

      • getDeepUUID

        @Nullable() UUID getDeepUUID(@NonNull() String key)

        根据 NBT键 获取对应的 UUID, 如果没有找到对应的 UUID 则返回 null. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 UUID 的 NBT键.
        Returns:

        待查找的 UUID.

      • getDeepUUIDOrNull

        @Nullable() UUID getDeepUUIDOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 UUID, 如果没有找到对应的 UUID 则返回 null. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 UUID 的 NBT键.
        Returns:

        待查找的 UUID.

      • getDeepUUID

        @Contract(value = "_, !null -> !null")@Nullable() UUID getDeepUUID(@NonNull() String key, @Nullable() UUID def)

        根据 NBT键 获取对应的 UUID, 如果没有找到对应的 UUID 则返回默认值. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 UUID 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 UUID, 则返回的默认值.
        Returns:

        待查找的 UUID.

      • getDeepFloat

         float getDeepFloat(@NonNull() String key)

        根据 NBT键 获取对应的 float, 如果没有找到对应的 float 则返回 0.0F. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 float 的 NBT键.
        Returns:

        待查找的 float.

      • getDeepFloatOrNull

        @Nullable() Float getDeepFloatOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 float, 如果没有找到对应的 float 则返回 null. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 float 的 NBT键.
        Returns:

        待查找的 float.

      • getDeepFloat

         float getDeepFloat(@NonNull() String key, float def)

        根据 NBT键 获取对应的 float, 如果没有找到对应的 float 则返回默认值. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 float 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 数字, 则返回的默认值.
        Returns:

        待查找的 float.

      • getDeepDouble

         double getDeepDouble(@NonNull() String key)

        根据 NBT键 获取对应的 double, 如果没有找到对应的 double 则返回 0.0D. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 double 的 NBT键.
        Returns:

        待查找的 double.

      • getDeepDoubleOrNull

        @Nullable() Double getDeepDoubleOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 double, 如果没有找到对应的 double 则返回 null. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 double 的 NBT键.
        Returns:

        待查找的 double.

      • getDeepDouble

         double getDeepDouble(@NonNull() String key, double def)

        根据 NBT键 获取对应的 double, 如果没有找到对应的 double 则返回默认值. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 double 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 数字, 则返回的默认值.
        Returns:

        待查找的 double.

      • getDeepString

        @Nullable() String getDeepString(@NonNull() String key)

        根据 NBT键 获取对应的 String, 如果没有找到对应的 String 则返回 null. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 String 的 NBT键.
        Returns:

        待查找的 String.

      • getDeepStringOrNull

        @Nullable() String getDeepStringOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 String, 如果没有找到对应的 String 则返回 null. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 String 的 NBT键.
        Returns:

        待查找的 String.

      • getDeepString

        @Contract(value = "_, !null -> !null")@Nullable() String getDeepString(@NonNull() String key, @Nullable() String def)

        根据 NBT键 获取对应的 String, 如果没有找到对应的 String 则返回默认值. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 String 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 String, 则返回的默认值.
        Returns:

        待查找的 String.

      • getDeepByteArray

         Array<byte> getDeepByteArray(@NonNull() String key)

        根据 NBT键 获取对应的 byte[], 如果没有找到对应的 byte[] 则返回空数组. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 byte[] 的 NBT键.
        Returns:

        待查找的 byte[].

      • getDeepByteArrayOrNull

         Array<byte> getDeepByteArrayOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 byte[], 如果没有找到对应的 byte[] 则返回 null. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 byte[] 的 NBT键.
        Returns:

        待查找的 byte[].

      • getDeepByteArray

        @Contract(value = "_, !null -> !null") Array<byte> getDeepByteArray(@NonNull() String key, Array<byte> def)

        根据 NBT键 获取对应的 byte[], 如果没有找到对应的 byte[] 则返回默认值. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 byte[] 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 byte[], 则返回的默认值.
        Returns:

        待查找的 byte[].

      • getDeepIntArray

         Array<int> getDeepIntArray(@NonNull() String key)

        根据 NBT键 获取对应的 int[], 如果没有找到对应的 int[] 则返回空数组. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 int[] 的 NBT键.
        Returns:

        待查找的 int[].

      • getDeepIntArrayOrNull

         Array<int> getDeepIntArrayOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 int[], 如果没有找到对应的 int[] 则返回 null. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 int[] 的 NBT键.
        Returns:

        待查找的 int[].

      • getDeepIntArray

        @Contract(value = "_, !null -> !null") Array<int> getDeepIntArray(@NonNull() String key, Array<int> def)

        根据 NBT键 获取对应的 int[], 如果没有找到对应的 int[] 则返回默认值. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 int[] 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 int[], 则返回的默认值.
        Returns:

        待查找的 int[].

      • getDeepLongArray

         Array<long> getDeepLongArray(@NonNull() String key)

        根据 NBT键 获取对应的 long[], 如果没有找到对应的 long[] 则返回空数组. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 long[] 的 NBT键.
        Returns:

        待查找的 long[].

      • getDeepLongArrayOrNull

         Array<long> getDeepLongArrayOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 long[], 如果没有找到对应的 long[] 则返回 null. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 long[] 的 NBT键.
        Returns:

        待查找的 long[].

      • getDeepLongArray

        @Contract(value = "_, !null -> !null") Array<long> getDeepLongArray(@NonNull() String key, Array<long> def)

        根据 NBT键 获取对应的 long[], 如果没有找到对应的 long[] 则返回默认值. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 long[] 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 long[], 则返回的默认值.
        Returns:

        待查找的 long[].

      • getDeepCompound

        @Nullable() NbtCompound getDeepCompound(@NonNull() String key)

        根据 NBT键 获取对应的 NbtCompound, 如果没有找到对应的 NbtCompound 则返回 null. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 NbtCompound 的 NBT键.
        Returns:

        待查找的 NbtCompound.

      • getDeepCompoundOrNull

        @Nullable() NbtCompound getDeepCompoundOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 NbtCompound, 如果没有找到对应的 NbtCompound 则返回 null. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 NbtCompound 的 NBT键.
        Returns:

        待查找的 NbtCompound.

      • getDeepCompound

        @Contract(value = "_, !null -> !null")@Nullable() NbtCompound getDeepCompound(@NonNull() String key, @Nullable() NbtCompound def)

        根据 NBT键 获取对应的 NbtCompound, 如果没有找到对应的 NbtCompound 则返回默认值. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 NbtCompound 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 NbtCompound, 则返回的默认值.
        Returns:

        待查找的 NbtCompound.

      • getDeepList

        @Nullable() NbtList getDeepList(@NonNull() String key)

        根据 NBT键 获取对应的 NbtList, 如果没有找到对应的 NbtList 则返回 null. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 NbtList 的 NBT键.
        Returns:

        待查找的 NbtList.

      • getDeepListOrNull

        @Nullable() NbtList getDeepListOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 NbtList, 如果没有找到对应的 NbtList 则返回 null. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 NbtList 的 NBT键.
        Returns:

        待查找的 NbtList.

      • getDeepList

        @Contract(value = "_, !null -> !null")@Nullable() NbtList getDeepList(@NonNull() String key, @Nullable() NbtList def)

        根据 NBT键 获取对应的 NbtList, 如果没有找到对应的 NbtList 则返回默认值. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 NbtList 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 NbtList, 则返回的默认值.
        Returns:

        待查找的 NbtList.

      • getDeepBoolean

         boolean getDeepBoolean(@NonNull() String key)

        根据 NBT键 获取对应的 boolean, 如果没有找到对应的 boolean 则返回 false. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 boolean 的 NBT键.
        Returns:

        待查找的 boolean.

      • getDeepBooleanOrNull

        @Nullable() Boolean getDeepBooleanOrNull(@NonNull() String key)

        根据 NBT键 获取对应的 boolean, 如果没有找到对应的 boolean 则返回 null. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 boolean 的 NBT键.
        Returns:

        待查找的 boolean.

      • getDeepBoolean

         boolean getDeepBoolean(@NonNull() String key, boolean def)

        根据 NBT键 获取对应的 boolean, 如果没有找到对应的 boolean 则返回默认值. NBT键 以 . 做分隔符.

        Parameters:
        key - 要获取 boolean 的 NBT键.
        def - 如果找不到对应的 NBT 或对应的 NBT 不是 boolean, 则返回的默认值.
        Returns:

        待查找的 boolean.

      • putDeep

         void putDeep(@NonNull() String key, @NonNull() Nbt<out Object> value, boolean force, char separator, char escape)
      • putDeepByte

         void putDeepByte(@NonNull() String key, byte value, boolean force)

        将指定的 NBT键 设置为给定值. 若 force 为 false 且对应的 key 无效, 则不进行设置. 若 force 为 true 且对应的 key 无效, 则进行强制设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. 强制设置的例子: 你想要将 t1.t2.t3 设置为一个 1, t1.t2 的值不是 NbtCompound, 则强制将 t1.t2 的值设置为 new NbtCompound(). NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
        force - key 无效时是否强制设置.
      • putDeepByte

         void putDeepByte(@NonNull() String key, byte value)

        将指定的 NBT键 设置为给定值. 若对应的 key 无效, 则不进行设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
      • putDeepShort

         void putDeepShort(@NonNull() String key, short value, boolean force)

        将指定的 NBT键 设置为给定值. 若 force 为 false 且对应的 key 无效, 则不进行设置. 若 force 为 true 且对应的 key 无效, 则进行强制设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. 强制设置的例子: 你想要将 t1.t2.t3 设置为一个 1, t1.t2 的值不是 NbtCompound, 则强制将 t1.t2 的值设置为 new NbtCompound(). NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
        force - key 无效时是否强制设置.
      • putDeepShort

         void putDeepShort(@NonNull() String key, short value)

        将指定的 NBT键 设置为给定值. 若对应的 key 无效, 则不进行设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
      • putDeepInt

         void putDeepInt(@NonNull() String key, int value, boolean force)

        将指定的 NBT键 设置为给定值. 若 force 为 false 且对应的 key 无效, 则不进行设置. 若 force 为 true 且对应的 key 无效, 则进行强制设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. 强制设置的例子: 你想要将 t1.t2.t3 设置为一个 1, t1.t2 的值不是 NbtCompound, 则强制将 t1.t2 的值设置为 new NbtCompound(). NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
        force - key 无效时是否强制设置.
      • putDeepInt

         void putDeepInt(@NonNull() String key, int value)

        将指定的 NBT键 设置为给定值. 若对应的 key 无效, 则不进行设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
      • putDeepLong

         void putDeepLong(@NonNull() String key, long value, boolean force)

        将指定的 NBT键 设置为给定值. 若 force 为 false 且对应的 key 无效, 则不进行设置. 若 force 为 true 且对应的 key 无效, 则进行强制设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. 强制设置的例子: 你想要将 t1.t2.t3 设置为一个 1, t1.t2 的值不是 NbtCompound, 则强制将 t1.t2 的值设置为 new NbtCompound(). NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
        force - key 无效时是否强制设置.
      • putDeepLong

         void putDeepLong(@NonNull() String key, long value)

        将指定的 NBT键 设置为给定值. 若对应的 key 无效, 则不进行设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
      • putDeepFloat

         void putDeepFloat(@NonNull() String key, float value, boolean force)

        将指定的 NBT键 设置为给定值. 若 force 为 false 且对应的 key 无效, 则不进行设置. 若 force 为 true 且对应的 key 无效, 则进行强制设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. 强制设置的例子: 你想要将 t1.t2.t3 设置为一个 1, t1.t2 的值不是 NbtCompound, 则强制将 t1.t2 的值设置为 new NbtCompound(). NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
        force - key 无效时是否强制设置.
      • putDeepFloat

         void putDeepFloat(@NonNull() String key, float value)

        将指定的 NBT键 设置为给定值. 若对应的 key 无效, 则不进行设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
      • putDeepDouble

         void putDeepDouble(@NonNull() String key, double value, boolean force)

        将指定的 NBT键 设置为给定值. 若 force 为 false 且对应的 key 无效, 则不进行设置. 若 force 为 true 且对应的 key 无效, 则进行强制设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. 强制设置的例子: 你想要将 t1.t2.t3 设置为一个 1, t1.t2 的值不是 NbtCompound, 则强制将 t1.t2 的值设置为 new NbtCompound(). NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
        force - key 无效时是否强制设置.
      • putDeepDouble

         void putDeepDouble(@NonNull() String key, double value)

        将指定的 NBT键 设置为给定值. 若对应的 key 无效, 则不进行设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
      • putDeepString

         void putDeepString(@NonNull() String key, @NonNull() String value, boolean force)

        将指定的 NBT键 设置为给定值. 若 force 为 false 且对应的 key 无效, 则不进行设置. 若 force 为 true 且对应的 key 无效, 则进行强制设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. 强制设置的例子: 你想要将 t1.t2.t3 设置为一个 1, t1.t2 的值不是 NbtCompound, 则强制将 t1.t2 的值设置为 new NbtCompound(). NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
        force - key 无效时是否强制设置.
      • putDeepString

         void putDeepString(@NonNull() String key, @NonNull() String value)

        将指定的 NBT键 设置为给定值. 若对应的 key 无效, 则不进行设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
      • putDeepByteArray

         void putDeepByteArray(@NonNull() String key, Array<byte> value, boolean force)

        将指定的 NBT键 设置为给定值. 若 force 为 false 且对应的 key 无效, 则不进行设置. 若 force 为 true 且对应的 key 无效, 则进行强制设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. 强制设置的例子: 你想要将 t1.t2.t3 设置为一个 1, t1.t2 的值不是 NbtCompound, 则强制将 t1.t2 的值设置为 new NbtCompound(). NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
        force - key 无效时是否强制设置.
      • putDeepByteArray

         void putDeepByteArray(@NonNull() String key, Array<byte> value)

        将指定的 NBT键 设置为给定值. 若对应的 key 无效, 则不进行设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
      • putDeepByteArray

         void putDeepByteArray(@NonNull() String key, @NonNull() List<Byte> value, boolean force)

        将指定的 NBT键 设置为给定值. 若 force 为 false 且对应的 key 无效, 则不进行设置. 若 force 为 true 且对应的 key 无效, 则进行强制设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. 强制设置的例子: 你想要将 t1.t2.t3 设置为一个 1, t1.t2 的值不是 NbtCompound, 则强制将 t1.t2 的值设置为 new NbtCompound(). NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
        force - key 无效时是否强制设置.
      • putDeepByteArray

         void putDeepByteArray(@NonNull() String key, @NonNull() List<Byte> value)

        将指定的 NBT键 设置为给定值. 若对应的 key 无效, 则不进行设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
      • putDeepIntArray

         void putDeepIntArray(@NonNull() String key, Array<int> value, boolean force)

        将指定的 NBT键 设置为给定值. 若 force 为 false 且对应的 key 无效, 则不进行设置. 若 force 为 true 且对应的 key 无效, 则进行强制设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. 强制设置的例子: 你想要将 t1.t2.t3 设置为一个 1, t1.t2 的值不是 NbtCompound, 则强制将 t1.t2 的值设置为 new NbtCompound(). NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
        force - key 无效时是否强制设置.
      • putDeepIntArray

         void putDeepIntArray(@NonNull() String key, Array<int> value)

        将指定的 NBT键 设置为给定值. 若对应的 key 无效, 则不进行设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
      • putDeepIntArray

         void putDeepIntArray(@NonNull() String key, @NonNull() List<Integer> value, boolean force)

        将指定的 NBT键 设置为给定值. 若 force 为 false 且对应的 key 无效, 则不进行设置. 若 force 为 true 且对应的 key 无效, 则进行强制设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. 强制设置的例子: 你想要将 t1.t2.t3 设置为一个 1, t1.t2 的值不是 NbtCompound, 则强制将 t1.t2 的值设置为 new NbtCompound(). NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
        force - key 无效时是否强制设置.
      • putDeepIntArray

         void putDeepIntArray(@NonNull() String key, @NonNull() List<Integer> value)

        将指定的 NBT键 设置为给定值. 若对应的 key 无效, 则不进行设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
      • putDeepLongArray

         void putDeepLongArray(@NonNull() String key, Array<long> value, boolean force)

        将指定的 NBT键 设置为给定值. 若 force 为 false 且对应的 key 无效, 则不进行设置. 若 force 为 true 且对应的 key 无效, 则进行强制设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. 强制设置的例子: 你想要将 t1.t2.t3 设置为一个 1, t1.t2 的值不是 NbtCompound, 则强制将 t1.t2 的值设置为 new NbtCompound(). NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
        force - key 无效时是否强制设置.
      • putDeepLongArray

         void putDeepLongArray(@NonNull() String key, Array<long> value)

        将指定的 NBT键 设置为给定值. 若对应的 key 无效, 则不进行设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
      • putDeepLongArray

         void putDeepLongArray(@NonNull() String key, @NonNull() List<Long> value, boolean force)

        将指定的 NBT键 设置为给定值. 若 force 为 false 且对应的 key 无效, 则不进行设置. 若 force 为 true 且对应的 key 无效, 则进行强制设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. 强制设置的例子: 你想要将 t1.t2.t3 设置为一个 1, t1.t2 的值不是 NbtCompound, 则强制将 t1.t2 的值设置为 new NbtCompound(). NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
        force - key 无效时是否强制设置.
      • putDeepLongArray

         void putDeepLongArray(@NonNull() String key, @NonNull() List<Long> value)

        将指定的 NBT键 设置为给定值. 若对应的 key 无效, 则不进行设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
      • putDeepBoolean

         void putDeepBoolean(@NonNull() String key, boolean value, boolean force)

        将指定的 NBT键 设置为给定值. 若 force 为 false 且对应的 key 无效, 则不进行设置. 若 force 为 true 且对应的 key 无效, 则进行强制设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. 强制设置的例子: 你想要将 t1.t2.t3 设置为一个 1, t1.t2 的值不是 NbtCompound, 则强制将 t1.t2 的值设置为 new NbtCompound(). NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.
        force - key 无效时是否强制设置.
      • putDeepBoolean

         void putDeepBoolean(@NonNull() String key, boolean value)

        将指定的 NBT键 设置为给定值. 若对应的 key 无效, 则不进行设置. key 无效的例子: 你想要将 t1.t2.t3 设置为一个 1, 这需要 t1.t2 的值是 NbtCompound, 如果 t1.t2 的值不是 NbtCompound, 则 key 无效. NBT键 以 . 做分隔符.

        Parameters:
        key - 待设置的 NBT键.
        value - 待设置的 NBT键 的新值.