接口 NbtType<T extends Tag>


  • public interface NbtType<T extends Tag>
    Represents an NBT type.
    Mappings:
    Namespace Name
    official np
    intermediary net/minecraft/class_4614
    named net/minecraft/nbt/NbtType
    • 方法详细资料

      • read

        T read​(DataInput input,
               int depth,
               NbtTagSizeTracker tracker)
        throws IOException
        抛出:
        IOException
        Mappings:
        Namespace Name Mixin selector
        official b Lnp;b(Ljava/io/DataInput;ILne;)Lnn;
        intermediary method_23262 Lnet/minecraft/class_4614;method_23262(Ljava/io/DataInput;ILnet/minecraft/class_2505;)Lnet/minecraft/class_2520;
        named read Lnet/minecraft/nbt/NbtType;read(Ljava/io/DataInput;ILnet/minecraft/nbt/NbtTagSizeTracker;)Lnet/minecraft/nbt/Tag;
      • isImmutable

        default boolean isImmutable()
        Determines the immutability of this type.

        The mutability of an NBT type means the held value can be modified after the NBT element is instantiated.

        返回:
        true if this NBT type is immutable, else false
        Mappings:
        Namespace Name Mixin selector
        official c Lnp;c()Z
        intermediary method_23263 Lnet/minecraft/class_4614;method_23263()Z
        named isImmutable Lnet/minecraft/nbt/NbtType;isImmutable()Z
      • getCrashReportName

        String getCrashReportName()
        Mappings:
        Namespace Name Mixin selector
        official a Lnp;a()Ljava/lang/String;
        intermediary method_23259 Lnet/minecraft/class_4614;method_23259()Ljava/lang/String;
        named getCrashReportName Lnet/minecraft/nbt/NbtType;getCrashReportName()Ljava/lang/String;
      • getCommandFeedbackName

        String getCommandFeedbackName()
        Mappings:
        Namespace Name Mixin selector
        official b Lnp;b()Ljava/lang/String;
        intermediary method_23261 Lnet/minecraft/class_4614;method_23261()Ljava/lang/String;
        named getCommandFeedbackName Lnet/minecraft/nbt/NbtType;getCommandFeedbackName()Ljava/lang/String;
      • createInvalid

        static NbtType<EndTag> createInvalid​(int type)
        Mappings:
        Namespace Name Mixin selector
        official a Lnp;a(I)Lnp;
        intermediary method_23260 Lnet/minecraft/class_4614;method_23260(I)Lnet/minecraft/class_4614;
        named createInvalid Lnet/minecraft/nbt/NbtType;createInvalid(I)Lnet/minecraft/nbt/NbtType;