类 IntTag

  • 所有已实现的接口:
    Tag

    public class IntTag
    extends AbstractNumberTag
    Represents an NBT 32-bit integer.
    Mappings:
    Namespace Name
    official na
    intermediary net/minecraft/class_2497
    named net/minecraft/nbt/IntTag
    • 字段详细资料

      • field_33196

        private static final int field_33196
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official b Lna;b:I
        intermediary field_33196 Lnet/minecraft/class_2497;field_33196:I
        named field_33196 Lnet/minecraft/nbt/IntTag;field_33196:I
      • TYPE

        public static final NbtType<IntTag> TYPE
        Mappings:
        Namespace Name Mixin selector
        official a Lna;a:Lnp;
        intermediary field_21037 Lnet/minecraft/class_2497;field_21037:Lnet/minecraft/class_4614;
        named TYPE Lnet/minecraft/nbt/IntTag;TYPE:Lnet/minecraft/nbt/NbtType;
      • value

        private final int value
        Mappings:
        Namespace Name Mixin selector
        official c Lna;c:I
        intermediary field_11525 Lnet/minecraft/class_2497;field_11525:I
        named value Lnet/minecraft/nbt/IntTag;value:I
    • 构造器详细资料

      • IntTag

        private IntTag​(int value)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lna;<init>(I)V
        intermediary <init> Lnet/minecraft/class_2497;<init>(I)V
        named <init> Lnet/minecraft/nbt/IntTag;<init>(I)V
    • 方法详细资料

      • of

        public static IntTag of​(int value)
        Mappings:
        Namespace Name Mixin selector
        official a Lna;a(I)Lna;
        intermediary method_23247 Lnet/minecraft/class_2497;method_23247(I)Lnet/minecraft/class_2497;
        named of Lnet/minecraft/nbt/IntTag;of(I)Lnet/minecraft/nbt/IntTag;
      • write

        public void write​(DataOutput output)
                   throws IOException
        抛出:
        IOException
        Mappings:
        Namespace Name Mixin selector
        official a Lnn;a(Ljava/io/DataOutput;)V
        intermediary method_10713 Lnet/minecraft/class_2520;method_10713(Ljava/io/DataOutput;)V
        named write Lnet/minecraft/nbt/Tag;write(Ljava/io/DataOutput;)V
      • getType

        public byte getType()
        Gets the type of this NBT element.
        返回:
        the type
        Mappings:
        Namespace Name Mixin selector
        official a Lnn;a()B
        intermediary method_10711 Lnet/minecraft/class_2520;method_10711()B
        named getType Lnet/minecraft/nbt/Tag;getType()B
      • getNbtType

        public NbtType<IntTag> getNbtType()
        Gets the NBT type definition of this NBT element.
        返回:
        the element type definition
        Mappings:
        Namespace Name Mixin selector
        official b Lnn;b()Lnp;
        intermediary method_23258 Lnet/minecraft/class_2520;method_23258()Lnet/minecraft/class_4614;
        named getNbtType Lnet/minecraft/nbt/Tag;getNbtType()Lnet/minecraft/nbt/NbtType;
      • copy

        public IntTag copy()
        从接口复制的说明: Tag
        Copies this NBT element.
        返回:
        the copied element
        Mappings:
        Namespace Name Mixin selector
        official d Lna;d()Lna;
        intermediary method_10592 Lnet/minecraft/class_2497;method_10592()Lnet/minecraft/class_2497;
        named copy Lnet/minecraft/nbt/IntTag;copy()Lnet/minecraft/nbt/IntTag;
      • equals

        public boolean equals​(Object o)
        覆盖:
        equals 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official equals Lna;equals(Ljava/lang/Object;)Z
        intermediary equals Lnet/minecraft/class_2497;equals(Ljava/lang/Object;)Z
        named equals Lnet/minecraft/nbt/IntTag;equals(Ljava/lang/Object;)Z
      • hashCode

        public int hashCode()
        覆盖:
        hashCode 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official hashCode Lna;hashCode()I
        intermediary hashCode Lnet/minecraft/class_2497;hashCode()I
        named hashCode Lnet/minecraft/nbt/IntTag;hashCode()I
      • accept

        public void accept​(NbtElementVisitor visitor)
        Mappings:
        Namespace Name Mixin selector
        official a Lnn;a(Lnr;)V
        intermediary method_32289 Lnet/minecraft/class_2520;method_32289(Lnet/minecraft/class_5627;)V
        named accept Lnet/minecraft/nbt/Tag;accept(Lnet/minecraft/nbt/visitor/NbtElementVisitor;)V
      • longValue

        public long longValue()
        Gets the value as a 64-bit integer.
        指定者:
        longValue 在类中 AbstractNumberTag
        返回:
        the value as a long
        Mappings:
        Namespace Name Mixin selector
        official e Lni;e()J
        intermediary method_10699 Lnet/minecraft/class_2514;method_10699()J
        named longValue Lnet/minecraft/nbt/AbstractNumberTag;longValue()J
      • intValue

        public int intValue()
        Gets the value as a 32-bit integer.
        指定者:
        intValue 在类中 AbstractNumberTag
        返回:
        the value as an int
        Mappings:
        Namespace Name Mixin selector
        official f Lni;f()I
        intermediary method_10701 Lnet/minecraft/class_2514;method_10701()I
        named intValue Lnet/minecraft/nbt/AbstractNumberTag;intValue()I
      • shortValue

        public short shortValue()
        Gets the value as a 16-bit integer.
        指定者:
        shortValue 在类中 AbstractNumberTag
        返回:
        the value as a short
        Mappings:
        Namespace Name Mixin selector
        official g Lni;g()S
        intermediary method_10696 Lnet/minecraft/class_2514;method_10696()S
        named shortValue Lnet/minecraft/nbt/AbstractNumberTag;shortValue()S
      • byteValue

        public byte byteValue()
        Gets the value as an 8-bit integer.
        指定者:
        byteValue 在类中 AbstractNumberTag
        返回:
        the value as a byte
        Mappings:
        Namespace Name Mixin selector
        official h Lni;h()B
        intermediary method_10698 Lnet/minecraft/class_2514;method_10698()B
        named byteValue Lnet/minecraft/nbt/AbstractNumberTag;byteValue()B
      • doubleValue

        public double doubleValue()
        Gets the value as a 64-bit floating-point number.
        指定者:
        doubleValue 在类中 AbstractNumberTag
        返回:
        the value as a double
        Mappings:
        Namespace Name Mixin selector
        official i Lni;i()D
        intermediary method_10697 Lnet/minecraft/class_2514;method_10697()D
        named doubleValue Lnet/minecraft/nbt/AbstractNumberTag;doubleValue()D
      • floatValue

        public float floatValue()
        Gets the value as a 32-bit floating-point number.
        指定者:
        floatValue 在类中 AbstractNumberTag
        返回:
        the value as a float
        Mappings:
        Namespace Name Mixin selector
        official j Lni;j()F
        intermediary method_10700 Lnet/minecraft/class_2514;method_10700()F
        named floatValue Lnet/minecraft/nbt/AbstractNumberTag;floatValue()F
      • numberValue

        public Number numberValue()
        Gets the value as a generic number.
        指定者:
        numberValue 在类中 AbstractNumberTag
        返回:
        the value as a Number
        Mappings:
        Namespace Name Mixin selector
        official k Lni;k()Ljava/lang/Number;
        intermediary method_10702 Lnet/minecraft/class_2514;method_10702()Ljava/lang/Number;
        named numberValue Lnet/minecraft/nbt/AbstractNumberTag;numberValue()Ljava/lang/Number;