类 ByteArrayTag
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- net.minecraft.nbt.AbstractListTag<ByteTag>
-
- net.minecraft.nbt.ByteArrayTag
-
public class ByteArrayTag extends AbstractListTag<ByteTag>
Represents an NBT byte array.- Mappings:
Namespace Name official msintermediary net/minecraft/class_2479named net/minecraft/nbt/ByteArrayTag
-
-
字段概要
字段 修饰符和类型 字段 说明 private static intfield_33188static NbtType<ByteArrayTag>TYPEprivate byte[]value-
从类继承的字段 java.util.AbstractList
modCount
-
从接口继承的字段 net.minecraft.nbt.Tag
BYTE_ARRAY_TYPE, BYTE_TYPE, COMPOUND_TYPE, DOUBLE_TYPE, field_33246, field_33247, field_33248, field_33249, field_33264, FLOAT_TYPE, INT_ARRAY_TYPE, INT_TYPE, LIST_TYPE, LONG_ARRAY_TYPE, LONG_TYPE, NULL_TYPE, NUMBER_TYPE, SHORT_TYPE, STRING_TYPE
-
-
构造器概要
构造器 构造器 说明 ByteArrayTag(byte[] value)ByteArrayTag(List<Byte> value)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaccept(NbtElementVisitor visitor)booleanaddElement(int index, Tag element)voidclear()Tagcopy()Copies this NBT element.booleanequals(Object o)ByteTagget(int int2)byte[]getByteArray()bytegetHeldType()Gets the type of element that this list holds.NbtType<ByteArrayTag>getNbtType()Gets the NBT type definition of this NBT element.bytegetType()Gets the type of this NBT element.inthashCode()voidmethod_10531(int int2, ByteTag byteTag)ByteTagmethod_10536(int int2)ByteTagset(int int2, ByteTag byteTag)booleansetElement(int index, Tag element)intsize()private static byte[]toArray(List<Byte> list)StringtoString()voidwrite(DataOutput output)-
从类继承的方法 net.minecraft.nbt.AbstractListTag
add, remove
-
从类继承的方法 java.util.AbstractList
add, addAll, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
-
从类继承的方法 java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
-
从接口继承的方法 java.util.Collection
parallelStream, removeIf, stream, toArray
-
从接口继承的方法 java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
字段详细资料
-
field_33188
private static final int field_33188
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLms;b:Iintermediary field_33188Lnet/minecraft/class_2479;field_33188:Inamed field_33188Lnet/minecraft/nbt/ByteArrayTag;field_33188:I
-
TYPE
public static final NbtType<ByteArrayTag> TYPE
- Mappings:
Namespace Name Mixin selector official aLms;a:Lnp;intermediary field_21024Lnet/minecraft/class_2479;field_21024:Lnet/minecraft/class_4614;named TYPELnet/minecraft/nbt/ByteArrayTag;TYPE:Lnet/minecraft/nbt/NbtType;
-
value
private byte[] value
- Mappings:
Namespace Name Mixin selector official cLms;c:[Bintermediary field_11493Lnet/minecraft/class_2479;field_11493:[Bnamed valueLnet/minecraft/nbt/ByteArrayTag;value:[B
-
-
方法详细资料
-
toArray
private static byte[] toArray(List<Byte> list)
- Mappings:
Namespace Name Mixin selector official aLms;a(Ljava/util/List;)[Bintermediary method_10522Lnet/minecraft/class_2479;method_10522(Ljava/util/List;)[Bnamed toArrayLnet/minecraft/nbt/ByteArrayTag;toArray(Ljava/util/List;)[B
-
write
public void write(DataOutput output) throws IOException
- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official aLnn;a(Ljava/io/DataOutput;)Vintermediary method_10713Lnet/minecraft/class_2520;method_10713(Ljava/io/DataOutput;)Vnamed writeLnet/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 aLnn;a()Bintermediary method_10711Lnet/minecraft/class_2520;method_10711()Bnamed getTypeLnet/minecraft/nbt/Tag;getType()B
-
getNbtType
public NbtType<ByteArrayTag> getNbtType()
Gets the NBT type definition of this NBT element.- 返回:
- the element type definition
- Mappings:
Namespace Name Mixin selector official bLnn;b()Lnp;intermediary method_23258Lnet/minecraft/class_2520;method_23258()Lnet/minecraft/class_4614;named getNbtTypeLnet/minecraft/nbt/Tag;getNbtType()Lnet/minecraft/nbt/NbtType;
-
toString
public String toString()
- 指定者:
toString在接口中Tag- 覆盖:
toString在类中AbstractCollection<ByteTag>- Mappings:
Namespace Name Mixin selector official toStringLnn;toString()Ljava/lang/String;intermediary toStringLnet/minecraft/class_2520;toString()Ljava/lang/String;named toStringLnet/minecraft/nbt/Tag;toString()Ljava/lang/String;
-
copy
public Tag copy()
Copies this NBT element.- 返回:
- the copied element
- Mappings:
Namespace Name Mixin selector official cLnn;c()Lnn;intermediary method_10707Lnet/minecraft/class_2520;method_10707()Lnet/minecraft/class_2520;named copyLnet/minecraft/nbt/Tag;copy()Lnet/minecraft/nbt/Tag;
-
equals
public boolean equals(Object o)
- 指定者:
equals在接口中Collection<ByteTag>- 指定者:
equals在接口中List<ByteTag>- 覆盖:
equals在类中AbstractList<ByteTag>- Mappings:
Namespace Name Mixin selector official equalsLms;equals(Ljava/lang/Object;)Zintermediary equalsLnet/minecraft/class_2479;equals(Ljava/lang/Object;)Znamed equalsLnet/minecraft/nbt/ByteArrayTag;equals(Ljava/lang/Object;)Z
-
hashCode
public int hashCode()
- 指定者:
hashCode在接口中Collection<ByteTag>- 指定者:
hashCode在接口中List<ByteTag>- 覆盖:
hashCode在类中AbstractList<ByteTag>- Mappings:
Namespace Name Mixin selector official hashCodeLms;hashCode()Iintermediary hashCodeLnet/minecraft/class_2479;hashCode()Inamed hashCodeLnet/minecraft/nbt/ByteArrayTag;hashCode()I
-
accept
public void accept(NbtElementVisitor visitor)
- Mappings:
Namespace Name Mixin selector official aLnn;a(Lnr;)Vintermediary method_32289Lnet/minecraft/class_2520;method_32289(Lnet/minecraft/class_5627;)Vnamed acceptLnet/minecraft/nbt/Tag;accept(Lnet/minecraft/nbt/visitor/NbtElementVisitor;)V
-
getByteArray
public byte[] getByteArray()
- Mappings:
Namespace Name Mixin selector official dLms;d()[Bintermediary method_10521Lnet/minecraft/class_2479;method_10521()[Bnamed getByteArrayLnet/minecraft/nbt/ByteArrayTag;getByteArray()[B
-
size
public int size()
- 指定者:
size在接口中Collection<ByteTag>- 指定者:
size在接口中List<ByteTag>- 指定者:
size在类中AbstractCollection<ByteTag>- Mappings:
Namespace Name Mixin selector official sizeLms;size()Iintermediary sizeLnet/minecraft/class_2479;size()Inamed sizeLnet/minecraft/nbt/ByteArrayTag;size()I
-
get
public ByteTag get(int int2)
-
set
public ByteTag set(int int2, ByteTag byteTag)
- 指定者:
set在接口中List<ByteTag>- 指定者:
set在类中AbstractListTag<ByteTag>- Mappings:
Namespace Name Mixin selector official aLms;a(ILmt;)Lmt;intermediary method_17803Lnet/minecraft/class_2479;method_17803(ILnet/minecraft/class_2481;)Lnet/minecraft/class_2481;named setLnet/minecraft/nbt/ByteArrayTag;set(ILnet/minecraft/nbt/ByteTag;)Lnet/minecraft/nbt/ByteTag;
-
method_10531
public void method_10531(int int2, ByteTag byteTag)- Mappings:
Namespace Name Mixin selector official bLms;b(ILmt;)Vintermediary method_17805Lnet/minecraft/class_2479;method_17805(ILnet/minecraft/class_2481;)Vnamed method_10531Lnet/minecraft/nbt/ByteArrayTag;method_10531(ILnet/minecraft/nbt/ByteTag;)V
-
setElement
public boolean setElement(int index, Tag element)- 指定者:
setElement在类中AbstractListTag<ByteTag>- Mappings:
Namespace Name Mixin selector official aLmu;a(ILnn;)Zintermediary method_10535Lnet/minecraft/class_2483;method_10535(ILnet/minecraft/class_2520;)Znamed setElementLnet/minecraft/nbt/AbstractListTag;setElement(ILnet/minecraft/nbt/Tag;)Z
-
addElement
public boolean addElement(int index, Tag element)- 指定者:
addElement在类中AbstractListTag<ByteTag>- Mappings:
Namespace Name Mixin selector official bLmu;b(ILnn;)Zintermediary method_10533Lnet/minecraft/class_2483;method_10533(ILnet/minecraft/class_2520;)Znamed addElementLnet/minecraft/nbt/AbstractListTag;addElement(ILnet/minecraft/nbt/Tag;)Z
-
method_10536
public ByteTag method_10536(int int2)
- Mappings:
Namespace Name Mixin selector official bLms;b(I)Lmt;intermediary method_17804Lnet/minecraft/class_2479;method_17804(I)Lnet/minecraft/class_2481;named method_10536Lnet/minecraft/nbt/ByteArrayTag;method_10536(I)Lnet/minecraft/nbt/ByteTag;
-
getHeldType
public byte getHeldType()
Gets the type of element that this list holds.- 指定者:
getHeldType在类中AbstractListTag<ByteTag>- 返回:
- the type of element that this list holds
- Mappings:
Namespace Name Mixin selector official d_Lmu;d_()Bintermediary method_10601Lnet/minecraft/class_2483;method_10601()Bnamed getHeldTypeLnet/minecraft/nbt/AbstractListTag;getHeldType()B
-
clear
public void clear()
- 指定者:
clear在接口中Collection<ByteTag>- 指定者:
clear在接口中List<ByteTag>- 覆盖:
clear在类中AbstractList<ByteTag>- Mappings:
Namespace Name Mixin selector official clearLms;clear()Vintermediary clearLnet/minecraft/class_2479;clear()Vnamed clearLnet/minecraft/nbt/ByteArrayTag;clear()V
-
-