Object ItemNBT

  • All Implemented Interfaces:

    
    public class ItemNBT
    
                        

    ni itemnbt指令

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final static LiteralNode<CommandSender, Unit> itemNBT
      public final static ItemNBT INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static ComponentBuilder format(NbtCompound $self) 将NBT转换为可视化的聊天组件
      final static String asPostfix(Nbt<?> $self) 根据NBT获取类型后缀
      final static ComponentBuilder toBuilder(String $self) 将文本转换为聊天组件, 超过20字符的文本将进行省略
      final static ComponentBuilder asValueString(Nbt<?> $self, Integer level) 根据当前级数将NBT转换为聊天组件
      final static LiteralNode<CommandSender, Unit> getItemNBT()
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • format

         final static ComponentBuilder format(NbtCompound $self)

        将NBT转换为可视化的聊天组件

        Returns:

        用于表示NBT的聊天组件

      • asPostfix

         final static String asPostfix(Nbt<?> $self)

        根据NBT获取类型后缀

        Returns:

        NBT类型后缀

      • toBuilder

         final static ComponentBuilder toBuilder(String $self)

        将文本转换为聊天组件, 超过20字符的文本将进行省略

        Returns:

        聊天组件

      • asValueString

         final static ComponentBuilder asValueString(Nbt<?> $self, Integer level)

        根据当前级数将NBT转换为聊天组件

        Parameters:
        level - 当前级数
        Returns:

        聊天组件

      • getItemNBT

         final static LiteralNode<CommandSender, Unit> getItemNBT()