Package net.minecraft.nbt
Part 1/1
ByteArrayTag
- Full name:
net.minecraft.nbt.ByteArrayTag - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/ByteArrayTag.java - Type:
class - Modifiers:
public - Extends:
CollectionTag<ByteTag>
net.minecraft.nbt.ByteArrayTag#accept(StreamTagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:174 - Modifiers:
public - Return:
StreamTagVisitor.ValueResult
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visit(). คืนค่า: streamTagVisitor.visit(this.data).
Parameters
StreamTagVisitor streamTagVisitor
ตัวอย่างใช้งาน
ByteArrayTag instance = ...;
StreamTagVisitor streamTagVisitor = ...;
StreamTagVisitor.ValueResult result = instance.accept(streamTagVisitor);
net.minecraft.nbt.ByteArrayTag#accept(TagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:110 - Modifiers:
public - Return:
void
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visitByteArray().
Parameters
TagVisitor tagVisitor
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteArrayTag#add(int,ByteTag)
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:134 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม add
ทำงานยังไง
แก้ state: data. เรียกต่อ: getAsByte().
Parameters
int iByteTag byteTag
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteArrayTag#addTag(int,Tag)
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:148 - Modifiers:
public - Return:
boolean
คืออะไร
เพิ่ม Tag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: data. เรียกต่อ: add(), getAsByte(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iTag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteArrayTag#ByteArrayTag(byte[])
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:48 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ByteArrayTag ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: data.
Parameters
byte[] bs
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteArrayTag#ByteArrayTag(List<Byte>)
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:52 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ByteArrayTag ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: toArray().
Parameters
List<Byte> list
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteArrayTag#clear()
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:169 - Modifiers:
public - Return:
void
คืออะไร
ล้าง clear
ทำงานยังไง
แก้ state: data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteArrayTag#copy()
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:93 - Modifiers:
public - Return:
Tag
คืออะไร
คัดลอก copy
ทำงานยังไง
เรียกต่อ: arraycopy(). สร้างออบเจ็กต์: ByteArrayTag. คืนค่า: new ByteArrayTag(bs).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteArrayTag#equals(Object)
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:100 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
คืนค่า: this == object ? true : object instanceof ByteArrayTag && Arrays.equals(this.data, ((ByteArrayTag)object).data).
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteArrayTag#get(int)
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:124 - Modifiers:
public - Return:
ByteTag
คืออะไร
อ่านค่า get
ทำงานยังไง
เรียกต่อ: valueOf(). คืนค่า: ByteTag.valueOf(this.data[i]).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteArrayTag#getAsByteArray()
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:115 - Modifiers:
public - Return:
byte[]
คืออะไร
อ่านค่า As Byte Array
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteArrayTag#getElementType()
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:164 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า Element Type
ทำงานยังไง
คืนค่า: 1.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteArrayTag#getId()
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:78 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า Id
ทำงานยังไง
คืนค่า: 7.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteArrayTag#getType()
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:83 - Modifiers:
public - Return:
TagType<ByteArrayTag>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: TYPE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteArrayTag#hashCode()
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:105 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ hashCode ตาม implementation ของ ByteArrayTag
ทำงานยังไง
คืนค่า: Arrays.hashCode(this.data).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteArrayTag#remove(int)
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:158 - Modifiers:
public - Return:
ByteTag
คืออะไร
ลบ remove
ทำงานยังไง
แก้ state: data. เรียกต่อ: valueOf(). คืนค่า: ByteTag.valueOf(b).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteArrayTag#set(int,ByteTag)
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:128 - Modifiers:
public - Return:
ByteTag
คืออะไร
กำหนดค่า set
ทำงานยังไง
เรียกต่อ: getAsByte(), valueOf(). คืนค่า: ByteTag.valueOf(b).
Parameters
int iByteTag byteTag
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteArrayTag#setTag(int,Tag)
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:138 - Modifiers:
public - Return:
boolean
คืออะไร
กำหนดค่า Tag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getAsByte(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iTag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteArrayTag#size()
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:119 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ size ตาม implementation ของ ByteArrayTag
ทำงานยังไง
คืนค่า: this.data.length.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteArrayTag#sizeInBytes()
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:73 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ sizeInBytes ตาม implementation ของ ByteArrayTag
ทำงานยังไง
คืนค่า: 24 + 1 * this.data.length.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteArrayTag#toString()
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:88 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ ByteArrayTag
ทำงานยังไง
เรียกต่อ: getAsString(). คืนค่า: this.getAsString().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteArrayTag#write(DataOutput)
- Origin:
common - Source:
net/minecraft/nbt/ByteArrayTag.java:67 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
เรียกต่อ: writeInt().
Parameters
DataOutput dataOutput
Throws
IOException
ตัวอย่างใช้งาน
ByteTag
- Full name:
net.minecraft.nbt.ByteTag - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/ByteTag.java - Type:
class - Modifiers:
public - Extends:
NumericTag
net.minecraft.nbt.ByteTag#accept(StreamTagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/ByteTag.java:134 - Modifiers:
public - Return:
StreamTagVisitor.ValueResult
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visit(). คืนค่า: streamTagVisitor.visit(this.data).
Parameters
StreamTagVisitor streamTagVisitor
ตัวอย่างใช้งาน
ByteTag instance = ...;
StreamTagVisitor streamTagVisitor = ...;
StreamTagVisitor.ValueResult result = instance.accept(streamTagVisitor);
net.minecraft.nbt.ByteTag#accept(TagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/ByteTag.java:94 - Modifiers:
public - Return:
void
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visitByte().
Parameters
TagVisitor tagVisitor
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteTag#copy()
- Origin:
common - Source:
net/minecraft/nbt/ByteTag.java:80 - Modifiers:
public - Return:
ByteTag
คืออะไร
คัดลอก copy
ทำงานยังไง
คืนค่า: this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteTag#equals(Object)
- Origin:
common - Source:
net/minecraft/nbt/ByteTag.java:84 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
แก้ state: data. คืนค่า: this == object ? true : object instanceof ByteTag && this.data == ((ByteTag)object).data.
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteTag#getAsByte()
- Origin:
common - Source:
net/minecraft/nbt/ByteTag.java:114 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า As Byte
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteTag#getAsDouble()
- Origin:
common - Source:
net/minecraft/nbt/ByteTag.java:119 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า As Double
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteTag#getAsFloat()
- Origin:
common - Source:
net/minecraft/nbt/ByteTag.java:124 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า As Float
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteTag#getAsInt()
- Origin:
common - Source:
net/minecraft/nbt/ByteTag.java:104 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า As Int
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteTag#getAsLong()
- Origin:
common - Source:
net/minecraft/nbt/ByteTag.java:99 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า As Long
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteTag#getAsNumber()
- Origin:
common - Source:
net/minecraft/nbt/ByteTag.java:129 - Modifiers:
public - Return:
Number
คืออะไร
อ่านค่า As Number
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteTag#getAsShort()
- Origin:
common - Source:
net/minecraft/nbt/ByteTag.java:109 - Modifiers:
public - Return:
short
คืออะไร
อ่านค่า As Short
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteTag#getId()
- Origin:
common - Source:
net/minecraft/nbt/ByteTag.java:70 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า Id
ทำงานยังไง
คืนค่า: 1.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteTag#getType()
- Origin:
common - Source:
net/minecraft/nbt/ByteTag.java:75 - Modifiers:
public - Return:
TagType<ByteTag>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: TYPE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteTag#hashCode()
- Origin:
common - Source:
net/minecraft/nbt/ByteTag.java:89 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ hashCode ตาม implementation ของ ByteTag
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteTag#sizeInBytes()
- Origin:
common - Source:
net/minecraft/nbt/ByteTag.java:65 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ sizeInBytes ตาม implementation ของ ByteTag
ทำงานยังไง
คืนค่า: 9.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteTag#valueOf(boolean)
- Origin:
common - Source:
net/minecraft/nbt/ByteTag.java:56 - Modifiers:
public static - Return:
ByteTag
คืออะไร
ดำเนินการ valueOf ตาม implementation ของ ByteTag
ทำงานยังไง
คืนค่า: bl ? ONE : ZERO.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteTag#valueOf(byte)
- Origin:
common - Source:
net/minecraft/nbt/ByteTag.java:52 - Modifiers:
public static - Return:
ByteTag
คืออะไร
ดำเนินการ valueOf ตาม implementation ของ ByteTag
ทำงานยังไง
คืนค่า: ByteTag.Cache.cache[128 + b].
Parameters
byte b
ตัวอย่างใช้งาน
net.minecraft.nbt.ByteTag#write(DataOutput)
- Origin:
common - Source:
net/minecraft/nbt/ByteTag.java:60 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
เรียกต่อ: writeByte().
Parameters
DataOutput dataOutput
Throws
IOException
ตัวอย่างใช้งาน
CollectionTag
- Full name:
net.minecraft.nbt.CollectionTag - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/CollectionTag.java - Type:
class - Modifiers:
public abstract - Extends:
AbstractList<T> - Implements:
Tag
net.minecraft.nbt.CollectionTag#add(int,T)
- Origin:
common - Source:
net/minecraft/nbt/CollectionTag.java:8 - Modifiers:
public abstract - Return:
void
คืออะไร
เพิ่ม add
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
int iT tag
ตัวอย่างใช้งาน
net.minecraft.nbt.CollectionTag#addTag(int,Tag)
- Origin:
common - Source:
net/minecraft/nbt/CollectionTag.java:14 - Modifiers:
public abstract - Return:
boolean
คืออะไร
เพิ่ม Tag
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
int iTag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.CollectionTag#getElementType()
- Origin:
common - Source:
net/minecraft/nbt/CollectionTag.java:16 - Modifiers:
public abstract - Return:
byte
คืออะไร
อ่านค่า Element Type
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.CollectionTag#remove(int)
- Origin:
common - Source:
net/minecraft/nbt/CollectionTag.java:10 - Modifiers:
public abstract - Return:
T
คืออะไร
ลบ remove
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.CollectionTag#set(int,T)
- Origin:
common - Source:
net/minecraft/nbt/CollectionTag.java:6 - Modifiers:
public abstract - Return:
T
คืออะไร
กำหนดค่า set
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
int iT tag
ตัวอย่างใช้งาน
net.minecraft.nbt.CollectionTag#setTag(int,Tag)
- Origin:
common - Source:
net/minecraft/nbt/CollectionTag.java:12 - Modifiers:
public abstract - Return:
boolean
คืออะไร
กำหนดค่า Tag
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
int iTag tag
ตัวอย่างใช้งาน
CompoundTag
- Full name:
net.minecraft.nbt.CompoundTag - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/CompoundTag.java - Type:
class - Modifiers:
public - Implements:
Tag
net.minecraft.nbt.CompoundTag#accept(StreamTagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:537 - Modifiers:
public - Return:
StreamTagVisitor.ValueResult
คืออะไร
รับค่า accept
ทำงานยังไง
แยกกรณีด้วย switch ; มีการวนลูป. เรียกต่อ: entrySet(), getValue(), getType(), visitEntry(), visitContainerEnd(), getKey(). มีจุด return อย่างน้อย 7 จุด.
Parameters
StreamTagVisitor streamTagVisitor
ตัวอย่างใช้งาน
CompoundTag instance = ...;
StreamTagVisitor streamTagVisitor = ...;
StreamTagVisitor.ValueResult result = instance.accept(streamTagVisitor);
net.minecraft.nbt.CompoundTag#accept(TagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:528 - Modifiers:
public - Return:
void
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visitCompound().
Parameters
TagVisitor tagVisitor
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#CompoundTag()
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:161 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CompoundTag ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: newHashMap().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#CompoundTag(Map<String, Tag>)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:157 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CompoundTag ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: tags.
Parameters
Map<String, Tag> map
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#contains(String)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:290 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี contains
ทำงานยังไง
เรียกต่อ: containsKey(). คืนค่า: this.tags.containsKey(string).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#contains(String,int)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:294 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี contains
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getTagType(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String stringint i
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#copy()
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:475 - Modifiers:
public - Return:
CompoundTag
คืออะไร
คัดลอก copy
ทำงานยังไง
เรียกต่อ: newHashMap(), transformValues(). สร้างออบเจ็กต์: CompoundTag. คืนค่า: new CompoundTag(map).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#entrySet()
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:533 - Modifiers:
protected - Return:
Set<Entry<String, Tag>>
คืออะไร
ดำเนินการ entrySet ตาม implementation ของ CompoundTag
ทำงานยังไง
คืนค่า: this.tags.entrySet().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#equals(Object)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:480 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
คืนค่า: this == object ? true : object instanceof CompoundTag && Objects.equals(this.tags, ((CompoundTag)object).tags).
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#get(String)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:280 - Modifiers:
public - Return:
Tag
คืออะไร
อ่านค่า get
ทำงานยังไง
คืนค่า: this.tags.get(string).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#getAllKeys()
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:188 - Modifiers:
public - Return:
Set<String>
คืออะไร
อ่านค่า All Keys
ทำงานยังไง
เรียกต่อ: keySet(). คืนค่า: this.tags.keySet().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#getBoolean(String)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:445 - Modifiers:
public - Return:
boolean
คืออะไร
อ่านค่า Boolean
ทำงานยังไง
เรียกต่อ: getByte(). คืนค่า: this.getByte(string) != 0.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#getByte(String)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:303 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า Byte
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: contains(), get(), getAsByte(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#getByteArray(String)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:380 - Modifiers:
public - Return:
byte[]
คืออะไร
อ่านค่า Byte Array
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: contains(), get(), getAsByteArray(), createReport(). สร้างออบเจ็กต์: ReportedException. มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#getCompound(String)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:416 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Compound
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: contains(), get(), createReport(). สร้างออบเจ็กต์: ReportedException, CompoundTag. มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#getDouble(String)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:358 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Double
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: contains(), get(), getAsDouble(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#getFloat(String)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:347 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Float
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: contains(), get(), getAsFloat(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#getId()
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:192 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า Id
ทำงานยังไง
คืนค่า: 10.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#getInt(String)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:325 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Int
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: contains(), get(), getAsInt(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#getIntArray(String)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:392 - Modifiers:
public - Return:
int[]
คืออะไร
อ่านค่า Int Array
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: contains(), get(), getAsIntArray(), createReport(). สร้างออบเจ็กต์: ReportedException. มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#getList(String,int)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:428 - Modifiers:
public - Return:
ListTag
คืออะไร
อ่านค่า List
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: getTagType(), get(), isEmpty(), getElementType(), createReport(). สร้างออบเจ็กต์: ListTag, ReportedException. มีจุด return อย่างน้อย 3 จุด.
Parameters
String stringint i
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#getLong(String)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:336 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Long
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: contains(), get(), getAsLong(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#getLongArray(String)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:404 - Modifiers:
public - Return:
long[]
คืออะไร
อ่านค่า Long Array
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: contains(), get(), getAsLongArray(), createReport(). สร้างออบเจ็กต์: ReportedException. มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#getShort(String)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:314 - Modifiers:
public - Return:
short
คืออะไร
อ่านค่า Short
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: contains(), get(), getAsShort(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#getString(String)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:369 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า String
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: contains(), get(), getAsString(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#getTagType(String)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:285 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า Tag Type
ทำงานยังไง
เรียกต่อ: get(), getId(). คืนค่า: tag == null ? 0 : tag.getId().
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#getType()
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:197 - Modifiers:
public - Return:
TagType<CompoundTag>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: TYPE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#getUUID(String)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:231 - Modifiers:
public - Return:
UUID
คืออะไร
อ่านค่า UUID
ทำงานยังไง
เรียกต่อ: loadUUID(), get(). คืนค่า: NbtUtils.loadUUID(this.get(string)).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#hashCode()
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:485 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ hashCode ตาม implementation ของ CompoundTag
ทำงานยังไง
คืนค่า: this.tags.hashCode().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#hasUUID(String)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:235 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี UUID
ทำงานยังไง
เรียกต่อ: get(), getType(), getAsIntArray(). คืนค่า: tag != null && tag.getType() == IntArrayTag.TYPE && ((IntArrayTag)tag).getAsIntArray().length == 4.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#isEmpty()
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:458 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty
ทำงานยังไง
คืนค่า: this.tags.isEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#merge(CompoundTag)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:510 - Modifiers:
public - Return:
CompoundTag
คืออะไร
ดำเนินการ merge ตาม implementation ของ CompoundTag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: keySet(), get(), getId(), contains(), getCompound(), put(), copy(). คืนค่า: this.
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag instance = ...;
CompoundTag compoundTag = ...;
CompoundTag result = instance.merge(compoundTag);
net.minecraft.nbt.CompoundTag#put(String,Tag)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:206 - Modifiers:
public - Return:
Tag
คืออะไร
ดำเนินการ put ตาม implementation ของ CompoundTag
ทำงานยังไง
คืนค่า: this.tags.put(string, tag).
Parameters
String stringTag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#putBoolean(String,boolean)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:276 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ putBoolean ตาม implementation ของ CompoundTag
ทำงานยังไง
เรียกต่อ: put(), valueOf().
Parameters
String stringboolean bl
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#putByte(String,byte)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:211 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ putByte ตาม implementation ของ CompoundTag
ทำงานยังไง
เรียกต่อ: put(), valueOf().
Parameters
String stringbyte b
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#putByteArray(String,byte[])
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:252 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ putByteArray ตาม implementation ของ CompoundTag
ทำงานยังไง
เรียกต่อ: put(). สร้างออบเจ็กต์: ByteArrayTag.
Parameters
String stringbyte[] bs
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#putByteArray(String,List<Byte>)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:256 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ putByteArray ตาม implementation ของ CompoundTag
ทำงานยังไง
เรียกต่อ: put(). สร้างออบเจ็กต์: ByteArrayTag.
Parameters
String stringList<Byte> list
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#putDouble(String,double)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:244 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ putDouble ตาม implementation ของ CompoundTag
ทำงานยังไง
เรียกต่อ: put(), valueOf().
Parameters
String stringdouble d
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#putFloat(String,float)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:240 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ putFloat ตาม implementation ของ CompoundTag
ทำงานยังไง
เรียกต่อ: put(), valueOf().
Parameters
String stringfloat f
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#putInt(String,int)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:219 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ putInt ตาม implementation ของ CompoundTag
ทำงานยังไง
เรียกต่อ: put(), valueOf().
Parameters
String stringint i
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#putIntArray(String,int[])
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:260 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ putIntArray ตาม implementation ของ CompoundTag
ทำงานยังไง
เรียกต่อ: put(). สร้างออบเจ็กต์: IntArrayTag.
Parameters
String stringint[] is
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#putIntArray(String,List<Integer>)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:264 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ putIntArray ตาม implementation ของ CompoundTag
ทำงานยังไง
เรียกต่อ: put(). สร้างออบเจ็กต์: IntArrayTag.
Parameters
String stringList<Integer> list
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#putLong(String,long)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:223 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ putLong ตาม implementation ของ CompoundTag
ทำงานยังไง
เรียกต่อ: put(), valueOf().
Parameters
String stringlong l
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#putLongArray(String,List<Long>)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:272 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ putLongArray ตาม implementation ของ CompoundTag
ทำงานยังไง
เรียกต่อ: put(). สร้างออบเจ็กต์: LongArrayTag.
Parameters
String stringList<Long> list
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#putLongArray(String,long[])
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:268 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ putLongArray ตาม implementation ของ CompoundTag
ทำงานยังไง
เรียกต่อ: put(). สร้างออบเจ็กต์: LongArrayTag.
Parameters
String stringlong[] ls
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#putShort(String,short)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:215 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ putShort ตาม implementation ของ CompoundTag
ทำงานยังไง
เรียกต่อ: put(), valueOf().
Parameters
String stringshort s
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#putString(String,String)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:248 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ putString ตาม implementation ของ CompoundTag
ทำงานยังไง
เรียกต่อ: put(), valueOf().
Parameters
String stringString string2
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#putUUID(String,UUID)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:227 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ putUUID ตาม implementation ของ CompoundTag
ทำงานยังไง
เรียกต่อ: put(), createUUID().
Parameters
String stringUUID uUID
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#remove(String)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:449 - Modifiers:
public - Return:
void
คืออะไร
ลบ remove
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#shallowCopy()
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:471 - Modifiers:
protected - Return:
CompoundTag
คืออะไร
ดำเนินการ shallowCopy ตาม implementation ของ CompoundTag
ทำงานยังไง
สร้างออบเจ็กต์: CompoundTag, HashMap<>. คืนค่า: new CompoundTag(new HashMap<>(this.tags)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#size()
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:202 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ size ตาม implementation ของ CompoundTag
ทำงานยังไง
คืนค่า: this.tags.size().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#sizeInBytes()
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:175 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ sizeInBytes ตาม implementation ของ CompoundTag
ทำงานยังไง
มีการวนลูป. เรียกต่อ: entrySet(), getKey(), length(), getValue(). คืนค่า: i.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#toString()
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:453 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ CompoundTag
ทำงานยังไง
เรียกต่อ: getAsString(). คืนค่า: this.getAsString().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.CompoundTag#write(DataOutput)
- Origin:
common - Source:
net/minecraft/nbt/CompoundTag.java:165 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
มีการวนลูป. เรียกต่อ: keySet(), get(), writeNamedTag(), writeByte().
Parameters
DataOutput dataOutput
Throws
IOException
ตัวอย่างใช้งาน
DoubleTag
- Full name:
net.minecraft.nbt.DoubleTag - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/DoubleTag.java - Type:
class - Modifiers:
public - Extends:
NumericTag
net.minecraft.nbt.DoubleTag#accept(StreamTagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/DoubleTag.java:131 - Modifiers:
public - Return:
StreamTagVisitor.ValueResult
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visit(). คืนค่า: streamTagVisitor.visit(this.data).
Parameters
StreamTagVisitor streamTagVisitor
ตัวอย่างใช้งาน
DoubleTag instance = ...;
StreamTagVisitor streamTagVisitor = ...;
StreamTagVisitor.ValueResult result = instance.accept(streamTagVisitor);
net.minecraft.nbt.DoubleTag#accept(TagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/DoubleTag.java:91 - Modifiers:
public - Return:
void
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visitDouble().
Parameters
TagVisitor tagVisitor
ตัวอย่างใช้งาน
net.minecraft.nbt.DoubleTag#copy()
- Origin:
common - Source:
net/minecraft/nbt/DoubleTag.java:76 - Modifiers:
public - Return:
DoubleTag
คืออะไร
คัดลอก copy
ทำงานยังไง
คืนค่า: this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.DoubleTag#equals(Object)
- Origin:
common - Source:
net/minecraft/nbt/DoubleTag.java:80 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
แก้ state: data. คืนค่า: this == object ? true : object instanceof DoubleTag && this.data == ((DoubleTag)object).data.
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.nbt.DoubleTag#getAsByte()
- Origin:
common - Source:
net/minecraft/nbt/DoubleTag.java:111 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า As Byte
ทำงานยังไง
เรียกต่อ: floor(). คืนค่า: (byte)(Mth.floor(this.data) & 0xFF).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.DoubleTag#getAsDouble()
- Origin:
common - Source:
net/minecraft/nbt/DoubleTag.java:116 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า As Double
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.DoubleTag#getAsFloat()
- Origin:
common - Source:
net/minecraft/nbt/DoubleTag.java:121 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า As Float
ทำงานยังไง
คืนค่า: (float)this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.DoubleTag#getAsInt()
- Origin:
common - Source:
net/minecraft/nbt/DoubleTag.java:101 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า As Int
ทำงานยังไง
เรียกต่อ: floor(). คืนค่า: Mth.floor(this.data).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.DoubleTag#getAsLong()
- Origin:
common - Source:
net/minecraft/nbt/DoubleTag.java:96 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า As Long
ทำงานยังไง
เรียกต่อ: floor(). คืนค่า: (long)Math.floor(this.data).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.DoubleTag#getAsNumber()
- Origin:
common - Source:
net/minecraft/nbt/DoubleTag.java:126 - Modifiers:
public - Return:
Number
คืออะไร
อ่านค่า As Number
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.DoubleTag#getAsShort()
- Origin:
common - Source:
net/minecraft/nbt/DoubleTag.java:106 - Modifiers:
public - Return:
short
คืออะไร
อ่านค่า As Short
ทำงานยังไง
เรียกต่อ: floor(). คืนค่า: (short)(Mth.floor(this.data) & 65535).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.DoubleTag#getId()
- Origin:
common - Source:
net/minecraft/nbt/DoubleTag.java:66 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า Id
ทำงานยังไง
คืนค่า: 6.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.DoubleTag#getType()
- Origin:
common - Source:
net/minecraft/nbt/DoubleTag.java:71 - Modifiers:
public - Return:
TagType<DoubleTag>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: TYPE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.DoubleTag#hashCode()
- Origin:
common - Source:
net/minecraft/nbt/DoubleTag.java:85 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ hashCode ตาม implementation ของ DoubleTag
ทำงานยังไง
เรียกต่อ: doubleToLongBits(). คืนค่า: (int)(l ^ l >>> 32).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.DoubleTag#sizeInBytes()
- Origin:
common - Source:
net/minecraft/nbt/DoubleTag.java:61 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ sizeInBytes ตาม implementation ของ DoubleTag
ทำงานยังไง
คืนค่า: 16.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.DoubleTag#valueOf(double)
- Origin:
common - Source:
net/minecraft/nbt/DoubleTag.java:52 - Modifiers:
public static - Return:
DoubleTag
คืออะไร
ดำเนินการ valueOf ตาม implementation ของ DoubleTag
ทำงานยังไง
สร้างออบเจ็กต์: DoubleTag. คืนค่า: d == 0.0 ? ZERO : new DoubleTag(d).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.nbt.DoubleTag#write(DataOutput)
- Origin:
common - Source:
net/minecraft/nbt/DoubleTag.java:56 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
เรียกต่อ: writeDouble().
Parameters
DataOutput dataOutput
Throws
IOException
ตัวอย่างใช้งาน
EndTag
- Full name:
net.minecraft.nbt.EndTag - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/EndTag.java - Type:
class - Modifiers:
public - Implements:
Tag
net.minecraft.nbt.EndTag#accept(StreamTagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/EndTag.java:82 - Modifiers:
public - Return:
StreamTagVisitor.ValueResult
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visitEnd(). คืนค่า: streamTagVisitor.visitEnd().
Parameters
StreamTagVisitor streamTagVisitor
ตัวอย่างใช้งาน
EndTag instance = ...;
StreamTagVisitor streamTagVisitor = ...;
StreamTagVisitor.ValueResult result = instance.accept(streamTagVisitor);
net.minecraft.nbt.EndTag#accept(TagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/EndTag.java:77 - Modifiers:
public - Return:
void
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visitEnd().
Parameters
TagVisitor tagVisitor
ตัวอย่างใช้งาน
net.minecraft.nbt.EndTag#copy()
- Origin:
common - Source:
net/minecraft/nbt/EndTag.java:73 - Modifiers:
public - Return:
EndTag
คืออะไร
คัดลอก copy
ทำงานยังไง
คืนค่า: this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.EndTag#getId()
- Origin:
common - Source:
net/minecraft/nbt/EndTag.java:58 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า Id
ทำงานยังไง
คืนค่า: 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.EndTag#getType()
- Origin:
common - Source:
net/minecraft/nbt/EndTag.java:63 - Modifiers:
public - Return:
TagType<EndTag>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: TYPE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.EndTag#sizeInBytes()
- Origin:
common - Source:
net/minecraft/nbt/EndTag.java:53 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ sizeInBytes ตาม implementation ของ EndTag
ทำงานยังไง
คืนค่า: 8.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.EndTag#toString()
- Origin:
common - Source:
net/minecraft/nbt/EndTag.java:68 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ EndTag
ทำงานยังไง
เรียกต่อ: getAsString(). คืนค่า: this.getAsString().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.EndTag#write(DataOutput)
- Origin:
common - Source:
net/minecraft/nbt/EndTag.java:49 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
DataOutput dataOutput
Throws
IOException
ตัวอย่างใช้งาน
FloatTag
- Full name:
net.minecraft.nbt.FloatTag - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/FloatTag.java - Type:
class - Modifiers:
public - Extends:
NumericTag
net.minecraft.nbt.FloatTag#accept(StreamTagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/FloatTag.java:130 - Modifiers:
public - Return:
StreamTagVisitor.ValueResult
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visit(). คืนค่า: streamTagVisitor.visit(this.data).
Parameters
StreamTagVisitor streamTagVisitor
ตัวอย่างใช้งาน
FloatTag instance = ...;
StreamTagVisitor streamTagVisitor = ...;
StreamTagVisitor.ValueResult result = instance.accept(streamTagVisitor);
net.minecraft.nbt.FloatTag#accept(TagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/FloatTag.java:90 - Modifiers:
public - Return:
void
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visitFloat().
Parameters
TagVisitor tagVisitor
ตัวอย่างใช้งาน
net.minecraft.nbt.FloatTag#copy()
- Origin:
common - Source:
net/minecraft/nbt/FloatTag.java:76 - Modifiers:
public - Return:
FloatTag
คืออะไร
คัดลอก copy
ทำงานยังไง
คืนค่า: this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.FloatTag#equals(Object)
- Origin:
common - Source:
net/minecraft/nbt/FloatTag.java:80 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
แก้ state: data. คืนค่า: this == object ? true : object instanceof FloatTag && this.data == ((FloatTag)object).data.
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.nbt.FloatTag#getAsByte()
- Origin:
common - Source:
net/minecraft/nbt/FloatTag.java:110 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า As Byte
ทำงานยังไง
เรียกต่อ: floor(). คืนค่า: (byte)(Mth.floor(this.data) & 0xFF).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.FloatTag#getAsDouble()
- Origin:
common - Source:
net/minecraft/nbt/FloatTag.java:115 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า As Double
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.FloatTag#getAsFloat()
- Origin:
common - Source:
net/minecraft/nbt/FloatTag.java:120 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า As Float
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.FloatTag#getAsInt()
- Origin:
common - Source:
net/minecraft/nbt/FloatTag.java:100 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า As Int
ทำงานยังไง
เรียกต่อ: floor(). คืนค่า: Mth.floor(this.data).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.FloatTag#getAsLong()
- Origin:
common - Source:
net/minecraft/nbt/FloatTag.java:95 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า As Long
ทำงานยังไง
คืนค่า: (long)this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.FloatTag#getAsNumber()
- Origin:
common - Source:
net/minecraft/nbt/FloatTag.java:125 - Modifiers:
public - Return:
Number
คืออะไร
อ่านค่า As Number
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.FloatTag#getAsShort()
- Origin:
common - Source:
net/minecraft/nbt/FloatTag.java:105 - Modifiers:
public - Return:
short
คืออะไร
อ่านค่า As Short
ทำงานยังไง
เรียกต่อ: floor(). คืนค่า: (short)(Mth.floor(this.data) & 65535).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.FloatTag#getId()
- Origin:
common - Source:
net/minecraft/nbt/FloatTag.java:66 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า Id
ทำงานยังไง
คืนค่า: 5.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.FloatTag#getType()
- Origin:
common - Source:
net/minecraft/nbt/FloatTag.java:71 - Modifiers:
public - Return:
TagType<FloatTag>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: TYPE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.FloatTag#hashCode()
- Origin:
common - Source:
net/minecraft/nbt/FloatTag.java:85 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ hashCode ตาม implementation ของ FloatTag
ทำงานยังไง
เรียกต่อ: floatToIntBits(). คืนค่า: Float.floatToIntBits(this.data).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.FloatTag#sizeInBytes()
- Origin:
common - Source:
net/minecraft/nbt/FloatTag.java:61 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ sizeInBytes ตาม implementation ของ FloatTag
ทำงานยังไง
คืนค่า: 12.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.FloatTag#valueOf(float)
- Origin:
common - Source:
net/minecraft/nbt/FloatTag.java:52 - Modifiers:
public static - Return:
FloatTag
คืออะไร
ดำเนินการ valueOf ตาม implementation ของ FloatTag
ทำงานยังไง
สร้างออบเจ็กต์: FloatTag. คืนค่า: f == 0.0F ? ZERO : new FloatTag(f).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.nbt.FloatTag#write(DataOutput)
- Origin:
common - Source:
net/minecraft/nbt/FloatTag.java:56 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
เรียกต่อ: writeFloat().
Parameters
DataOutput dataOutput
Throws
IOException
ตัวอย่างใช้งาน
IntArrayTag
- Full name:
net.minecraft.nbt.IntArrayTag - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/IntArrayTag.java - Type:
class - Modifiers:
public - Extends:
CollectionTag<IntTag>
net.minecraft.nbt.IntArrayTag#accept(StreamTagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:180 - Modifiers:
public - Return:
StreamTagVisitor.ValueResult
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visit(). คืนค่า: streamTagVisitor.visit(this.data).
Parameters
StreamTagVisitor streamTagVisitor
ตัวอย่างใช้งาน
IntArrayTag instance = ...;
StreamTagVisitor streamTagVisitor = ...;
StreamTagVisitor.ValueResult result = instance.accept(streamTagVisitor);
net.minecraft.nbt.IntArrayTag#accept(TagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:120 - Modifiers:
public - Return:
void
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visitIntArray().
Parameters
TagVisitor tagVisitor
ตัวอย่างใช้งาน
net.minecraft.nbt.IntArrayTag#add(int,IntTag)
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:140 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม add
ทำงานยังไง
แก้ state: data. เรียกต่อ: getAsInt().
Parameters
int iIntTag intTag
ตัวอย่างใช้งาน
net.minecraft.nbt.IntArrayTag#addTag(int,Tag)
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:154 - Modifiers:
public - Return:
boolean
คืออะไร
เพิ่ม Tag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: data. เรียกต่อ: add(), getAsInt(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iTag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.IntArrayTag#clear()
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:175 - Modifiers:
public - Return:
void
คืออะไร
ล้าง clear
ทำงานยังไง
แก้ state: data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntArrayTag#copy()
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:100 - Modifiers:
public - Return:
IntArrayTag
คืออะไร
คัดลอก copy
ทำงานยังไง
เรียกต่อ: arraycopy(). สร้างออบเจ็กต์: IntArrayTag. คืนค่า: new IntArrayTag(is).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntArrayTag#equals(Object)
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:106 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
คืนค่า: this == object ? true : object instanceof IntArrayTag && Arrays.equals(this.data, ((IntArrayTag)object).data).
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.nbt.IntArrayTag#get(int)
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:130 - Modifiers:
public - Return:
IntTag
คืออะไร
อ่านค่า get
ทำงานยังไง
เรียกต่อ: valueOf(). คืนค่า: IntTag.valueOf(this.data[i]).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.IntArrayTag#getAsIntArray()
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:116 - Modifiers:
public - Return:
int[]
คืออะไร
อ่านค่า As Int Array
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntArrayTag#getElementType()
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:170 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า Element Type
ทำงานยังไง
คืนค่า: 3.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntArrayTag#getId()
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:85 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า Id
ทำงานยังไง
คืนค่า: 11.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntArrayTag#getType()
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:90 - Modifiers:
public - Return:
TagType<IntArrayTag>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: TYPE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntArrayTag#hashCode()
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:111 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ hashCode ตาม implementation ของ IntArrayTag
ทำงานยังไง
คืนค่า: Arrays.hashCode(this.data).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntArrayTag#IntArrayTag(int[])
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:52 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ IntArrayTag ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: data.
Parameters
int[] is
ตัวอย่างใช้งาน
net.minecraft.nbt.IntArrayTag#IntArrayTag(List<Integer>)
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:56 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ IntArrayTag ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: toArray().
Parameters
List<Integer> list
ตัวอย่างใช้งาน
net.minecraft.nbt.IntArrayTag#remove(int)
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:164 - Modifiers:
public - Return:
IntTag
คืออะไร
ลบ remove
ทำงานยังไง
แก้ state: data. เรียกต่อ: valueOf(). คืนค่า: IntTag.valueOf(j).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.IntArrayTag#set(int,IntTag)
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:134 - Modifiers:
public - Return:
IntTag
คืออะไร
กำหนดค่า set
ทำงานยังไง
เรียกต่อ: getAsInt(), valueOf(). คืนค่า: IntTag.valueOf(j).
Parameters
int iIntTag intTag
ตัวอย่างใช้งาน
net.minecraft.nbt.IntArrayTag#setTag(int,Tag)
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:144 - Modifiers:
public - Return:
boolean
คืออะไร
กำหนดค่า Tag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getAsInt(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iTag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.IntArrayTag#size()
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:125 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ size ตาม implementation ของ IntArrayTag
ทำงานยังไง
คืนค่า: this.data.length.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntArrayTag#sizeInBytes()
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:80 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ sizeInBytes ตาม implementation ของ IntArrayTag
ทำงานยังไง
คืนค่า: 24 + 4 * this.data.length.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntArrayTag#toString()
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:95 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ IntArrayTag
ทำงานยังไง
เรียกต่อ: getAsString(). คืนค่า: this.getAsString().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntArrayTag#write(DataOutput)
- Origin:
common - Source:
net/minecraft/nbt/IntArrayTag.java:71 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
มีการวนลูป. เรียกต่อ: writeInt().
Parameters
DataOutput dataOutput
Throws
IOException
ตัวอย่างใช้งาน
IntTag
- Full name:
net.minecraft.nbt.IntTag - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/IntTag.java - Type:
class - Modifiers:
public - Extends:
NumericTag
net.minecraft.nbt.IntTag#accept(StreamTagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/IntTag.java:128 - Modifiers:
public - Return:
StreamTagVisitor.ValueResult
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visit(). คืนค่า: streamTagVisitor.visit(this.data).
Parameters
StreamTagVisitor streamTagVisitor
ตัวอย่างใช้งาน
IntTag instance = ...;
StreamTagVisitor streamTagVisitor = ...;
StreamTagVisitor.ValueResult result = instance.accept(streamTagVisitor);
net.minecraft.nbt.IntTag#accept(TagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/IntTag.java:88 - Modifiers:
public - Return:
void
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visitInt().
Parameters
TagVisitor tagVisitor
ตัวอย่างใช้งาน
net.minecraft.nbt.IntTag#copy()
- Origin:
common - Source:
net/minecraft/nbt/IntTag.java:74 - Modifiers:
public - Return:
IntTag
คืออะไร
คัดลอก copy
ทำงานยังไง
คืนค่า: this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntTag#equals(Object)
- Origin:
common - Source:
net/minecraft/nbt/IntTag.java:78 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
แก้ state: data. คืนค่า: this == object ? true : object instanceof IntTag && this.data == ((IntTag)object).data.
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.nbt.IntTag#getAsByte()
- Origin:
common - Source:
net/minecraft/nbt/IntTag.java:108 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า As Byte
ทำงานยังไง
คืนค่า: (byte)(this.data & 0xFF).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntTag#getAsDouble()
- Origin:
common - Source:
net/minecraft/nbt/IntTag.java:113 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า As Double
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntTag#getAsFloat()
- Origin:
common - Source:
net/minecraft/nbt/IntTag.java:118 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า As Float
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntTag#getAsInt()
- Origin:
common - Source:
net/minecraft/nbt/IntTag.java:98 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า As Int
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntTag#getAsLong()
- Origin:
common - Source:
net/minecraft/nbt/IntTag.java:93 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า As Long
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntTag#getAsNumber()
- Origin:
common - Source:
net/minecraft/nbt/IntTag.java:123 - Modifiers:
public - Return:
Number
คืออะไร
อ่านค่า As Number
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntTag#getAsShort()
- Origin:
common - Source:
net/minecraft/nbt/IntTag.java:103 - Modifiers:
public - Return:
short
คืออะไร
อ่านค่า As Short
ทำงานยังไง
คืนค่า: (short)(this.data & 65535).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntTag#getId()
- Origin:
common - Source:
net/minecraft/nbt/IntTag.java:64 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า Id
ทำงานยังไง
คืนค่า: 3.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntTag#getType()
- Origin:
common - Source:
net/minecraft/nbt/IntTag.java:69 - Modifiers:
public - Return:
TagType<IntTag>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: TYPE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntTag#hashCode()
- Origin:
common - Source:
net/minecraft/nbt/IntTag.java:83 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ hashCode ตาม implementation ของ IntTag
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntTag#sizeInBytes()
- Origin:
common - Source:
net/minecraft/nbt/IntTag.java:59 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ sizeInBytes ตาม implementation ของ IntTag
ทำงานยังไง
คืนค่า: 12.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.IntTag#valueOf(int)
- Origin:
common - Source:
net/minecraft/nbt/IntTag.java:50 - Modifiers:
public static - Return:
IntTag
คืออะไร
ดำเนินการ valueOf ตาม implementation ของ IntTag
ทำงานยังไง
สร้างออบเจ็กต์: IntTag. คืนค่า: i >= -128 && i <= 1024 ? IntTag.Cache.cache[i - -128] : new IntTag(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.IntTag#write(DataOutput)
- Origin:
common - Source:
net/minecraft/nbt/IntTag.java:54 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
เรียกต่อ: writeInt().
Parameters
DataOutput dataOutput
Throws
IOException
ตัวอย่างใช้งาน
ListTag
- Full name:
net.minecraft.nbt.ListTag - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/ListTag.java - Type:
class - Modifiers:
public - Extends:
CollectionTag<Tag>
net.minecraft.nbt.ListTag#accept(StreamTagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:388 - Modifiers:
public - Return:
StreamTagVisitor.ValueResult
คืออะไร
รับค่า accept
ทำงานยังไง
แยกกรณีด้วย switch ; มีการวนลูป. เรียกต่อ: visitList(), getType(), size(), visitContainerEnd(), get(), visitElement(). มีจุด return อย่างน้อย 7 จุด.
Parameters
StreamTagVisitor streamTagVisitor
ตัวอย่างใช้งาน
ListTag instance = ...;
StreamTagVisitor streamTagVisitor = ...;
StreamTagVisitor.ValueResult result = instance.accept(streamTagVisitor);
net.minecraft.nbt.ListTag#accept(TagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:372 - Modifiers:
public - Return:
void
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visitList().
Parameters
TagVisitor tagVisitor
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#add(int,Tag)
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:318 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม add
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: addTag(), format(), getId(). สร้างออบเจ็กต์: UnsupportedOperationException.
Parameters
int iTag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#addTag(int,Tag)
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:335 - Modifiers:
public - Return:
boolean
คืออะไร
เพิ่ม Tag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: updateType(), add(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iTag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#clear()
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:382 - Modifiers:
public - Return:
void
คืออะไร
ล้าง clear
ทำงานยังไง
แก้ state: type.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#copy()
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:356 - Modifiers:
public - Return:
ListTag
คืออะไร
คัดลอก copy
ทำงานยังไง
เรียกต่อ: getType(), isValue(), transform(), newArrayList(). สร้างออบเจ็กต์: ListTag. คืนค่า: new ListTag(list, this.type).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#equals(Object)
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:362 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
คืนค่า: this == object ? true : object instanceof ListTag && Objects.equals(this.list, ((ListTag)object).list).
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#get(int)
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:304 - Modifiers:
public - Return:
Tag
คืออะไร
อ่านค่า get
ทำงานยังไง
คืนค่า: this.list.get(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#getCompound(int)
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:202 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่านค่า Compound
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: size(), get(), getId(). สร้างออบเจ็กต์: CompoundTag. มีจุด return อย่างน้อย 2 จุด.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#getDouble(int)
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:268 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Double
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: size(), get(), getId(), getAsDouble(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#getElementType()
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:377 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า Element Type
ทำงานยังไง
คืนค่า: this.type.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#getFloat(int)
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:279 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Float
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: size(), get(), getId(), getAsFloat(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#getId()
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:169 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า Id
ทำงานยังไง
คืนค่า: 9.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#getInt(int)
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:235 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Int
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: size(), get(), getId(), getAsInt(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#getIntArray(int)
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:246 - Modifiers:
public - Return:
int[]
คืออะไร
อ่านค่า Int Array
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: size(), get(), getId(), getAsIntArray(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#getList(int)
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:213 - Modifiers:
public - Return:
ListTag
คืออะไร
อ่านค่า List
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: size(), get(), getId(). สร้างออบเจ็กต์: ListTag. มีจุด return อย่างน้อย 2 จุด.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#getLongArray(int)
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:257 - Modifiers:
public - Return:
long[]
คืออะไร
อ่านค่า Long Array
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: size(), get(), getId(), getAsLongArray(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#getShort(int)
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:224 - Modifiers:
public - Return:
short
คืออะไร
อ่านค่า Short
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: size(), get(), getId(), getAsShort(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#getString(int)
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:290 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า String
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: size(), get(), getId(), getAsString(), toString(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#getType()
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:174 - Modifiers:
public - Return:
TagType<ListTag>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: TYPE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#hashCode()
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:367 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ hashCode ตาม implementation ของ ListTag
ทำงานยังไง
คืนค่า: this.list.hashCode().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#isEmpty()
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:197 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty
ทำงานยังไง
คืนค่า: this.list.isEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#ListTag()
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:137 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ListTag ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: newArrayList().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#remove(int)
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:190 - Modifiers:
public - Return:
Tag
คืออะไร
ลบ remove
ทำงานยังไง
เรียกต่อ: updateTypeAfterRemove(). คืนค่า: tag.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#set(int,Tag)
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:308 - Modifiers:
public - Return:
Tag
คืออะไร
กำหนดค่า set
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), setTag(), format(), getId(). สร้างออบเจ็กต์: UnsupportedOperationException. คืนค่า: tag2.
Parameters
int iTag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#setTag(int,Tag)
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:325 - Modifiers:
public - Return:
boolean
คืออะไร
กำหนดค่า Tag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: updateType(), set(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iTag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#size()
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:299 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ size ตาม implementation ของ ListTag
ทำงานยังไง
คืนค่า: this.list.size().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#sizeInBytes()
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:157 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ sizeInBytes ตาม implementation ของ ListTag
ทำงานยังไง
มีการวนลูป. เรียกต่อ: size(). คืนค่า: i.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#toString()
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:179 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ ListTag
ทำงานยังไง
เรียกต่อ: getAsString(). คืนค่า: this.getAsString().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ListTag#write(DataOutput)
- Origin:
common - Source:
net/minecraft/nbt/ListTag.java:141 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: type. เรียกต่อ: isEmpty(), get(), getId(), writeByte(), writeInt(), size().
Parameters
DataOutput dataOutput
Throws
IOException
ตัวอย่างใช้งาน
LongArrayTag
- Full name:
net.minecraft.nbt.LongArrayTag - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/LongArrayTag.java - Type:
class - Modifiers:
public - Extends:
CollectionTag<LongTag>
net.minecraft.nbt.LongArrayTag#accept(StreamTagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:185 - Modifiers:
public - Return:
StreamTagVisitor.ValueResult
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visit(). คืนค่า: streamTagVisitor.visit(this.data).
Parameters
StreamTagVisitor streamTagVisitor
ตัวอย่างใช้งาน
LongArrayTag instance = ...;
StreamTagVisitor streamTagVisitor = ...;
StreamTagVisitor.ValueResult result = instance.accept(streamTagVisitor);
net.minecraft.nbt.LongArrayTag#accept(TagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:121 - Modifiers:
public - Return:
void
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visitLongArray().
Parameters
TagVisitor tagVisitor
ตัวอย่างใช้งาน
net.minecraft.nbt.LongArrayTag#add(int,LongTag)
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:145 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม add
ทำงานยังไง
แก้ state: data. เรียกต่อ: getAsLong().
Parameters
int iLongTag longTag
ตัวอย่างใช้งาน
net.minecraft.nbt.LongArrayTag#addTag(int,Tag)
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:159 - Modifiers:
public - Return:
boolean
คืออะไร
เพิ่ม Tag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: data. เรียกต่อ: add(), getAsLong(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iTag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.LongArrayTag#clear()
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:180 - Modifiers:
public - Return:
void
คืออะไร
ล้าง clear
ทำงานยังไง
แก้ state: data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongArrayTag#copy()
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:105 - Modifiers:
public - Return:
LongArrayTag
คืออะไร
คัดลอก copy
ทำงานยังไง
เรียกต่อ: arraycopy(). สร้างออบเจ็กต์: LongArrayTag. คืนค่า: new LongArrayTag(ls).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongArrayTag#equals(Object)
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:111 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
คืนค่า: this == object ? true : object instanceof LongArrayTag && Arrays.equals(this.data, ((LongArrayTag)object).data).
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.nbt.LongArrayTag#get(int)
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:135 - Modifiers:
public - Return:
LongTag
คืออะไร
อ่านค่า get
ทำงานยังไง
เรียกต่อ: valueOf(). คืนค่า: LongTag.valueOf(this.data[i]).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.LongArrayTag#getAsLongArray()
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:126 - Modifiers:
public - Return:
long[]
คืออะไร
อ่านค่า As Long Array
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongArrayTag#getElementType()
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:175 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า Element Type
ทำงานยังไง
คืนค่า: 4.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongArrayTag#getId()
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:90 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า Id
ทำงานยังไง
คืนค่า: 12.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongArrayTag#getType()
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:95 - Modifiers:
public - Return:
TagType<LongArrayTag>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: TYPE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongArrayTag#hashCode()
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:116 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ hashCode ตาม implementation ของ LongArrayTag
ทำงานยังไง
คืนค่า: Arrays.hashCode(this.data).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongArrayTag#LongArrayTag(List<Long>)
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:61 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LongArrayTag ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: toArray().
Parameters
List<Long> list
ตัวอย่างใช้งาน
net.minecraft.nbt.LongArrayTag#LongArrayTag(long[])
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:53 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LongArrayTag ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: data.
Parameters
long[] ls
ตัวอย่างใช้งาน
net.minecraft.nbt.LongArrayTag#LongArrayTag(LongSet)
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:57 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LongArrayTag ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: data. เรียกต่อ: toLongArray().
Parameters
LongSet longSet
ตัวอย่างใช้งาน
net.minecraft.nbt.LongArrayTag#remove(int)
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:169 - Modifiers:
public - Return:
LongTag
คืออะไร
ลบ remove
ทำงานยังไง
แก้ state: data. เรียกต่อ: valueOf(). คืนค่า: LongTag.valueOf(l).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.LongArrayTag#set(int,LongTag)
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:139 - Modifiers:
public - Return:
LongTag
คืออะไร
กำหนดค่า set
ทำงานยังไง
เรียกต่อ: getAsLong(), valueOf(). คืนค่า: LongTag.valueOf(l).
Parameters
int iLongTag longTag
ตัวอย่างใช้งาน
net.minecraft.nbt.LongArrayTag#setTag(int,Tag)
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:149 - Modifiers:
public - Return:
boolean
คืออะไร
กำหนดค่า Tag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getAsLong(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iTag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.LongArrayTag#size()
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:130 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ size ตาม implementation ของ LongArrayTag
ทำงานยังไง
คืนค่า: this.data.length.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongArrayTag#sizeInBytes()
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:85 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ sizeInBytes ตาม implementation ของ LongArrayTag
ทำงานยังไง
คืนค่า: 24 + 8 * this.data.length.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongArrayTag#toString()
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:100 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ LongArrayTag
ทำงานยังไง
เรียกต่อ: getAsString(). คืนค่า: this.getAsString().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongArrayTag#write(DataOutput)
- Origin:
common - Source:
net/minecraft/nbt/LongArrayTag.java:76 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
มีการวนลูป. เรียกต่อ: writeInt(), writeLong().
Parameters
DataOutput dataOutput
Throws
IOException
ตัวอย่างใช้งาน
LongTag
- Full name:
net.minecraft.nbt.LongTag - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/LongTag.java - Type:
class - Modifiers:
public - Extends:
NumericTag
net.minecraft.nbt.LongTag#accept(StreamTagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/LongTag.java:128 - Modifiers:
public - Return:
StreamTagVisitor.ValueResult
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visit(). คืนค่า: streamTagVisitor.visit(this.data).
Parameters
StreamTagVisitor streamTagVisitor
ตัวอย่างใช้งาน
LongTag instance = ...;
StreamTagVisitor streamTagVisitor = ...;
StreamTagVisitor.ValueResult result = instance.accept(streamTagVisitor);
net.minecraft.nbt.LongTag#accept(TagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/LongTag.java:88 - Modifiers:
public - Return:
void
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visitLong().
Parameters
TagVisitor tagVisitor
ตัวอย่างใช้งาน
net.minecraft.nbt.LongTag#copy()
- Origin:
common - Source:
net/minecraft/nbt/LongTag.java:74 - Modifiers:
public - Return:
LongTag
คืออะไร
คัดลอก copy
ทำงานยังไง
คืนค่า: this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongTag#equals(Object)
- Origin:
common - Source:
net/minecraft/nbt/LongTag.java:78 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
แก้ state: data. คืนค่า: this == object ? true : object instanceof LongTag && this.data == ((LongTag)object).data.
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.nbt.LongTag#getAsByte()
- Origin:
common - Source:
net/minecraft/nbt/LongTag.java:108 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า As Byte
ทำงานยังไง
คืนค่า: (byte)(this.data & 255L).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongTag#getAsDouble()
- Origin:
common - Source:
net/minecraft/nbt/LongTag.java:113 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า As Double
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongTag#getAsFloat()
- Origin:
common - Source:
net/minecraft/nbt/LongTag.java:118 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า As Float
ทำงานยังไง
คืนค่า: (float)this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongTag#getAsInt()
- Origin:
common - Source:
net/minecraft/nbt/LongTag.java:98 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า As Int
ทำงานยังไง
คืนค่า: (int)(this.data & -1L).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongTag#getAsLong()
- Origin:
common - Source:
net/minecraft/nbt/LongTag.java:93 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า As Long
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongTag#getAsNumber()
- Origin:
common - Source:
net/minecraft/nbt/LongTag.java:123 - Modifiers:
public - Return:
Number
คืออะไร
อ่านค่า As Number
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongTag#getAsShort()
- Origin:
common - Source:
net/minecraft/nbt/LongTag.java:103 - Modifiers:
public - Return:
short
คืออะไร
อ่านค่า As Short
ทำงานยังไง
คืนค่า: (short)(this.data & 65535L).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongTag#getId()
- Origin:
common - Source:
net/minecraft/nbt/LongTag.java:64 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า Id
ทำงานยังไง
คืนค่า: 4.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongTag#getType()
- Origin:
common - Source:
net/minecraft/nbt/LongTag.java:69 - Modifiers:
public - Return:
TagType<LongTag>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: TYPE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongTag#hashCode()
- Origin:
common - Source:
net/minecraft/nbt/LongTag.java:83 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ hashCode ตาม implementation ของ LongTag
ทำงานยังไง
คืนค่า: (int)(this.data ^ this.data >>> 32).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongTag#sizeInBytes()
- Origin:
common - Source:
net/minecraft/nbt/LongTag.java:59 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ sizeInBytes ตาม implementation ของ LongTag
ทำงานยังไง
คืนค่า: 16.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.LongTag#valueOf(long)
- Origin:
common - Source:
net/minecraft/nbt/LongTag.java:50 - Modifiers:
public static - Return:
LongTag
คืออะไร
ดำเนินการ valueOf ตาม implementation ของ LongTag
ทำงานยังไง
สร้างออบเจ็กต์: LongTag. คืนค่า: l >= -128L && l <= 1024L ? LongTag.Cache.cache[(int)l - -128] : new LongTag(l).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.nbt.LongTag#write(DataOutput)
- Origin:
common - Source:
net/minecraft/nbt/LongTag.java:54 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
เรียกต่อ: writeLong().
Parameters
DataOutput dataOutput
Throws
IOException
ตัวอย่างใช้งาน
NbtAccounter
- Full name:
net.minecraft.nbt.NbtAccounter - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/NbtAccounter.java - Type:
class - Modifiers:
public
net.minecraft.nbt.NbtAccounter#accountBytes(long)
- Origin:
common - Source:
net/minecraft/nbt/NbtAccounter.java:29 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ accountBytes ตาม implementation ของ NbtAccounter
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: usage. สร้างออบเจ็กต์: NbtAccounterException.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtAccounter#accountBytes(long,long)
- Origin:
common - Source:
net/minecraft/nbt/NbtAccounter.java:25 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ accountBytes ตาม implementation ของ NbtAccounter
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
long llong m
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtAccounter#create(long)
- Origin:
common - Source:
net/minecraft/nbt/NbtAccounter.java:17 - Modifiers:
public static - Return:
NbtAccounter
คืออะไร
สร้าง create
ทำงานยังไง
สร้างออบเจ็กต์: NbtAccounter. คืนค่า: new NbtAccounter(l, 512).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtAccounter#getDepth()
- Origin:
common - Source:
net/minecraft/nbt/NbtAccounter.java:60 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Depth
ทำงานยังไง
คืนค่า: this.depth.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtAccounter#getUsage()
- Origin:
common - Source:
net/minecraft/nbt/NbtAccounter.java:55 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Usage
ทำงานยังไง
คืนค่า: this.usage.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtAccounter#NbtAccounter(long,int)
- Origin:
common - Source:
net/minecraft/nbt/NbtAccounter.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ NbtAccounter ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: quota, maxDepth.
Parameters
long lint i
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtAccounter#popDepth()
- Origin:
common - Source:
net/minecraft/nbt/NbtAccounter.java:47 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ popDepth ตาม implementation ของ NbtAccounter
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: depth. สร้างออบเจ็กต์: NbtAccounterException.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtAccounter#pushDepth()
- Origin:
common - Source:
net/minecraft/nbt/NbtAccounter.java:39 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ pushDepth ตาม implementation ของ NbtAccounter
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: depth. สร้างออบเจ็กต์: NbtAccounterException.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtAccounter#unlimitedHeap()
- Origin:
common - Source:
net/minecraft/nbt/NbtAccounter.java:21 - Modifiers:
public static - Return:
NbtAccounter
คืออะไร
ดำเนินการ unlimitedHeap ตาม implementation ของ NbtAccounter
ทำงานยังไง
สร้างออบเจ็กต์: NbtAccounter. คืนค่า: new NbtAccounter(Long.MAX_VALUE, 512).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
NbtAccounterException
- Full name:
net.minecraft.nbt.NbtAccounterException - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/NbtAccounterException.java - Type:
class - Modifiers:
public - Extends:
NbtException
net.minecraft.nbt.NbtAccounterException#NbtAccounterException(String)
- Origin:
common - Source:
net/minecraft/nbt/NbtAccounterException.java:4 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ NbtAccounterException ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
String string
ตัวอย่างใช้งาน
NbtException
- Full name:
net.minecraft.nbt.NbtException - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/NbtException.java - Type:
class - Modifiers:
public - Extends:
RuntimeException
net.minecraft.nbt.NbtException#NbtException(String)
- Origin:
common - Source:
net/minecraft/nbt/NbtException.java:4 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ NbtException ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
String string
ตัวอย่างใช้งาน
NbtFormatException
- Full name:
net.minecraft.nbt.NbtFormatException - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/NbtFormatException.java - Type:
class - Modifiers:
public - Extends:
NbtException
net.minecraft.nbt.NbtFormatException#NbtFormatException(String)
- Origin:
common - Source:
net/minecraft/nbt/NbtFormatException.java:4 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ NbtFormatException ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
String string
ตัวอย่างใช้งาน
NbtIo
- Full name:
net.minecraft.nbt.NbtIo - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/NbtIo.java - Type:
class - Modifiers:
public
net.minecraft.nbt.NbtIo#parse(DataInput,StreamTagVisitor,NbtAccounter)
- Origin:
common - Source:
net/minecraft/nbt/NbtIo.java:124 - Modifiers:
public static - Return:
void
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch. เรียกต่อ: getType(), readByte(), visitRootEntry(), visitEnd(), skipString(), skip().
Parameters
DataInput dataInputStreamTagVisitor streamTagVisitorNbtAccounter nbtAccounter
Throws
IOException
ตัวอย่างใช้งาน
DataInput dataInput = ...;
StreamTagVisitor streamTagVisitor = ...;
NbtAccounter nbtAccounter = ...;
NbtIo.parse(dataInput, streamTagVisitor, nbtAccounter);
net.minecraft.nbt.NbtIo#parseCompressed(InputStream,StreamTagVisitor,NbtAccounter)
- Origin:
common - Source:
net/minecraft/nbt/NbtIo.java:62 - Modifiers:
public static - Return:
void
คืออะไร
แปลง/วิเคราะห์ข้อมูล Compressed
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: createDecompressorStream(), parse().
Parameters
InputStream inputStreamStreamTagVisitor streamTagVisitorNbtAccounter nbtAccounter
Throws
IOException
ตัวอย่างใช้งาน
InputStream inputStream = ...;
StreamTagVisitor streamTagVisitor = ...;
NbtAccounter nbtAccounter = ...;
NbtIo.parseCompressed(inputStream, streamTagVisitor, nbtAccounter);
net.minecraft.nbt.NbtIo#parseCompressed(Path,StreamTagVisitor,NbtAccounter)
- Origin:
common - Source:
net/minecraft/nbt/NbtIo.java:53 - Modifiers:
public static - Return:
void
คืออะไร
แปลง/วิเคราะห์ข้อมูล Compressed
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: newInputStream(). สร้างออบเจ็กต์: FastBufferedInputStream.
Parameters
Path pathStreamTagVisitor streamTagVisitorNbtAccounter nbtAccounter
Throws
IOException
ตัวอย่างใช้งาน
Path path = ...;
StreamTagVisitor streamTagVisitor = ...;
NbtAccounter nbtAccounter = ...;
NbtIo.parseCompressed(path, streamTagVisitor, nbtAccounter);
net.minecraft.nbt.NbtIo#read(DataInput)
- Origin:
common - Source:
net/minecraft/nbt/NbtIo.java:107 - Modifiers:
public static - Return:
CompoundTag
คืออะไร
อ่าน read
ทำงานยังไง
เรียกต่อ: unlimitedHeap(). คืนค่า: read(dataInput, NbtAccounter.unlimitedHeap()).
Parameters
DataInput dataInput
Throws
IOException
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtIo#read(DataInput,NbtAccounter)
- Origin:
common - Source:
net/minecraft/nbt/NbtIo.java:111 - Modifiers:
public static - Return:
CompoundTag
คืออะไร
อ่าน read
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: readUnnamedTag(). สร้างออบเจ็กต์: IOException. คืนค่า: (CompoundTag)tag.
Parameters
DataInput dataInputNbtAccounter nbtAccounter
Throws
IOException
ตัวอย่างใช้งาน
DataInput dataInput = ...;
NbtAccounter nbtAccounter = ...;
CompoundTag result = NbtIo.read(dataInput, nbtAccounter);
net.minecraft.nbt.NbtIo#read(Path)
- Origin:
common - Source:
net/minecraft/nbt/NbtIo.java:93 - Modifiers:
public static - Return:
CompoundTag
คืออะไร
อ่าน read
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: exists(), newInputStream(), unlimitedHeap(). สร้างออบเจ็กต์: DataInputStream. มีจุด return อย่างน้อย 2 จุด.
Parameters
Path path
Throws
IOException
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtIo#readAnyTag(DataInput,NbtAccounter)
- Origin:
common - Source:
net/minecraft/nbt/NbtIo.java:146 - Modifiers:
public static - Return:
Tag
คืออะไร
อ่าน Any Tag
ทำงานยังไง
เรียกต่อ: readByte(), readTagSafe(). คืนค่า: b == 0 ? EndTag.INSTANCE : readTagSafe(dataInput, nbtAccounter, b).
Parameters
DataInput dataInputNbtAccounter nbtAccounter
Throws
IOException
ตัวอย่างใช้งาน
DataInput dataInput = ...;
NbtAccounter nbtAccounter = ...;
Tag result = NbtIo.readAnyTag(dataInput, nbtAccounter);
net.minecraft.nbt.NbtIo#readCompressed(InputStream,NbtAccounter)
- Origin:
common - Source:
net/minecraft/nbt/NbtIo.java:47 - Modifiers:
public static - Return:
CompoundTag
คืออะไร
อ่าน Compressed
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: createDecompressorStream(), read(). คืนค่า: read(dataInputStream, nbtAccounter).
Parameters
InputStream inputStreamNbtAccounter nbtAccounter
Throws
IOException
ตัวอย่างใช้งาน
InputStream inputStream = ...;
NbtAccounter nbtAccounter = ...;
CompoundTag result = NbtIo.readCompressed(inputStream, nbtAccounter);
net.minecraft.nbt.NbtIo#readCompressed(Path,NbtAccounter)
- Origin:
common - Source:
net/minecraft/nbt/NbtIo.java:30 - Modifiers:
public static - Return:
CompoundTag
คืออะไร
อ่าน Compressed
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: newInputStream(). สร้างออบเจ็กต์: FastBufferedInputStream. คืนค่า: readCompressed(inputStream2, nbtAccounter).
Parameters
Path pathNbtAccounter nbtAccounter
Throws
IOException
ตัวอย่างใช้งาน
Path path = ...;
NbtAccounter nbtAccounter = ...;
CompoundTag result = NbtIo.readCompressed(path, nbtAccounter);
net.minecraft.nbt.NbtIo#write(CompoundTag,DataOutput)
- Origin:
common - Source:
net/minecraft/nbt/NbtIo.java:120 - Modifiers:
public static - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
เรียกต่อ: writeUnnamedTagWithFallback().
Parameters
CompoundTag compoundTagDataOutput dataOutput
Throws
IOException
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtIo#write(CompoundTag,Path)
- Origin:
common - Source:
net/minecraft/nbt/NbtIo.java:83 - Modifiers:
public static - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: newOutputStream(). สร้างออบเจ็กต์: BufferedOutputStream, DataOutputStream.
Parameters
CompoundTag compoundTagPath path
Throws
IOException
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtIo#writeAnyTag(Tag,DataOutput)
- Origin:
common - Source:
net/minecraft/nbt/NbtIo.java:151 - Modifiers:
public static - Return:
void
คืออะไร
เขียน Any Tag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: writeByte(), getId(), write().
Parameters
Tag tagDataOutput dataOutput
Throws
IOException
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtIo#writeCompressed(CompoundTag,OutputStream)
- Origin:
common - Source:
net/minecraft/nbt/NbtIo.java:77 - Modifiers:
public static - Return:
void
คืออะไร
เขียน Compressed
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: createCompressorStream(), write().
Parameters
CompoundTag compoundTagOutputStream outputStream
Throws
IOException
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
OutputStream outputStream = ...;
NbtIo.writeCompressed(compoundTag, outputStream);
net.minecraft.nbt.NbtIo#writeCompressed(CompoundTag,Path)
- Origin:
common - Source:
net/minecraft/nbt/NbtIo.java:68 - Modifiers:
public static - Return:
void
คืออะไร
เขียน Compressed
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: newOutputStream(). สร้างออบเจ็กต์: BufferedOutputStream.
Parameters
CompoundTag compoundTagPath path
Throws
IOException
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtIo#writeUnnamedTag(Tag,DataOutput)
- Origin:
common - Source:
net/minecraft/nbt/NbtIo.java:158 - Modifiers:
public static - Return:
void
คืออะไร
เขียน Unnamed Tag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: writeByte(), getId(), writeUTF(), write().
Parameters
Tag tagDataOutput dataOutput
Throws
IOException
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtIo#writeUnnamedTagWithFallback(Tag,DataOutput)
- Origin:
common - Source:
net/minecraft/nbt/NbtIo.java:166 - Modifiers:
public static - Return:
void
คืออะไร
เขียน Unnamed Tag With Fallback
ทำงานยังไง
เรียกต่อ: writeUnnamedTag(), StringFallbackDataOutput(). สร้างออบเจ็กต์: NbtIo.StringFallbackDataOutput.
Parameters
Tag tagDataOutput dataOutput
Throws
IOException
ตัวอย่างใช้งาน
NbtIo$StringFallbackDataOutput
- Full name:
net.minecraft.nbt.NbtIo$StringFallbackDataOutput - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/NbtIo.java - Type:
class - Modifiers:
public static - Extends:
DelegateDataOutput
net.minecraft.nbt.NbtIo$StringFallbackDataOutput#StringFallbackDataOutput(DataOutput)
- Origin:
common - Source:
net/minecraft/nbt/NbtIo.java:192 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ NbtIo.StringFallbackDataOutput ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
DataOutput dataOutput
ตัวอย่างใช้งาน
DataOutput dataOutput = ...;
NbtIo.StringFallbackDataOutput instance = new NbtIo.StringFallbackDataOutput(dataOutput);
net.minecraft.nbt.NbtIo$StringFallbackDataOutput#writeUTF(String)
- Origin:
common - Source:
net/minecraft/nbt/NbtIo.java:196 - Modifiers:
public - Return:
void
คืออะไร
เขียน UTF
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: logAndPauseIfInIde().
Parameters
String string
Throws
IOException
ตัวอย่างใช้งาน
NbtOps
- Full name:
net.minecraft.nbt.NbtOps - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/NbtOps.java - Type:
class - Modifiers:
public - Implements:
DynamicOps<Tag>
net.minecraft.nbt.NbtOps#convertTo(DynamicOps<U>,Tag)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:38 - Modifiers:
public - Return:
U
คืออะไร
แปลง To
ทำงานยังไง
แยกกรณีด้วย switch. เรียกต่อ: getId(), empty(), createByte(), getAsByte(), createShort(), getAsShort(), createInt(), getAsInt(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: (U)(switch (tag.getId()) { case 0 -> (Object)dynamicOps.empty().
Parameters
DynamicOps<U> dynamicOpsTag tag
ตัวอย่างใช้งาน
NbtOps instance = ...;
DynamicOps<U> dynamicOps = ...;
Tag tag = ...;
U result = instance.convertTo(dynamicOps, tag);
net.minecraft.nbt.NbtOps#createBoolean(boolean)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:89 - Modifiers:
public - Return:
Tag
คืออะไร
สร้าง Boolean
ทำงานยังไง
เรียกต่อ: valueOf(). คืนค่า: ByteTag.valueOf(bl).
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#createByte(byte)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:65 - Modifiers:
public - Return:
Tag
คืออะไร
สร้าง Byte
ทำงานยังไง
เรียกต่อ: valueOf(). คืนค่า: ByteTag.valueOf(b).
Parameters
byte b
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#createByteList(ByteBuffer)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:246 - Modifiers:
public - Return:
Tag
คืออะไร
สร้าง Byte List
ทำงานยังไง
เรียกต่อ: duplicate(), clear(), capacity(), get(). สร้างออบเจ็กต์: ByteArrayTag. คืนค่า: new ByteArrayTag(bs).
Parameters
ByteBuffer byteBuffer
ตัวอย่างใช้งาน
NbtOps instance = ...;
ByteBuffer byteBuffer = ...;
Tag result = instance.createByteList(byteBuffer);
net.minecraft.nbt.NbtOps#createDouble(double)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:85 - Modifiers:
public - Return:
Tag
คืออะไร
สร้าง Double
ทำงานยังไง
เรียกต่อ: valueOf(). คืนค่า: DoubleTag.valueOf(d).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#createFloat(float)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:81 - Modifiers:
public - Return:
Tag
คืออะไร
สร้าง Float
ทำงานยังไง
เรียกต่อ: valueOf(). คืนค่า: FloatTag.valueOf(f).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#createInt(int)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:73 - Modifiers:
public - Return:
Tag
คืออะไร
สร้าง Int
ทำงานยังไง
เรียกต่อ: valueOf(). คืนค่า: IntTag.valueOf(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#createIntList(IntStream)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:257 - Modifiers:
public - Return:
Tag
คืออะไร
สร้าง Int List
ทำงานยังไง
เรียกต่อ: toArray(). สร้างออบเจ็กต์: IntArrayTag. คืนค่า: new IntArrayTag(intStream.toArray()).
Parameters
IntStream intStream
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#createList(Stream<Tag>)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:269 - Modifiers:
public - Return:
Tag
คืออะไร
สร้าง List
ทำงานยังไง
เรียกต่อ: acceptAll(), result(). คืนค่า: NbtOps.InitialListCollector.INSTANCE.acceptAll(stream).result().
Parameters
Stream<Tag> stream
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#createLong(long)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:77 - Modifiers:
public - Return:
Tag
คืออะไร
สร้าง Long
ทำงานยังไง
เรียกต่อ: valueOf(). คืนค่า: LongTag.valueOf(l).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#createLongList(LongStream)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:265 - Modifiers:
public - Return:
Tag
คืออะไร
สร้าง Long List
ทำงานยังไง
เรียกต่อ: toArray(). สร้างออบเจ็กต์: LongArrayTag. คืนค่า: new LongArrayTag(longStream.toArray()).
Parameters
LongStream longStream
ตัวอย่างใช้งาน
NbtOps instance = ...;
LongStream longStream = ...;
Tag result = instance.createLongList(longStream);
net.minecraft.nbt.NbtOps#createMap(Stream<Pair<Tag, Tag>>)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:203 - Modifiers:
public - Return:
Tag
คืออะไร
สร้าง Map
ทำงานยังไง
เรียกต่อ: forEach(), put(), getFirst(), getAsString(), getSecond(). สร้างออบเจ็กต์: CompoundTag. คืนค่า: compoundTag.
Parameters
Stream<Pair<Tag, Tag>> stream
ตัวอย่างใช้งาน
NbtOps instance = ...;
Stream<Pair<Tag, Tag>> stream = ...;
Tag result = instance.createMap(stream);
net.minecraft.nbt.NbtOps#createNumeric(Number)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:61 - Modifiers:
public - Return:
Tag
คืออะไร
สร้าง Numeric
ทำงานยังไง
เรียกต่อ: valueOf(), doubleValue(). คืนค่า: DoubleTag.valueOf(number.doubleValue()).
Parameters
Number number
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#createShort(short)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:69 - Modifiers:
public - Return:
Tag
คืออะไร
สร้าง Short
ทำงานยังไง
เรียกต่อ: valueOf(). คืนค่า: ShortTag.valueOf(s).
Parameters
short s
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#createString(String)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:97 - Modifiers:
public - Return:
Tag
คืออะไร
สร้าง String
ทำงานยังไง
เรียกต่อ: valueOf(). คืนค่า: StringTag.valueOf(string).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#empty()
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:34 - Modifiers:
public - Return:
Tag
คืออะไร
ดำเนินการ empty ตาม implementation ของ NbtOps
ทำงานยังไง
คืนค่า: EndTag.INSTANCE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#getByteBuffer(Tag)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:242 - Modifiers:
public - Return:
DataResult<ByteBuffer>
คืออะไร
อ่านค่า Byte Buffer
ทำงานยังไง
เรียกต่อ: success(), wrap(), getAsByteArray(). คืนค่า: tag instanceof ByteArrayTag byteArrayTag ? DataResult.success(ByteBuffer.wrap(byteArrayTag.getAsByteArray())) : DynamicOps.super.getByteBuffer(tag).
Parameters
Tag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#getIntStream(Tag)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:253 - Modifiers:
public - Return:
DataResult<IntStream>
คืออะไร
อ่านค่า Int Stream
ทำงานยังไง
เรียกต่อ: success(), stream(), getAsIntArray(). คืนค่า: tag instanceof IntArrayTag intArrayTag ? DataResult.success(Arrays.stream(intArrayTag.getAsIntArray())) : DynamicOps.super.getIntStream(tag).
Parameters
Tag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#getList(Tag)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:230 - Modifiers:
public - Return:
DataResult<Consumer<Consumer<Tag>>>
คืออะไร
อ่านค่า List
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getElementType(), success(), accept(), tryUnwrap(), error(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Tag tag
ตัวอย่างใช้งาน
NbtOps instance = ...;
Tag tag = ...;
DataResult<Consumer<Consumer<Tag>>> result = instance.getList(tag);
net.minecraft.nbt.NbtOps#getLongStream(Tag)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:261 - Modifiers:
public - Return:
DataResult<LongStream>
คืออะไร
อ่านค่า Long Stream
ทำงานยังไง
เรียกต่อ: success(), stream(), getAsLongArray(). คืนค่า: tag instanceof LongArrayTag longArrayTag ? DataResult.success(Arrays.stream(longArrayTag.getAsLongArray())) : DynamicOps.super.getLongStream(tag).
Parameters
Tag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#getMap(Tag)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:179 - Modifiers:
public - Return:
DataResult<MapLike<Tag>>
คืออะไร
อ่านค่า Map
ทำงานยังไง
เรียกต่อ: success(), get(), getAsString(), entries(), entrySet(), stream(), map(), of(). สร้างออบเจ็กต์: MapLike<Tag>. มีจุด return อย่างน้อย 4 จุด.
Parameters
Tag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#getMapEntries(Tag)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:171 - Modifiers:
public - Return:
DataResult<Consumer<BiConsumer<Tag, Tag>>>
คืออะไร
อ่านค่า Map Entries
ทำงานยังไง
มีการวนลูป. เรียกต่อ: success(), entrySet(), accept(), createString(), getKey(), getValue(), error().
Parameters
Tag tag
ตัวอย่างใช้งาน
NbtOps instance = ...;
Tag tag = ...;
DataResult<Consumer<BiConsumer<Tag, Tag>>> result = instance.getMapEntries(tag);
net.minecraft.nbt.NbtOps#getMapValues(Tag)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:165 - Modifiers:
public - Return:
DataResult<Stream<Pair<Tag, Tag>>>
คืออะไร
อ่านค่า Map Values
ทำงานยังไง
เรียกต่อ: success(), entrySet(), stream(), map(), of(), createString(), getKey(), getValue().
Parameters
Tag tag
ตัวอย่างใช้งาน
NbtOps instance = ...;
Tag tag = ...;
DataResult<Stream<Pair<Tag, Tag>>> result = instance.getMapValues(tag);
net.minecraft.nbt.NbtOps#getNumberValue(Tag)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:57 - Modifiers:
public - Return:
DataResult<Number>
คืออะไร
อ่านค่า Number Value
ทำงานยังไง
เรียกต่อ: success(), getAsNumber(), error(). คืนค่า: tag instanceof NumericTag numericTag ? DataResult.success(numericTag.getAsNumber()) : DataResult.error(() -> "Not a number").
Parameters
Tag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#getStream(Tag)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:220 - Modifiers:
public - Return:
DataResult<Stream<Tag>>
คืออะไร
อ่านค่า Stream
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getElementType(), success(), stream(), map(), tryUnwrap(), error(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Tag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#getStringValue(Tag)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:93 - Modifiers:
public - Return:
DataResult<String>
คืออะไร
อ่านค่า String Value
ทำงานยังไง
เรียกต่อ: success(), getAsString(), error(). คืนค่า: tag instanceof StringTag stringTag ? DataResult.success(stringTag.getAsString()) : DataResult.error(() -> "Not a string").
Parameters
Tag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#mapBuilder()
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:288 - Modifiers:
public - Return:
RecordBuilder<Tag>
คืออะไร
ดำเนินการ mapBuilder ตาม implementation ของ NbtOps
ทำงานยังไง
เรียกต่อ: NbtRecordBuilder(). สร้างออบเจ็กต์: NbtOps.NbtRecordBuilder. คืนค่า: new NbtOps.NbtRecordBuilder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#mergeToList(Tag,List<Tag>)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:107 - Modifiers:
public - Return:
DataResult<Tag>
คืออะไร
ดำเนินการ mergeToList ตาม implementation ของ NbtOps
ทำงานยังไง
เรียกต่อ: createCollector(), map(), success(), acceptAll(), result(), orElseGet(), error().
Parameters
Tag tagList<Tag> list
ตัวอย่างใช้งาน
NbtOps instance = ...;
Tag tag = ...;
List<Tag> list = ...;
DataResult<Tag> result = instance.mergeToList(tag, list);
net.minecraft.nbt.NbtOps#mergeToList(Tag,Tag)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:101 - Modifiers:
public - Return:
DataResult<Tag>
คืออะไร
ดำเนินการ mergeToList ตาม implementation ของ NbtOps
ทำงานยังไง
เรียกต่อ: createCollector(), map(), success(), accept(), result(), orElseGet(), error().
Parameters
Tag tagTag tag2
ตัวอย่างใช้งาน
NbtOps instance = ...;
Tag tag = ...;
Tag tag2 = ...;
DataResult<Tag> result = instance.mergeToList(tag, tag2);
net.minecraft.nbt.NbtOps#mergeToMap(Tag,Map<Tag, Tag>)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:145 - Modifiers:
public - Return:
DataResult<Tag>
คืออะไร
ดำเนินการ mergeToMap ตาม implementation ของ NbtOps
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: error(), shallowCopy(), entrySet(), getKey(), put(), getAsString(), getValue(), add(). สร้างออบเจ็กต์: CompoundTag, ArrayList<>. มีจุด return อย่างน้อย 2 จุด.
Parameters
Tag tagMap<Tag, Tag> map
ตัวอย่างใช้งาน
NbtOps instance = ...;
Tag tag = ...;
Map<Tag, Tag> map = ...;
DataResult<Tag> result = instance.mergeToMap(tag, map);
net.minecraft.nbt.NbtOps#mergeToMap(Tag,MapLike<Tag>)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:127 - Modifiers:
public - Return:
DataResult<Tag>
คืออะไร
ดำเนินการ mergeToMap ตาม implementation ของ NbtOps
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: error(), shallowCopy(), entries(), forEach(), getFirst(), add(), put(), getAsString(). สร้างออบเจ็กต์: CompoundTag, ArrayList<>. มีจุด return อย่างน้อย 2 จุด.
Parameters
Tag tagMapLike<Tag> mapLike
ตัวอย่างใช้งาน
NbtOps instance = ...;
Tag tag = ...;
MapLike<Tag> mapLike = ...;
DataResult<Tag> result = instance.mergeToMap(tag, mapLike);
net.minecraft.nbt.NbtOps#mergeToMap(Tag,Tag,Tag)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:113 - Modifiers:
public - Return:
DataResult<Tag>
คืออะไร
ดำเนินการ mergeToMap ตาม implementation ของ NbtOps
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: error(), shallowCopy(), put(), getAsString(), success(). สร้างออบเจ็กต์: CompoundTag. มีจุด return อย่างน้อย 3 จุด.
Parameters
Tag tagTag tag2Tag tag3
ตัวอย่างใช้งาน
NbtOps instance = ...;
Tag tag = ...;
Tag tag2 = ...;
Tag tag3 = ...;
DataResult<Tag> result = instance.mergeToMap(tag, tag2, tag3);
net.minecraft.nbt.NbtOps#NbtOps()
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:31 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ NbtOps ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#remove(Tag,String)
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:273 - Modifiers:
public - Return:
Tag
คืออะไร
ลบ remove
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: shallowCopy(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Tag tagString string
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtOps#toString()
- Origin:
common - Source:
net/minecraft/nbt/NbtOps.java:283 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ NbtOps
ทำงานยังไง
คืนค่า: "NBT".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
NbtUtils
- Full name:
net.minecraft.nbt.NbtUtils - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/NbtUtils.java - Type:
class - Modifiers:
public final
net.minecraft.nbt.NbtUtils#addCurrentDataVersion(CompoundTag)
- Origin:
common - Source:
net/minecraft/nbt/NbtUtils.java:586 - Modifiers:
public static - Return:
CompoundTag
คืออะไร
เพิ่ม Current Data Version
ทำงานยังไง
เรียกต่อ: getCurrentVersion(), getDataVersion(), getVersion(), addDataVersion(). คืนค่า: addDataVersion(compoundTag, i).
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtUtils#addDataVersion(CompoundTag,int)
- Origin:
common - Source:
net/minecraft/nbt/NbtUtils.java:591 - Modifiers:
public static - Return:
CompoundTag
คืออะไร
เพิ่ม Data Version
ทำงานยังไง
เรียกต่อ: putInt(). คืนค่า: compoundTag.
Parameters
CompoundTag compoundTagint i
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtUtils#compareNbt(Tag,Tag,boolean)
- Origin:
common - Source:
net/minecraft/nbt/NbtUtils.java:63 - Modifiers:
public static - Return:
boolean
คืออะไร
เปรียบเทียบ Nbt
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getClass(), equals(), size(), getAllKeys(), get(), isEmpty(). มีจุด return อย่างน้อย 12 จุด.
Parameters
Tag tagTag tag2boolean bl
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtUtils#createUUID(UUID)
- Origin:
common - Source:
net/minecraft/nbt/NbtUtils.java:126 - Modifiers:
public static - Return:
IntArrayTag
คืออะไร
สร้าง UUID
ทำงานยังไง
เรียกต่อ: uuidToIntArray(). สร้างออบเจ็กต์: IntArrayTag. คืนค่า: new IntArrayTag(UUIDUtil.uuidToIntArray(uUID)).
Parameters
UUID uUID
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtUtils#getDataVersion(CompoundTag,int)
- Origin:
common - Source:
net/minecraft/nbt/NbtUtils.java:596 - Modifiers:
public static - Return:
int
คืออะไร
อ่านค่า Data Version
ทำงานยังไง
เรียกต่อ: contains(), getInt(). คืนค่า: compoundTag.contains("DataVersion", 99) ? compoundTag.getInt("DataVersion") : i.
Parameters
CompoundTag compoundTagint i
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtUtils#loadUUID(Tag)
- Origin:
common - Source:
net/minecraft/nbt/NbtUtils.java:130 - Modifiers:
public static - Return:
UUID
คืออะไร
โหลด UUID
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getType(), getName(), getAsIntArray(), uuidFromIntArray(). สร้างออบเจ็กต์: IllegalArgumentException. คืนค่า: UUIDUtil.uuidFromIntArray(is).
Parameters
Tag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtUtils#prettyPrint(StringBuilder,Tag,int,boolean)
- Origin:
common - Source:
net/minecraft/nbt/NbtUtils.java:240 - Modifiers:
public static - Return:
StringBuilder
คืออะไร
ดำเนินการ prettyPrint ตาม implementation ของ NbtUtils
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch ; มีการวนลูป. เรียกต่อ: getId(), append(), getAsByteArray(), indent(), format(), size(), getElementType(), getType(). คืนค่า: stringBuilder.
Parameters
StringBuilder stringBuilderTag tagint iboolean bl
ตัวอย่างใช้งาน
StringBuilder stringBuilder = ...;
Tag tag = ...;
StringBuilder result = NbtUtils.prettyPrint(stringBuilder, tag, 0, true);
net.minecraft.nbt.NbtUtils#prettyPrint(Tag)
- Origin:
common - Source:
net/minecraft/nbt/NbtUtils.java:232 - Modifiers:
public static - Return:
String
คืออะไร
ดำเนินการ prettyPrint ตาม implementation ของ NbtUtils
ทำงานยังไง
คืนค่า: prettyPrint(tag, false).
Parameters
Tag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtUtils#prettyPrint(Tag,boolean)
- Origin:
common - Source:
net/minecraft/nbt/NbtUtils.java:236 - Modifiers:
public static - Return:
String
คืออะไร
ดำเนินการ prettyPrint ตาม implementation ของ NbtUtils
ทำงานยังไง
เรียกต่อ: toString(). สร้างออบเจ็กต์: StringBuilder. คืนค่า: prettyPrint(new StringBuilder(), tag, 0, bl).toString().
Parameters
Tag tagboolean bl
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtUtils#readBlockPos(CompoundTag,String)
- Origin:
common - Source:
net/minecraft/nbt/NbtUtils.java:143 - Modifiers:
public static - Return:
Optional<BlockPos>
คืออะไร
อ่าน Block Pos
ทำงานยังไง
เรียกต่อ: getIntArray(), of(), empty(). สร้างออบเจ็กต์: BlockPos. คืนค่า: is.length == 3 ? Optional.of(new BlockPos(is[0], is[1], is[2])) : Optional.empty().
Parameters
CompoundTag compoundTagString string
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
Optional<BlockPos> result = NbtUtils.readBlockPos(compoundTag, "value");
net.minecraft.nbt.NbtUtils#readBlockState(HolderGetter<Block>,CompoundTag)
- Origin:
common - Source:
net/minecraft/nbt/NbtUtils.java:152 - Modifiers:
public static - Return:
BlockState
คืออะไร
อ่าน Block State
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: contains(), defaultBlockState(), parse(), getString(), get(), create(), isEmpty(), value(). มีจุด return อย่างน้อย 3 จุด.
Parameters
HolderGetter<Block> holderGetterCompoundTag compoundTag
ตัวอย่างใช้งาน
HolderGetter<Block> holderGetter = ...;
CompoundTag compoundTag = ...;
BlockState result = NbtUtils.readBlockState(holderGetter, compoundTag);
net.minecraft.nbt.NbtUtils#snbtToStructure(String)
- Origin:
common - Source:
net/minecraft/nbt/NbtUtils.java:438 - Modifiers:
public static - Return:
CompoundTag
คืออะไร
ดำเนินการ snbtToStructure ตาม implementation ของ NbtUtils
ทำงานยังไง
เรียกต่อ: unpackStructureTemplate(), parseTag(). คืนค่า: unpackStructureTemplate(TagParser.parseTag(string)).
Parameters
String string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtUtils#structureToSnbt(CompoundTag)
- Origin:
common - Source:
net/minecraft/nbt/NbtUtils.java:434 - Modifiers:
public static - Return:
String
คืออะไร
ดำเนินการ structureToSnbt ตาม implementation ของ NbtUtils
ทำงานยังไง
เรียกต่อ: visit(), packStructureTemplate(). สร้างออบเจ็กต์: SnbtPrinterTagVisitor. คืนค่า: new SnbtPrinterTagVisitor().visit(packStructureTemplate(compoundTag)).
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtUtils#toPrettyComponent(Tag)
- Origin:
common - Source:
net/minecraft/nbt/NbtUtils.java:430 - Modifiers:
public static - Return:
Component
คืออะไร
ดำเนินการ toPrettyComponent ตาม implementation ของ NbtUtils
ทำงานยังไง
เรียกต่อ: visit(). สร้างออบเจ็กต์: TextComponentTagVisitor. คืนค่า: new TextComponentTagVisitor("").visit(tag).
Parameters
Tag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtUtils#writeBlockPos(BlockPos)
- Origin:
common - Source:
net/minecraft/nbt/NbtUtils.java:148 - Modifiers:
public static - Return:
Tag
คืออะไร
เขียน Block Pos
ทำงานยังไง
เรียกต่อ: getX(), getY(), getZ(). สร้างออบเจ็กต์: IntArrayTag. คืนค่า: new IntArrayTag(new int[]{blockPos.getX(), blockPos.getY(), blockPos.getZ()}).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtUtils#writeBlockState(BlockState)
- Origin:
common - Source:
net/minecraft/nbt/NbtUtils.java:192 - Modifiers:
public static - Return:
CompoundTag
คืออะไร
เขียน Block State
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: putString(), getKey(), getBlock(), toString(), getValues(), isEmpty(), entrySet(), getName(). สร้างออบเจ็กต์: CompoundTag. คืนค่า: compoundTag.
Parameters
BlockState blockState
ตัวอย่างใช้งาน
net.minecraft.nbt.NbtUtils#writeFluidState(FluidState)
- Origin:
common - Source:
net/minecraft/nbt/NbtUtils.java:210 - Modifiers:
public static - Return:
CompoundTag
คืออะไร
เขียน Fluid State
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: putString(), getKey(), getType(), toString(), getValues(), isEmpty(), entrySet(), getName(). สร้างออบเจ็กต์: CompoundTag. คืนค่า: compoundTag.
Parameters
FluidState fluidState
ตัวอย่างใช้งาน
NumericTag
- Full name:
net.minecraft.nbt.NumericTag - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/NumericTag.java - Type:
class - Modifiers:
public abstract - Implements:
Tag
net.minecraft.nbt.NumericTag#getAsByte()
- Origin:
common - Source:
net/minecraft/nbt/NumericTag.java:13 - Modifiers:
public abstract - Return:
byte
คืออะไร
อ่านค่า As Byte
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.NumericTag#getAsDouble()
- Origin:
common - Source:
net/minecraft/nbt/NumericTag.java:15 - Modifiers:
public abstract - Return:
double
คืออะไร
อ่านค่า As Double
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.NumericTag#getAsFloat()
- Origin:
common - Source:
net/minecraft/nbt/NumericTag.java:17 - Modifiers:
public abstract - Return:
float
คืออะไร
อ่านค่า As Float
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.NumericTag#getAsInt()
- Origin:
common - Source:
net/minecraft/nbt/NumericTag.java:9 - Modifiers:
public abstract - Return:
int
คืออะไร
อ่านค่า As Int
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.NumericTag#getAsLong()
- Origin:
common - Source:
net/minecraft/nbt/NumericTag.java:7 - Modifiers:
public abstract - Return:
long
คืออะไร
อ่านค่า As Long
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.NumericTag#getAsNumber()
- Origin:
common - Source:
net/minecraft/nbt/NumericTag.java:19 - Modifiers:
public abstract - Return:
Number
คืออะไร
อ่านค่า As Number
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.NumericTag#getAsShort()
- Origin:
common - Source:
net/minecraft/nbt/NumericTag.java:11 - Modifiers:
public abstract - Return:
short
คืออะไร
อ่านค่า As Short
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.NumericTag#NumericTag()
- Origin:
common - Source:
net/minecraft/nbt/NumericTag.java:4 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ NumericTag ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.NumericTag#toString()
- Origin:
common - Source:
net/minecraft/nbt/NumericTag.java:21 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ NumericTag
ทำงานยังไง
เรียกต่อ: getAsString(). คืนค่า: this.getAsString().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ReportedNbtException
- Full name:
net.minecraft.nbt.ReportedNbtException - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/ReportedNbtException.java - Type:
class - Modifiers:
public - Extends:
ReportedException
net.minecraft.nbt.ReportedNbtException#ReportedNbtException(CrashReport)
- Origin:
common - Source:
net/minecraft/nbt/ReportedNbtException.java:7 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ReportedNbtException ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
CrashReport crashReport
ตัวอย่างใช้งาน
CrashReport crashReport = ...;
ReportedNbtException instance = new ReportedNbtException(crashReport);
ShortTag
- Full name:
net.minecraft.nbt.ShortTag - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/ShortTag.java - Type:
class - Modifiers:
public - Extends:
NumericTag
net.minecraft.nbt.ShortTag#accept(StreamTagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/ShortTag.java:128 - Modifiers:
public - Return:
StreamTagVisitor.ValueResult
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visit(). คืนค่า: streamTagVisitor.visit(this.data).
Parameters
StreamTagVisitor streamTagVisitor
ตัวอย่างใช้งาน
ShortTag instance = ...;
StreamTagVisitor streamTagVisitor = ...;
StreamTagVisitor.ValueResult result = instance.accept(streamTagVisitor);
net.minecraft.nbt.ShortTag#accept(TagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/ShortTag.java:88 - Modifiers:
public - Return:
void
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visitShort().
Parameters
TagVisitor tagVisitor
ตัวอย่างใช้งาน
net.minecraft.nbt.ShortTag#copy()
- Origin:
common - Source:
net/minecraft/nbt/ShortTag.java:74 - Modifiers:
public - Return:
ShortTag
คืออะไร
คัดลอก copy
ทำงานยังไง
คืนค่า: this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ShortTag#equals(Object)
- Origin:
common - Source:
net/minecraft/nbt/ShortTag.java:78 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
แก้ state: data. คืนค่า: this == object ? true : object instanceof ShortTag && this.data == ((ShortTag)object).data.
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.nbt.ShortTag#getAsByte()
- Origin:
common - Source:
net/minecraft/nbt/ShortTag.java:108 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า As Byte
ทำงานยังไง
คืนค่า: (byte)(this.data & 0xFF).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ShortTag#getAsDouble()
- Origin:
common - Source:
net/minecraft/nbt/ShortTag.java:113 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า As Double
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ShortTag#getAsFloat()
- Origin:
common - Source:
net/minecraft/nbt/ShortTag.java:118 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า As Float
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ShortTag#getAsInt()
- Origin:
common - Source:
net/minecraft/nbt/ShortTag.java:98 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า As Int
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ShortTag#getAsLong()
- Origin:
common - Source:
net/minecraft/nbt/ShortTag.java:93 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า As Long
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ShortTag#getAsNumber()
- Origin:
common - Source:
net/minecraft/nbt/ShortTag.java:123 - Modifiers:
public - Return:
Number
คืออะไร
อ่านค่า As Number
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ShortTag#getAsShort()
- Origin:
common - Source:
net/minecraft/nbt/ShortTag.java:103 - Modifiers:
public - Return:
short
คืออะไร
อ่านค่า As Short
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ShortTag#getId()
- Origin:
common - Source:
net/minecraft/nbt/ShortTag.java:64 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า Id
ทำงานยังไง
คืนค่า: 2.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ShortTag#getType()
- Origin:
common - Source:
net/minecraft/nbt/ShortTag.java:69 - Modifiers:
public - Return:
TagType<ShortTag>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: TYPE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ShortTag#hashCode()
- Origin:
common - Source:
net/minecraft/nbt/ShortTag.java:83 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ hashCode ตาม implementation ของ ShortTag
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ShortTag#sizeInBytes()
- Origin:
common - Source:
net/minecraft/nbt/ShortTag.java:59 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ sizeInBytes ตาม implementation ของ ShortTag
ทำงานยังไง
คืนค่า: 10.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.ShortTag#valueOf(short)
- Origin:
common - Source:
net/minecraft/nbt/ShortTag.java:50 - Modifiers:
public static - Return:
ShortTag
คืออะไร
ดำเนินการ valueOf ตาม implementation ของ ShortTag
ทำงานยังไง
สร้างออบเจ็กต์: ShortTag. คืนค่า: s >= -128 && s <= 1024 ? ShortTag.Cache.cache[s - -128] : new ShortTag(s).
Parameters
short s
ตัวอย่างใช้งาน
net.minecraft.nbt.ShortTag#write(DataOutput)
- Origin:
common - Source:
net/minecraft/nbt/ShortTag.java:54 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
เรียกต่อ: writeShort().
Parameters
DataOutput dataOutput
Throws
IOException
ตัวอย่างใช้งาน
SnbtPrinterTagVisitor
- Full name:
net.minecraft.nbt.SnbtPrinterTagVisitor - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/SnbtPrinterTagVisitor.java - Type:
class - Modifiers:
public - Implements:
TagVisitor
net.minecraft.nbt.SnbtPrinterTagVisitor#getKeys(CompoundTag)
- Origin:
common - Source:
net/minecraft/nbt/SnbtPrinterTagVisitor.java:215 - Modifiers:
protected - Return:
List<String>
คืออะไร
อ่านค่า Keys
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: newHashSet(), getAllKeys(), newArrayList(), get(), pathString(), remove(), add(), isEmpty(). คืนค่า: list.
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected List<String> getKeys(CompoundTag compoundTag) {
return super.getKeys(compoundTag);
}
net.minecraft.nbt.SnbtPrinterTagVisitor#handleEscapePretty(String)
- Origin:
common - Source:
net/minecraft/nbt/SnbtPrinterTagVisitor.java:241 - Modifiers:
protected static - Return:
String
คืออะไร
จัดการ Escape Pretty
ทำงานยังไง
เรียกต่อ: matcher(), matches(), quoteAndEscape(). คืนค่า: SIMPLE_VALUE.matcher(string).matches() ? string : StringTag.quoteAndEscape(string).
Parameters
String string
ตัวอย่างใช้งาน
@Override
protected String handleEscapePretty(String string) {
return super.handleEscapePretty(string);
}
net.minecraft.nbt.SnbtPrinterTagVisitor#pathString()
- Origin:
common - Source:
net/minecraft/nbt/SnbtPrinterTagVisitor.java:237 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ pathString ตาม implementation ของ SnbtPrinterTagVisitor
ทำงานยังไง
เรียกต่อ: join(). คืนค่า: String.join(".", this.path).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.SnbtPrinterTagVisitor#SnbtPrinterTagVisitor()
- Origin:
common - Source:
net/minecraft/nbt/SnbtPrinterTagVisitor.java:38 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SnbtPrinterTagVisitor ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: newArrayList().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.SnbtPrinterTagVisitor#SnbtPrinterTagVisitor(String,int,List<String>)
- Origin:
common - Source:
net/minecraft/nbt/SnbtPrinterTagVisitor.java:42 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SnbtPrinterTagVisitor ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: indentation, depth, path.
Parameters
String stringint iList<String> list
ตัวอย่างใช้งาน
List<String> list = ...;
SnbtPrinterTagVisitor instance = new SnbtPrinterTagVisitor("value", 0, list);
net.minecraft.nbt.SnbtPrinterTagVisitor#visit(Tag)
- Origin:
common - Source:
net/minecraft/nbt/SnbtPrinterTagVisitor.java:48 - Modifiers:
public - Return:
String
คืออะไร
เยี่ยมชม node visit
ทำงานยังไง
เรียกต่อ: accept(). คืนค่า: this.result.
Parameters
Tag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.SnbtPrinterTagVisitor#visitByte(ByteTag)
- Origin:
common - Source:
net/minecraft/nbt/SnbtPrinterTagVisitor.java:58 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Byte
ทำงานยังไง
แก้ state: result. เรียกต่อ: getAsNumber().
Parameters
ByteTag byteTag
ตัวอย่างใช้งาน
net.minecraft.nbt.SnbtPrinterTagVisitor#visitByteArray(ByteArrayTag)
- Origin:
common - Source:
net/minecraft/nbt/SnbtPrinterTagVisitor.java:88 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Byte Array
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: result. เรียกต่อ: append(), getAsByteArray(), toString(). สร้างออบเจ็กต์: StringBuilder.
Parameters
ByteArrayTag byteArrayTag
ตัวอย่างใช้งาน
SnbtPrinterTagVisitor instance = ...;
ByteArrayTag byteArrayTag = ...;
instance.visitByteArray(byteArrayTag);
net.minecraft.nbt.SnbtPrinterTagVisitor#visitCompound(CompoundTag)
- Origin:
common - Source:
net/minecraft/nbt/SnbtPrinterTagVisitor.java:167 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Compound
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: result. เรียกต่อ: isEmpty(), pushPath(), contains(), pathString(), append(), getKeys(), iterator(), hasNext(). สร้างออบเจ็กต์: StringBuilder, SnbtPrinterTagVisitor.
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
SnbtPrinterTagVisitor instance = ...;
CompoundTag compoundTag = ...;
instance.visitCompound(compoundTag);
net.minecraft.nbt.SnbtPrinterTagVisitor#visitDouble(DoubleTag)
- Origin:
common - Source:
net/minecraft/nbt/SnbtPrinterTagVisitor.java:83 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Double
ทำงานยังไง
แก้ state: result. เรียกต่อ: getAsDouble().
Parameters
DoubleTag doubleTag
ตัวอย่างใช้งาน
net.minecraft.nbt.SnbtPrinterTagVisitor#visitEnd(EndTag)
- Origin:
common - Source:
net/minecraft/nbt/SnbtPrinterTagVisitor.java:245 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node End
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EndTag endTag
ตัวอย่างใช้งาน
net.minecraft.nbt.SnbtPrinterTagVisitor#visitFloat(FloatTag)
- Origin:
common - Source:
net/minecraft/nbt/SnbtPrinterTagVisitor.java:78 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Float
ทำงานยังไง
แก้ state: result. เรียกต่อ: getAsFloat().
Parameters
FloatTag floatTag
ตัวอย่างใช้งาน
net.minecraft.nbt.SnbtPrinterTagVisitor#visitInt(IntTag)
- Origin:
common - Source:
net/minecraft/nbt/SnbtPrinterTagVisitor.java:68 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Int
ทำงานยังไง
แก้ state: result. เรียกต่อ: valueOf(), getAsNumber().
Parameters
IntTag intTag
ตัวอย่างใช้งาน
net.minecraft.nbt.SnbtPrinterTagVisitor#visitIntArray(IntArrayTag)
- Origin:
common - Source:
net/minecraft/nbt/SnbtPrinterTagVisitor.java:104 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Int Array
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: result. เรียกต่อ: append(), getAsIntArray(), toString(). สร้างออบเจ็กต์: StringBuilder.
Parameters
IntArrayTag intArrayTag
ตัวอย่างใช้งาน
SnbtPrinterTagVisitor instance = ...;
IntArrayTag intArrayTag = ...;
instance.visitIntArray(intArrayTag);
net.minecraft.nbt.SnbtPrinterTagVisitor#visitList(ListTag)
- Origin:
common - Source:
net/minecraft/nbt/SnbtPrinterTagVisitor.java:137 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node List
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: result. เรียกต่อ: isEmpty(), pushPath(), contains(), pathString(), append(), size(), repeat(), visit(). สร้างออบเจ็กต์: StringBuilder, SnbtPrinterTagVisitor.
Parameters
ListTag listTag
ตัวอย่างใช้งาน
net.minecraft.nbt.SnbtPrinterTagVisitor#visitLong(LongTag)
- Origin:
common - Source:
net/minecraft/nbt/SnbtPrinterTagVisitor.java:73 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Long
ทำงานยังไง
แก้ state: result. เรียกต่อ: getAsNumber().
Parameters
LongTag longTag
ตัวอย่างใช้งาน
net.minecraft.nbt.SnbtPrinterTagVisitor#visitLongArray(LongArrayTag)
- Origin:
common - Source:
net/minecraft/nbt/SnbtPrinterTagVisitor.java:120 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Long Array
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: result. เรียกต่อ: append(), getAsLongArray(), toString(). สร้างออบเจ็กต์: StringBuilder.
Parameters
LongArrayTag longArrayTag
ตัวอย่างใช้งาน
SnbtPrinterTagVisitor instance = ...;
LongArrayTag longArrayTag = ...;
instance.visitLongArray(longArrayTag);
net.minecraft.nbt.SnbtPrinterTagVisitor#visitShort(ShortTag)
- Origin:
common - Source:
net/minecraft/nbt/SnbtPrinterTagVisitor.java:63 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Short
ทำงานยังไง
แก้ state: result. เรียกต่อ: getAsNumber().
Parameters
ShortTag shortTag
ตัวอย่างใช้งาน
net.minecraft.nbt.SnbtPrinterTagVisitor#visitString(StringTag)
- Origin:
common - Source:
net/minecraft/nbt/SnbtPrinterTagVisitor.java:53 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node String
ทำงานยังไง
แก้ state: result. เรียกต่อ: quoteAndEscape(), getAsString().
Parameters
StringTag stringTag
ตัวอย่างใช้งาน
StreamTagVisitor
- Full name:
net.minecraft.nbt.StreamTagVisitor - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/StreamTagVisitor.java - Type:
interface - Modifiers:
public
net.minecraft.nbt.StreamTagVisitor#visit(byte)
- Origin:
common - Source:
net/minecraft/nbt/StreamTagVisitor.java:8 - Modifiers: ``
- Return:
StreamTagVisitor.ValueResult
คืออะไร
เยี่ยมชม node visit
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
byte b
ตัวอย่างใช้งาน
net.minecraft.nbt.StreamTagVisitor#visit(byte[])
- Origin:
common - Source:
net/minecraft/nbt/StreamTagVisitor.java:20 - Modifiers: ``
- Return:
StreamTagVisitor.ValueResult
คืออะไร
เยี่ยมชม node visit
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
byte[] bs
ตัวอย่างใช้งาน
StreamTagVisitor instance = ...;
byte[] bs = ...;
StreamTagVisitor.ValueResult result = instance.visit(bs);
net.minecraft.nbt.StreamTagVisitor#visit(double)
- Origin:
common - Source:
net/minecraft/nbt/StreamTagVisitor.java:18 - Modifiers: ``
- Return:
StreamTagVisitor.ValueResult
คืออะไร
เยี่ยมชม node visit
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.nbt.StreamTagVisitor#visit(float)
- Origin:
common - Source:
net/minecraft/nbt/StreamTagVisitor.java:16 - Modifiers: ``
- Return:
StreamTagVisitor.ValueResult
คืออะไร
เยี่ยมชม node visit
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.nbt.StreamTagVisitor#visit(int)
- Origin:
common - Source:
net/minecraft/nbt/StreamTagVisitor.java:12 - Modifiers: ``
- Return:
StreamTagVisitor.ValueResult
คืออะไร
เยี่ยมชม node visit
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.StreamTagVisitor#visit(int[])
- Origin:
common - Source:
net/minecraft/nbt/StreamTagVisitor.java:22 - Modifiers: ``
- Return:
StreamTagVisitor.ValueResult
คืออะไร
เยี่ยมชม node visit
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int[] is
ตัวอย่างใช้งาน
StreamTagVisitor instance = ...;
int[] is = ...;
StreamTagVisitor.ValueResult result = instance.visit(is);
net.minecraft.nbt.StreamTagVisitor#visit(long)
- Origin:
common - Source:
net/minecraft/nbt/StreamTagVisitor.java:14 - Modifiers: ``
- Return:
StreamTagVisitor.ValueResult
คืออะไร
เยี่ยมชม node visit
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.nbt.StreamTagVisitor#visit(long[])
- Origin:
common - Source:
net/minecraft/nbt/StreamTagVisitor.java:24 - Modifiers: ``
- Return:
StreamTagVisitor.ValueResult
คืออะไร
เยี่ยมชม node visit
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
long[] ls
ตัวอย่างใช้งาน
StreamTagVisitor instance = ...;
long[] ls = ...;
StreamTagVisitor.ValueResult result = instance.visit(ls);
net.minecraft.nbt.StreamTagVisitor#visit(short)
- Origin:
common - Source:
net/minecraft/nbt/StreamTagVisitor.java:10 - Modifiers: ``
- Return:
StreamTagVisitor.ValueResult
คืออะไร
เยี่ยมชม node visit
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
short s
ตัวอย่างใช้งาน
net.minecraft.nbt.StreamTagVisitor#visit(String)
- Origin:
common - Source:
net/minecraft/nbt/StreamTagVisitor.java:6 - Modifiers: ``
- Return:
StreamTagVisitor.ValueResult
คืออะไร
เยี่ยมชม node visit
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.StreamTagVisitor#visitContainerEnd()
- Origin:
common - Source:
net/minecraft/nbt/StreamTagVisitor.java:34 - Modifiers: ``
- Return:
StreamTagVisitor.ValueResult
คืออะไร
เยี่ยมชม node Container End
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
StreamTagVisitor instance = ...;
StreamTagVisitor.ValueResult result = instance.visitContainerEnd();
net.minecraft.nbt.StreamTagVisitor#visitElement(TagType<?>,int)
- Origin:
common - Source:
net/minecraft/nbt/StreamTagVisitor.java:32 - Modifiers: ``
- Return:
StreamTagVisitor.EntryResult
คืออะไร
เยี่ยมชม node Element
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
TagType<?> tagTypeint i
ตัวอย่างใช้งาน
StreamTagVisitor instance = ...;
TagType<?> tagType = ...;
StreamTagVisitor.EntryResult result = instance.visitElement(tagType, 0);
net.minecraft.nbt.StreamTagVisitor#visitEnd()
- Origin:
common - Source:
net/minecraft/nbt/StreamTagVisitor.java:4 - Modifiers: ``
- Return:
StreamTagVisitor.ValueResult
คืออะไร
เยี่ยมชม node End
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.StreamTagVisitor#visitEntry(TagType<?>)
- Origin:
common - Source:
net/minecraft/nbt/StreamTagVisitor.java:28 - Modifiers: ``
- Return:
StreamTagVisitor.EntryResult
คืออะไร
เยี่ยมชม node Entry
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
TagType<?> tagType
ตัวอย่างใช้งาน
StreamTagVisitor instance = ...;
TagType<?> tagType = ...;
StreamTagVisitor.EntryResult result = instance.visitEntry(tagType);
net.minecraft.nbt.StreamTagVisitor#visitEntry(TagType<?>,String)
- Origin:
common - Source:
net/minecraft/nbt/StreamTagVisitor.java:30 - Modifiers: ``
- Return:
StreamTagVisitor.EntryResult
คืออะไร
เยี่ยมชม node Entry
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
TagType<?> tagTypeString string
ตัวอย่างใช้งาน
StreamTagVisitor instance = ...;
TagType<?> tagType = ...;
StreamTagVisitor.EntryResult result = instance.visitEntry(tagType, "value");
net.minecraft.nbt.StreamTagVisitor#visitList(TagType<?>,int)
- Origin:
common - Source:
net/minecraft/nbt/StreamTagVisitor.java:26 - Modifiers: ``
- Return:
StreamTagVisitor.ValueResult
คืออะไร
เยี่ยมชม node List
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
TagType<?> tagTypeint i
ตัวอย่างใช้งาน
StreamTagVisitor instance = ...;
TagType<?> tagType = ...;
StreamTagVisitor.ValueResult result = instance.visitList(tagType, 0);
net.minecraft.nbt.StreamTagVisitor#visitRootEntry(TagType<?>)
- Origin:
common - Source:
net/minecraft/nbt/StreamTagVisitor.java:36 - Modifiers: ``
- Return:
StreamTagVisitor.ValueResult
คืออะไร
เยี่ยมชม node Root Entry
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
TagType<?> tagType
ตัวอย่างใช้งาน
StreamTagVisitor instance = ...;
TagType<?> tagType = ...;
StreamTagVisitor.ValueResult result = instance.visitRootEntry(tagType);
StringTag
- Full name:
net.minecraft.nbt.StringTag - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/StringTag.java - Type:
class - Modifiers:
public - Implements:
Tag
net.minecraft.nbt.StringTag#accept(StreamTagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/StringTag.java:146 - Modifiers:
public - Return:
StreamTagVisitor.ValueResult
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visit(). คืนค่า: streamTagVisitor.visit(this.data).
Parameters
StreamTagVisitor streamTagVisitor
ตัวอย่างใช้งาน
StringTag instance = ...;
StreamTagVisitor streamTagVisitor = ...;
StreamTagVisitor.ValueResult result = instance.accept(streamTagVisitor);
net.minecraft.nbt.StringTag#accept(TagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/StringTag.java:111 - Modifiers:
public - Return:
void
คืออะไร
รับค่า accept
ทำงานยังไง
เรียกต่อ: visitString().
Parameters
TagVisitor tagVisitor
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTag#copy()
- Origin:
common - Source:
net/minecraft/nbt/StringTag.java:92 - Modifiers:
public - Return:
StringTag
คืออะไร
คัดลอก copy
ทำงานยังไง
คืนค่า: this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTag#equals(Object)
- Origin:
common - Source:
net/minecraft/nbt/StringTag.java:96 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
คืนค่า: this == object ? true : object instanceof StringTag && Objects.equals(this.data, ((StringTag)object).data).
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTag#getAsString()
- Origin:
common - Source:
net/minecraft/nbt/StringTag.java:106 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า As String
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTag#getId()
- Origin:
common - Source:
net/minecraft/nbt/StringTag.java:77 - Modifiers:
public - Return:
byte
คืออะไร
อ่านค่า Id
ทำงานยังไง
คืนค่า: 8.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTag#getType()
- Origin:
common - Source:
net/minecraft/nbt/StringTag.java:82 - Modifiers:
public - Return:
TagType<StringTag>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: TYPE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTag#hashCode()
- Origin:
common - Source:
net/minecraft/nbt/StringTag.java:101 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ hashCode ตาม implementation ของ StringTag
ทำงานยังไง
คืนค่า: this.data.hashCode().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTag#quoteAndEscape(String)
- Origin:
common - Source:
net/minecraft/nbt/StringTag.java:116 - Modifiers:
public static - Return:
String
คืออะไร
ดำเนินการ quoteAndEscape ตาม implementation ของ StringTag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: length(), charAt(), append(), setCharAt(), toString(). สร้างออบเจ็กต์: StringBuilder. คืนค่า: stringBuilder.toString().
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTag#sizeInBytes()
- Origin:
common - Source:
net/minecraft/nbt/StringTag.java:72 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ sizeInBytes ตาม implementation ของ StringTag
ทำงานยังไง
เรียกต่อ: length(). คืนค่า: 36 + 2 * this.data.length().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTag#skipString(DataInput)
- Origin:
common - Source:
net/minecraft/nbt/StringTag.java:54 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ skipString ตาม implementation ของ StringTag
ทำงานยังไง
เรียกต่อ: skipBytes(), readUnsignedShort().
Parameters
DataInput dataInput
Throws
IOException
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTag#toString()
- Origin:
common - Source:
net/minecraft/nbt/StringTag.java:87 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ StringTag
ทำงานยังไง
เรียกต่อ: getAsString(). คืนค่า: Tag.super.getAsString().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTag#valueOf(String)
- Origin:
common - Source:
net/minecraft/nbt/StringTag.java:63 - Modifiers:
public static - Return:
StringTag
คืออะไร
ดำเนินการ valueOf ตาม implementation ของ StringTag
ทำงานยังไง
เรียกต่อ: isEmpty(). สร้างออบเจ็กต์: StringTag. คืนค่า: string.isEmpty() ? EMPTY : new StringTag(string).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTag#write(DataOutput)
- Origin:
common - Source:
net/minecraft/nbt/StringTag.java:67 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
เรียกต่อ: writeUTF().
Parameters
DataOutput dataOutput
Throws
IOException
ตัวอย่างใช้งาน
StringTagVisitor
- Full name:
net.minecraft.nbt.StringTagVisitor - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/StringTagVisitor.java - Type:
class - Modifiers:
public - Implements:
TagVisitor
net.minecraft.nbt.StringTagVisitor#handleEscape(String)
- Origin:
common - Source:
net/minecraft/nbt/StringTagVisitor.java:132 - Modifiers:
protected static - Return:
String
คืออะไร
จัดการ Escape
ทำงานยังไง
เรียกต่อ: matcher(), matches(), quoteAndEscape(). คืนค่า: SIMPLE_VALUE.matcher(string).matches() ? string : StringTag.quoteAndEscape(string).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTagVisitor#visit(Tag)
- Origin:
common - Source:
net/minecraft/nbt/StringTagVisitor.java:12 - Modifiers:
public - Return:
String
คืออะไร
เยี่ยมชม node visit
ทำงานยังไง
เรียกต่อ: accept(), toString(). คืนค่า: this.builder.toString().
Parameters
Tag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTagVisitor#visitByte(ByteTag)
- Origin:
common - Source:
net/minecraft/nbt/StringTagVisitor.java:22 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Byte
ทำงานยังไง
เรียกต่อ: append(), getAsNumber().
Parameters
ByteTag byteTag
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTagVisitor#visitByteArray(ByteArrayTag)
- Origin:
common - Source:
net/minecraft/nbt/StringTagVisitor.java:52 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Byte Array
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: append(), getAsByteArray().
Parameters
ByteArrayTag byteArrayTag
ตัวอย่างใช้งาน
StringTagVisitor instance = ...;
ByteArrayTag byteArrayTag = ...;
instance.visitByteArray(byteArrayTag);
net.minecraft.nbt.StringTagVisitor#visitCompound(CompoundTag)
- Origin:
common - Source:
net/minecraft/nbt/StringTagVisitor.java:115 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Compound
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: append(), newArrayList(), getAllKeys(), sort(), length(), handleEscape(), visit(), get(). สร้างออบเจ็กต์: StringTagVisitor.
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
StringTagVisitor instance = ...;
CompoundTag compoundTag = ...;
instance.visitCompound(compoundTag);
net.minecraft.nbt.StringTagVisitor#visitDouble(DoubleTag)
- Origin:
common - Source:
net/minecraft/nbt/StringTagVisitor.java:47 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Double
ทำงานยังไง
เรียกต่อ: append(), getAsDouble().
Parameters
DoubleTag doubleTag
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTagVisitor#visitEnd(EndTag)
- Origin:
common - Source:
net/minecraft/nbt/StringTagVisitor.java:136 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node End
ทำงานยังไง
เรียกต่อ: append().
Parameters
EndTag endTag
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTagVisitor#visitFloat(FloatTag)
- Origin:
common - Source:
net/minecraft/nbt/StringTagVisitor.java:42 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Float
ทำงานยังไง
เรียกต่อ: append(), getAsFloat().
Parameters
FloatTag floatTag
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTagVisitor#visitInt(IntTag)
- Origin:
common - Source:
net/minecraft/nbt/StringTagVisitor.java:32 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Int
ทำงานยังไง
เรียกต่อ: append(), getAsNumber().
Parameters
IntTag intTag
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTagVisitor#visitIntArray(IntArrayTag)
- Origin:
common - Source:
net/minecraft/nbt/StringTagVisitor.java:68 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Int Array
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: append(), getAsIntArray().
Parameters
IntArrayTag intArrayTag
ตัวอย่างใช้งาน
StringTagVisitor instance = ...;
IntArrayTag intArrayTag = ...;
instance.visitIntArray(intArrayTag);
net.minecraft.nbt.StringTagVisitor#visitList(ListTag)
- Origin:
common - Source:
net/minecraft/nbt/StringTagVisitor.java:100 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node List
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: append(), size(), visit(), get(). สร้างออบเจ็กต์: StringTagVisitor.
Parameters
ListTag listTag
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTagVisitor#visitLong(LongTag)
- Origin:
common - Source:
net/minecraft/nbt/StringTagVisitor.java:37 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Long
ทำงานยังไง
เรียกต่อ: append(), getAsNumber().
Parameters
LongTag longTag
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTagVisitor#visitLongArray(LongArrayTag)
- Origin:
common - Source:
net/minecraft/nbt/StringTagVisitor.java:84 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Long Array
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: append(), getAsLongArray().
Parameters
LongArrayTag longArrayTag
ตัวอย่างใช้งาน
StringTagVisitor instance = ...;
LongArrayTag longArrayTag = ...;
instance.visitLongArray(longArrayTag);
net.minecraft.nbt.StringTagVisitor#visitShort(ShortTag)
- Origin:
common - Source:
net/minecraft/nbt/StringTagVisitor.java:27 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Short
ทำงานยังไง
เรียกต่อ: append(), getAsNumber().
Parameters
ShortTag shortTag
ตัวอย่างใช้งาน
net.minecraft.nbt.StringTagVisitor#visitString(StringTag)
- Origin:
common - Source:
net/minecraft/nbt/StringTagVisitor.java:17 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node String
ทำงานยังไง
เรียกต่อ: append(), quoteAndEscape(), getAsString().
Parameters
StringTag stringTag
ตัวอย่างใช้งาน
Tag
- Full name:
net.minecraft.nbt.Tag - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/Tag.java - Type:
interface - Modifiers:
public
net.minecraft.nbt.Tag#accept(StreamTagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/Tag.java:46 - Modifiers: ``
- Return:
StreamTagVisitor.ValueResult
คืออะไร
รับค่า accept
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
StreamTagVisitor streamTagVisitor
ตัวอย่างใช้งาน
Tag instance = ...;
StreamTagVisitor streamTagVisitor = ...;
StreamTagVisitor.ValueResult result = instance.accept(streamTagVisitor);
net.minecraft.nbt.Tag#accept(TagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/Tag.java:44 - Modifiers: ``
- Return:
void
คืออะไร
รับค่า accept
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
TagVisitor tagVisitor
ตัวอย่างใช้งาน
net.minecraft.nbt.Tag#acceptAsRoot(StreamTagVisitor)
- Origin:
common - Source:
net/minecraft/nbt/Tag.java:48 - Modifiers:
default - Return:
void
คืออะไร
รับค่า As Root
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: visitRootEntry(), getType(), accept().
Parameters
StreamTagVisitor streamTagVisitor
ตัวอย่างใช้งาน
Tag instance = ...;
StreamTagVisitor streamTagVisitor = ...;
instance.acceptAsRoot(streamTagVisitor);
net.minecraft.nbt.Tag#copy()
- Origin:
common - Source:
net/minecraft/nbt/Tag.java:36 - Modifiers: ``
- Return:
Tag
คืออะไร
คัดลอก copy
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.Tag#getAsString()
- Origin:
common - Source:
net/minecraft/nbt/Tag.java:40 - Modifiers:
default - Return:
String
คืออะไร
อ่านค่า As String
ทำงานยังไง
เรียกต่อ: visit(). สร้างออบเจ็กต์: StringTagVisitor. คืนค่า: new StringTagVisitor().visit(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.Tag#getId()
- Origin:
common - Source:
net/minecraft/nbt/Tag.java:32 - Modifiers: ``
- Return:
byte
คืออะไร
อ่านค่า Id
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.Tag#getType()
- Origin:
common - Source:
net/minecraft/nbt/Tag.java:34 - Modifiers: ``
- Return:
TagType<?>
คืออะไร
อ่านค่า Type
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.Tag#sizeInBytes()
- Origin:
common - Source:
net/minecraft/nbt/Tag.java:38 - Modifiers: ``
- Return:
int
คืออะไร
ดำเนินการ sizeInBytes ตาม implementation ของ Tag
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.Tag#toString()
- Origin:
common - Source:
net/minecraft/nbt/Tag.java:29 - Modifiers: ``
- Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ Tag
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.Tag#write(DataOutput)
- Origin:
common - Source:
net/minecraft/nbt/Tag.java:27 - Modifiers: ``
- Return:
void
คืออะไร
เขียน write
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
DataOutput dataOutput
Throws
IOException
ตัวอย่างใช้งาน
TagParser
- Full name:
net.minecraft.nbt.TagParser - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/TagParser.java - Type:
class - Modifiers:
public
net.minecraft.nbt.TagParser#parseTag(String)
- Origin:
common - Source:
net/minecraft/nbt/TagParser.java:53 - Modifiers:
public static - Return:
CompoundTag
คืออะไร
แปลง/วิเคราะห์ข้อมูล Tag
ทำงานยังไง
เรียกต่อ: readSingleStruct(). สร้างออบเจ็กต์: TagParser, StringReader. คืนค่า: new TagParser(new StringReader(string)).readSingleStruct().
Parameters
String string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
net.minecraft.nbt.TagParser#readKey()
- Origin:
common - Source:
net/minecraft/nbt/TagParser.java:72 - Modifiers:
protected - Return:
String
คืออะไร
อ่าน Key
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: skipWhitespace(), canRead(), createWithContext(), readString(). คืนค่า: this.reader.readString().
Parameters
- ไม่มี
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
net.minecraft.nbt.TagParser#readList()
- Origin:
common - Source:
net/minecraft/nbt/TagParser.java:154 - Modifiers:
protected - Return:
Tag
คืออะไร
อ่าน List
ทำงานยังไง
เรียกต่อ: canRead(), isQuotedStringStart(), peek(), readArrayTag(), readListTag(). คืนค่า: this.reader.canRead(3) && !StringReader.isQuotedStringStart(this.reader.peek(1)) && this.reader.peek(2) == '.
Parameters
- ไม่มี
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
net.minecraft.nbt.TagParser#readStruct()
- Origin:
common - Source:
net/minecraft/nbt/TagParser.java:160 - Modifiers:
public - Return:
CompoundTag
คืออะไร
อ่าน Struct
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: expect(), skipWhitespace(), canRead(), peek(), getCursor(), readKey(), isEmpty(), setCursor(). สร้างออบเจ็กต์: CompoundTag. คืนค่า: compoundTag.
Parameters
- ไม่มี
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
net.minecraft.nbt.TagParser#readTypedValue()
- Origin:
common - Source:
net/minecraft/nbt/TagParser.java:81 - Modifiers:
protected - Return:
Tag
คืออะไร
อ่าน Typed Value
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: skipWhitespace(), getCursor(), isQuotedStringStart(), peek(), valueOf(), readQuotedString(), readUnquotedString(), isEmpty(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
net.minecraft.nbt.TagParser#readValue()
- Origin:
common - Source:
net/minecraft/nbt/TagParser.java:140 - Modifiers:
public - Return:
Tag
คืออะไร
อ่าน Value
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: skipWhitespace(), canRead(), createWithContext(), peek(), readStruct(), readList(), readTypedValue(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
net.minecraft.nbt.TagParser#TagParser(StringReader)
- Origin:
common - Source:
net/minecraft/nbt/TagParser.java:68 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TagParser ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: reader.
Parameters
StringReader stringReader
ตัวอย่างใช้งาน
TagType
- Full name:
net.minecraft.nbt.TagType - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/TagType.java - Type:
interface - Modifiers:
public
net.minecraft.nbt.TagType#createInvalid(int)
- Origin:
common - Source:
net/minecraft/nbt/TagType.java:35 - Modifiers:
static - Return:
TagType<EndTag>
คืออะไร
สร้าง Invalid
ทำงานยังไง
เรียกต่อ: createException(), load(), parse(), skip(), getName(), getPrettyName(). สร้างออบเจ็กต์: TagType<EndTag>, IOException. มีจุด return อย่างน้อย 3 จุด.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.nbt.TagType#getName()
- Origin:
common - Source:
net/minecraft/nbt/TagType.java:31 - Modifiers: ``
- Return:
String
คืออะไร
อ่านค่า Name
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.TagType#getPrettyName()
- Origin:
common - Source:
net/minecraft/nbt/TagType.java:33 - Modifiers: ``
- Return:
String
คืออะไร
อ่านค่า Pretty Name
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.TagType#isValue()
- Origin:
common - Source:
net/minecraft/nbt/TagType.java:27 - Modifiers:
default - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Value
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.nbt.TagType#load(DataInput,NbtAccounter)
- Origin:
common - Source:
net/minecraft/nbt/TagType.java:7 - Modifiers: ``
- Return:
T
คืออะไร
โหลด load
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
DataInput dataInputNbtAccounter nbtAccounter
Throws
IOException
ตัวอย่างใช้งาน
TagType instance = ...;
DataInput dataInput = ...;
NbtAccounter nbtAccounter = ...;
T result = instance.load(dataInput, nbtAccounter);
net.minecraft.nbt.TagType#parse(DataInput,StreamTagVisitor,NbtAccounter)
- Origin:
common - Source:
net/minecraft/nbt/TagType.java:9 - Modifiers: ``
- Return:
StreamTagVisitor.ValueResult
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
DataInput dataInputStreamTagVisitor streamTagVisitorNbtAccounter nbtAccounter
Throws
IOException
ตัวอย่างใช้งาน
TagType instance = ...;
DataInput dataInput = ...;
StreamTagVisitor streamTagVisitor = ...;
NbtAccounter nbtAccounter = ...;
StreamTagVisitor.ValueResult result = instance.parse(dataInput, streamTagVisitor, nbtAccounter);
net.minecraft.nbt.TagType#parseRoot(DataInput,StreamTagVisitor,NbtAccounter)
- Origin:
common - Source:
net/minecraft/nbt/TagType.java:11 - Modifiers:
default - Return:
void
คืออะไร
แปลง/วิเคราะห์ข้อมูล Root
ทำงานยังไง
แยกกรณีด้วย switch. เรียกต่อ: visitRootEntry(), parse(), skip().
Parameters
DataInput dataInputStreamTagVisitor streamTagVisitorNbtAccounter nbtAccounter
Throws
IOException
ตัวอย่างใช้งาน
TagType instance = ...;
DataInput dataInput = ...;
StreamTagVisitor streamTagVisitor = ...;
NbtAccounter nbtAccounter = ...;
instance.parseRoot(dataInput, streamTagVisitor, nbtAccounter);
net.minecraft.nbt.TagType#skip(DataInput,int,NbtAccounter)
- Origin:
common - Source:
net/minecraft/nbt/TagType.java:23 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ skip ตาม implementation ของ TagType
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
DataInput dataInputint iNbtAccounter nbtAccounter
Throws
IOException
ตัวอย่างใช้งาน
TagType instance = ...;
DataInput dataInput = ...;
NbtAccounter nbtAccounter = ...;
instance.skip(dataInput, 0, nbtAccounter);
net.minecraft.nbt.TagType#skip(DataInput,NbtAccounter)
- Origin:
common - Source:
net/minecraft/nbt/TagType.java:25 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ skip ตาม implementation ของ TagType
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
DataInput dataInputNbtAccounter nbtAccounter
Throws
IOException
ตัวอย่างใช้งาน
TagType instance = ...;
DataInput dataInput = ...;
NbtAccounter nbtAccounter = ...;
instance.skip(dataInput, nbtAccounter);
TagTypes
- Full name:
net.minecraft.nbt.TagTypes - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/TagTypes.java - Type:
class - Modifiers:
public
net.minecraft.nbt.TagTypes#getType(int)
- Origin:
common - Source:
net/minecraft/nbt/TagTypes.java:20 - Modifiers:
public static - Return:
TagType<?>
คืออะไร
อ่านค่า Type
ทำงานยังไง
เรียกต่อ: createInvalid(). คืนค่า: i >= 0 && i < TYPES.length ? TYPES[i] : TagType.createInvalid(i).
Parameters
int i
ตัวอย่างใช้งาน
TagVisitor
- Full name:
net.minecraft.nbt.TagVisitor - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/TagVisitor.java - Type:
interface - Modifiers:
public
net.minecraft.nbt.TagVisitor#visitByte(ByteTag)
- Origin:
common - Source:
net/minecraft/nbt/TagVisitor.java:6 - Modifiers: ``
- Return:
void
คืออะไร
เยี่ยมชม node Byte
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ByteTag byteTag
ตัวอย่างใช้งาน
net.minecraft.nbt.TagVisitor#visitByteArray(ByteArrayTag)
- Origin:
common - Source:
net/minecraft/nbt/TagVisitor.java:18 - Modifiers: ``
- Return:
void
คืออะไร
เยี่ยมชม node Byte Array
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ByteArrayTag byteArrayTag
ตัวอย่างใช้งาน
net.minecraft.nbt.TagVisitor#visitCompound(CompoundTag)
- Origin:
common - Source:
net/minecraft/nbt/TagVisitor.java:26 - Modifiers: ``
- Return:
void
คืออะไร
เยี่ยมชม node Compound
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
net.minecraft.nbt.TagVisitor#visitDouble(DoubleTag)
- Origin:
common - Source:
net/minecraft/nbt/TagVisitor.java:16 - Modifiers: ``
- Return:
void
คืออะไร
เยี่ยมชม node Double
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
DoubleTag doubleTag
ตัวอย่างใช้งาน
net.minecraft.nbt.TagVisitor#visitEnd(EndTag)
- Origin:
common - Source:
net/minecraft/nbt/TagVisitor.java:28 - Modifiers: ``
- Return:
void
คืออะไร
เยี่ยมชม node End
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
EndTag endTag
ตัวอย่างใช้งาน
net.minecraft.nbt.TagVisitor#visitFloat(FloatTag)
- Origin:
common - Source:
net/minecraft/nbt/TagVisitor.java:14 - Modifiers: ``
- Return:
void
คืออะไร
เยี่ยมชม node Float
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
FloatTag floatTag
ตัวอย่างใช้งาน
net.minecraft.nbt.TagVisitor#visitInt(IntTag)
- Origin:
common - Source:
net/minecraft/nbt/TagVisitor.java:10 - Modifiers: ``
- Return:
void
คืออะไร
เยี่ยมชม node Int
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
IntTag intTag
ตัวอย่างใช้งาน
net.minecraft.nbt.TagVisitor#visitIntArray(IntArrayTag)
- Origin:
common - Source:
net/minecraft/nbt/TagVisitor.java:20 - Modifiers: ``
- Return:
void
คืออะไร
เยี่ยมชม node Int Array
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
IntArrayTag intArrayTag
ตัวอย่างใช้งาน
net.minecraft.nbt.TagVisitor#visitList(ListTag)
- Origin:
common - Source:
net/minecraft/nbt/TagVisitor.java:24 - Modifiers: ``
- Return:
void
คืออะไร
เยี่ยมชม node List
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ListTag listTag
ตัวอย่างใช้งาน
net.minecraft.nbt.TagVisitor#visitLong(LongTag)
- Origin:
common - Source:
net/minecraft/nbt/TagVisitor.java:12 - Modifiers: ``
- Return:
void
คืออะไร
เยี่ยมชม node Long
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
LongTag longTag
ตัวอย่างใช้งาน
net.minecraft.nbt.TagVisitor#visitLongArray(LongArrayTag)
- Origin:
common - Source:
net/minecraft/nbt/TagVisitor.java:22 - Modifiers: ``
- Return:
void
คืออะไร
เยี่ยมชม node Long Array
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
LongArrayTag longArrayTag
ตัวอย่างใช้งาน
net.minecraft.nbt.TagVisitor#visitShort(ShortTag)
- Origin:
common - Source:
net/minecraft/nbt/TagVisitor.java:8 - Modifiers: ``
- Return:
void
คืออะไร
เยี่ยมชม node Short
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ShortTag shortTag
ตัวอย่างใช้งาน
net.minecraft.nbt.TagVisitor#visitString(StringTag)
- Origin:
common - Source:
net/minecraft/nbt/TagVisitor.java:4 - Modifiers: ``
- Return:
void
คืออะไร
เยี่ยมชม node String
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
StringTag stringTag
ตัวอย่างใช้งาน
TextComponentTagVisitor
- Full name:
net.minecraft.nbt.TextComponentTagVisitor - Package:
net.minecraft.nbt - Source:
common—net/minecraft/nbt/TextComponentTagVisitor.java - Type:
class - Modifiers:
public - Implements:
TagVisitor
net.minecraft.nbt.TextComponentTagVisitor#handleEscapePretty(String)
- Origin:
common - Source:
net/minecraft/nbt/TextComponentTagVisitor.java:263 - Modifiers:
protected static - Return:
Component
คืออะไร
จัดการ Escape Pretty
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: matcher(), matches(), literal(), withStyle(), quoteAndEscape(), substring(), length(), append(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
@Override
protected Component handleEscapePretty(String string) {
return super.handleEscapePretty(string);
}
net.minecraft.nbt.TextComponentTagVisitor#TextComponentTagVisitor(String)
- Origin:
common - Source:
net/minecraft/nbt/TextComponentTagVisitor.java:54 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TextComponentTagVisitor ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: indentation.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.nbt.TextComponentTagVisitor#visit(Tag)
- Origin:
common - Source:
net/minecraft/nbt/TextComponentTagVisitor.java:58 - Modifiers:
public - Return:
Component
คืออะไร
เยี่ยมชม node visit
ทำงานยังไง
เรียกต่อ: accept(). คืนค่า: this.result.
Parameters
Tag tag
ตัวอย่างใช้งาน
net.minecraft.nbt.TextComponentTagVisitor#visitByte(ByteTag)
- Origin:
common - Source:
net/minecraft/nbt/TextComponentTagVisitor.java:71 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Byte
ทำงานยังไง
เรียกต่อ: append(), literal(), valueOf(), getAsNumber(), withStyle().
Parameters
ByteTag byteTag
ตัวอย่างใช้งาน
net.minecraft.nbt.TextComponentTagVisitor#visitByteArray(ByteArrayTag)
- Origin:
common - Source:
net/minecraft/nbt/TextComponentTagVisitor.java:101 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Byte Array
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: append(), getAsByteArray(), literal(), valueOf(), withStyle().
Parameters
ByteArrayTag byteArrayTag
ตัวอย่างใช้งาน
TextComponentTagVisitor instance = ...;
ByteArrayTag byteArrayTag = ...;
instance.visitByteArray(byteArrayTag);
net.minecraft.nbt.TextComponentTagVisitor#visitCompound(CompoundTag)
- Origin:
common - Source:
net/minecraft/nbt/TextComponentTagVisitor.java:206 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Compound
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isEmpty(), append(), getAllKeys(), isDebugEnabled(), newArrayList(), sort(), repeat(), iterator().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
TextComponentTagVisitor instance = ...;
CompoundTag compoundTag = ...;
instance.visitCompound(compoundTag);
net.minecraft.nbt.TextComponentTagVisitor#visitDouble(DoubleTag)
- Origin:
common - Source:
net/minecraft/nbt/TextComponentTagVisitor.java:96 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Double
ทำงานยังไง
เรียกต่อ: append(), literal(), valueOf(), getAsDouble(), withStyle().
Parameters
DoubleTag doubleTag
ตัวอย่างใช้งาน
net.minecraft.nbt.TextComponentTagVisitor#visitEnd(EndTag)
- Origin:
common - Source:
net/minecraft/nbt/TextComponentTagVisitor.java:274 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node End
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EndTag endTag
ตัวอย่างใช้งาน
net.minecraft.nbt.TextComponentTagVisitor#visitFloat(FloatTag)
- Origin:
common - Source:
net/minecraft/nbt/TextComponentTagVisitor.java:91 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Float
ทำงานยังไง
เรียกต่อ: append(), literal(), valueOf(), getAsFloat(), withStyle().
Parameters
FloatTag floatTag
ตัวอย่างใช้งาน
net.minecraft.nbt.TextComponentTagVisitor#visitInt(IntTag)
- Origin:
common - Source:
net/minecraft/nbt/TextComponentTagVisitor.java:81 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Int
ทำงานยังไง
เรียกต่อ: append(), literal(), valueOf(), getAsNumber(), withStyle().
Parameters
IntTag intTag
ตัวอย่างใช้งาน
net.minecraft.nbt.TextComponentTagVisitor#visitIntArray(IntArrayTag)
- Origin:
common - Source:
net/minecraft/nbt/TextComponentTagVisitor.java:121 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Int Array
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: append(), getAsIntArray(), literal(), valueOf(), withStyle().
Parameters
IntArrayTag intArrayTag
ตัวอย่างใช้งาน
TextComponentTagVisitor instance = ...;
IntArrayTag intArrayTag = ...;
instance.visitIntArray(intArrayTag);
net.minecraft.nbt.TextComponentTagVisitor#visitList(ListTag)
- Origin:
common - Source:
net/minecraft/nbt/TextComponentTagVisitor.java:160 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node List
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isEmpty(), append(), contains(), getElementType(), size(), appendSubTag(), get(), repeat().
Parameters
ListTag listTag
ตัวอย่างใช้งาน
net.minecraft.nbt.TextComponentTagVisitor#visitLong(LongTag)
- Origin:
common - Source:
net/minecraft/nbt/TextComponentTagVisitor.java:86 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Long
ทำงานยังไง
เรียกต่อ: append(), literal(), valueOf(), getAsNumber(), withStyle().
Parameters
LongTag longTag
ตัวอย่างใช้งาน
net.minecraft.nbt.TextComponentTagVisitor#visitLongArray(LongArrayTag)
- Origin:
common - Source:
net/minecraft/nbt/TextComponentTagVisitor.java:140 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Long Array
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: append(), getAsLongArray(), literal(), valueOf(), withStyle().
Parameters
LongArrayTag longArrayTag
ตัวอย่างใช้งาน
TextComponentTagVisitor instance = ...;
LongArrayTag longArrayTag = ...;
instance.visitLongArray(longArrayTag);
net.minecraft.nbt.TextComponentTagVisitor#visitShort(ShortTag)
- Origin:
common - Source:
net/minecraft/nbt/TextComponentTagVisitor.java:76 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node Short
ทำงานยังไง
เรียกต่อ: append(), literal(), valueOf(), getAsNumber(), withStyle().
Parameters
ShortTag shortTag
ตัวอย่างใช้งาน
net.minecraft.nbt.TextComponentTagVisitor#visitString(StringTag)
- Origin:
common - Source:
net/minecraft/nbt/TextComponentTagVisitor.java:63 - Modifiers:
public - Return:
void
คืออะไร
เยี่ยมชม node String
ทำงานยังไง
เรียกต่อ: quoteAndEscape(), getAsString(), substring(), literal(), length(), withStyle(), append().
Parameters
StringTag stringTag