Package net.minecraft.commands.synchronization.brigadier
Part 1/1
DoubleArgumentInfo
- Full name:
net.minecraft.commands.synchronization.brigadier.DoubleArgumentInfo - Package:
net.minecraft.commands.synchronization.brigadier - Source:
common—net/minecraft/commands/synchronization/brigadier/DoubleArgumentInfo.java - Type:
class - Modifiers:
public - Implements:
ArgumentTypeInfo<DoubleArgumentType, DoubleArgumentInfo.Template>
net.minecraft.commands.synchronization.brigadier.DoubleArgumentInfo#deserializeFromNetwork(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/DoubleArgumentInfo.java:24 - Modifiers:
public - Return:
DoubleArgumentInfo.Template
คืออะไร
สร้างออบเจ็กต์กลับจากข้อมูล From Network
ทำงานยังไง
เรียกต่อ: readByte(), numberHasMin(), readDouble(), numberHasMax(), Template(). สร้างออบเจ็กต์: DoubleArgumentInfo.Template. คืนค่า: new DoubleArgumentInfo.Template(d, e).
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
DoubleArgumentInfo instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
DoubleArgumentInfo.Template result = instance.deserializeFromNetwork(friendlyByteBuf);
net.minecraft.commands.synchronization.brigadier.DoubleArgumentInfo#serializeToJson(DoubleArgumentInfo.Template,JsonObject)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/DoubleArgumentInfo.java:31 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Json
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: addProperty().
Parameters
DoubleArgumentInfo.Template templateJsonObject jsonObject
ตัวอย่างใช้งาน
DoubleArgumentInfo instance = ...;
DoubleArgumentInfo.Template template = ...;
JsonObject jsonObject = ...;
instance.serializeToJson(template, jsonObject);
net.minecraft.commands.synchronization.brigadier.DoubleArgumentInfo#serializeToNetwork(DoubleArgumentInfo.Template,FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/DoubleArgumentInfo.java:11 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Network
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: writeByte(), createNumberFlags(), writeDouble().
Parameters
DoubleArgumentInfo.Template templateFriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
DoubleArgumentInfo instance = ...;
DoubleArgumentInfo.Template template = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.serializeToNetwork(template, friendlyByteBuf);
net.minecraft.commands.synchronization.brigadier.DoubleArgumentInfo#unpack(DoubleArgumentType)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/DoubleArgumentInfo.java:41 - Modifiers:
public - Return:
DoubleArgumentInfo.Template
คืออะไร
ดำเนินการ unpack ตาม implementation ของ DoubleArgumentInfo
ทำงานยังไง
เรียกต่อ: Template(), getMinimum(), getMaximum(). สร้างออบเจ็กต์: DoubleArgumentInfo.Template. คืนค่า: new DoubleArgumentInfo.Template(doubleArgumentType.getMinimum(), doubleArgumentType.getMaximum()).
Parameters
DoubleArgumentType doubleArgumentType
ตัวอย่างใช้งาน
DoubleArgumentInfo instance = ...;
DoubleArgumentType doubleArgumentType = ...;
DoubleArgumentInfo.Template result = instance.unpack(doubleArgumentType);
DoubleArgumentInfo$Template
- Full name:
net.minecraft.commands.synchronization.brigadier.DoubleArgumentInfo$Template - Package:
net.minecraft.commands.synchronization.brigadier - Source:
common—net/minecraft/commands/synchronization/brigadier/DoubleArgumentInfo.java - Type:
class - Modifiers:
public final - Implements:
ArgumentTypeInfo.Template<DoubleArgumentType>
net.minecraft.commands.synchronization.brigadier.DoubleArgumentInfo$Template#instantiate(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/DoubleArgumentInfo.java:54 - Modifiers:
public - Return:
DoubleArgumentType
คืออะไร
ดำเนินการ instantiate ตาม implementation ของ DoubleArgumentInfo$Template
ทำงานยังไง
เรียกต่อ: doubleArg(). คืนค่า: DoubleArgumentType.doubleArg(this.min, this.max).
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
DoubleArgumentInfo.Template instance = ...;
CommandBuildContext commandBuildContext = ...;
DoubleArgumentType result = instance.instantiate(commandBuildContext);
net.minecraft.commands.synchronization.brigadier.DoubleArgumentInfo$Template#type()
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/DoubleArgumentInfo.java:58 - Modifiers:
public - Return:
ArgumentTypeInfo<DoubleArgumentType, ?>
คืออะไร
ดำเนินการ type ตาม implementation ของ DoubleArgumentInfo$Template
ทำงานยังไง
คืนค่า: DoubleArgumentInfo.this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DoubleArgumentInfo.Template instance = ...;
ArgumentTypeInfo<DoubleArgumentType, ?> result = instance.type();
FloatArgumentInfo
- Full name:
net.minecraft.commands.synchronization.brigadier.FloatArgumentInfo - Package:
net.minecraft.commands.synchronization.brigadier - Source:
common—net/minecraft/commands/synchronization/brigadier/FloatArgumentInfo.java - Type:
class - Modifiers:
public - Implements:
ArgumentTypeInfo<FloatArgumentType, FloatArgumentInfo.Template>
net.minecraft.commands.synchronization.brigadier.FloatArgumentInfo#deserializeFromNetwork(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/FloatArgumentInfo.java:24 - Modifiers:
public - Return:
FloatArgumentInfo.Template
คืออะไร
สร้างออบเจ็กต์กลับจากข้อมูล From Network
ทำงานยังไง
เรียกต่อ: readByte(), numberHasMin(), readFloat(), numberHasMax(), Template(). สร้างออบเจ็กต์: FloatArgumentInfo.Template. คืนค่า: new FloatArgumentInfo.Template(f, g).
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
FloatArgumentInfo instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
FloatArgumentInfo.Template result = instance.deserializeFromNetwork(friendlyByteBuf);
net.minecraft.commands.synchronization.brigadier.FloatArgumentInfo#serializeToJson(FloatArgumentInfo.Template,JsonObject)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/FloatArgumentInfo.java:31 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Json
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: addProperty().
Parameters
FloatArgumentInfo.Template templateJsonObject jsonObject
ตัวอย่างใช้งาน
FloatArgumentInfo instance = ...;
FloatArgumentInfo.Template template = ...;
JsonObject jsonObject = ...;
instance.serializeToJson(template, jsonObject);
net.minecraft.commands.synchronization.brigadier.FloatArgumentInfo#serializeToNetwork(FloatArgumentInfo.Template,FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/FloatArgumentInfo.java:11 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Network
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: writeByte(), createNumberFlags(), writeFloat().
Parameters
FloatArgumentInfo.Template templateFriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
FloatArgumentInfo instance = ...;
FloatArgumentInfo.Template template = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.serializeToNetwork(template, friendlyByteBuf);
net.minecraft.commands.synchronization.brigadier.FloatArgumentInfo#unpack(FloatArgumentType)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/FloatArgumentInfo.java:41 - Modifiers:
public - Return:
FloatArgumentInfo.Template
คืออะไร
ดำเนินการ unpack ตาม implementation ของ FloatArgumentInfo
ทำงานยังไง
เรียกต่อ: Template(), getMinimum(), getMaximum(). สร้างออบเจ็กต์: FloatArgumentInfo.Template. คืนค่า: new FloatArgumentInfo.Template(floatArgumentType.getMinimum(), floatArgumentType.getMaximum()).
Parameters
FloatArgumentType floatArgumentType
ตัวอย่างใช้งาน
FloatArgumentInfo instance = ...;
FloatArgumentType floatArgumentType = ...;
FloatArgumentInfo.Template result = instance.unpack(floatArgumentType);
FloatArgumentInfo$Template
- Full name:
net.minecraft.commands.synchronization.brigadier.FloatArgumentInfo$Template - Package:
net.minecraft.commands.synchronization.brigadier - Source:
common—net/minecraft/commands/synchronization/brigadier/FloatArgumentInfo.java - Type:
class - Modifiers:
public final - Implements:
ArgumentTypeInfo.Template<FloatArgumentType>
net.minecraft.commands.synchronization.brigadier.FloatArgumentInfo$Template#instantiate(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/FloatArgumentInfo.java:54 - Modifiers:
public - Return:
FloatArgumentType
คืออะไร
ดำเนินการ instantiate ตาม implementation ของ FloatArgumentInfo$Template
ทำงานยังไง
เรียกต่อ: floatArg(). คืนค่า: FloatArgumentType.floatArg(this.min, this.max).
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
FloatArgumentInfo.Template instance = ...;
CommandBuildContext commandBuildContext = ...;
FloatArgumentType result = instance.instantiate(commandBuildContext);
net.minecraft.commands.synchronization.brigadier.FloatArgumentInfo$Template#type()
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/FloatArgumentInfo.java:58 - Modifiers:
public - Return:
ArgumentTypeInfo<FloatArgumentType, ?>
คืออะไร
ดำเนินการ type ตาม implementation ของ FloatArgumentInfo$Template
ทำงานยังไง
คืนค่า: FloatArgumentInfo.this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
FloatArgumentInfo.Template instance = ...;
ArgumentTypeInfo<FloatArgumentType, ?> result = instance.type();
IntegerArgumentInfo
- Full name:
net.minecraft.commands.synchronization.brigadier.IntegerArgumentInfo - Package:
net.minecraft.commands.synchronization.brigadier - Source:
common—net/minecraft/commands/synchronization/brigadier/IntegerArgumentInfo.java - Type:
class - Modifiers:
public - Implements:
ArgumentTypeInfo<IntegerArgumentType, IntegerArgumentInfo.Template>
net.minecraft.commands.synchronization.brigadier.IntegerArgumentInfo#deserializeFromNetwork(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/IntegerArgumentInfo.java:24 - Modifiers:
public - Return:
IntegerArgumentInfo.Template
คืออะไร
สร้างออบเจ็กต์กลับจากข้อมูล From Network
ทำงานยังไง
เรียกต่อ: readByte(), numberHasMin(), readInt(), numberHasMax(), Template(). สร้างออบเจ็กต์: IntegerArgumentInfo.Template. คืนค่า: new IntegerArgumentInfo.Template(i, j).
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
IntegerArgumentInfo instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
IntegerArgumentInfo.Template result = instance.deserializeFromNetwork(friendlyByteBuf);
net.minecraft.commands.synchronization.brigadier.IntegerArgumentInfo#serializeToJson(IntegerArgumentInfo.Template,JsonObject)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/IntegerArgumentInfo.java:31 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Json
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: addProperty().
Parameters
IntegerArgumentInfo.Template templateJsonObject jsonObject
ตัวอย่างใช้งาน
IntegerArgumentInfo instance = ...;
IntegerArgumentInfo.Template template = ...;
JsonObject jsonObject = ...;
instance.serializeToJson(template, jsonObject);
net.minecraft.commands.synchronization.brigadier.IntegerArgumentInfo#serializeToNetwork(IntegerArgumentInfo.Template,FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/IntegerArgumentInfo.java:11 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Network
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: writeByte(), createNumberFlags(), writeInt().
Parameters
IntegerArgumentInfo.Template templateFriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
IntegerArgumentInfo instance = ...;
IntegerArgumentInfo.Template template = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.serializeToNetwork(template, friendlyByteBuf);
net.minecraft.commands.synchronization.brigadier.IntegerArgumentInfo#unpack(IntegerArgumentType)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/IntegerArgumentInfo.java:41 - Modifiers:
public - Return:
IntegerArgumentInfo.Template
คืออะไร
ดำเนินการ unpack ตาม implementation ของ IntegerArgumentInfo
ทำงานยังไง
เรียกต่อ: Template(), getMinimum(), getMaximum(). สร้างออบเจ็กต์: IntegerArgumentInfo.Template. คืนค่า: new IntegerArgumentInfo.Template(integerArgumentType.getMinimum(), integerArgumentType.getMaximum()).
Parameters
IntegerArgumentType integerArgumentType
ตัวอย่างใช้งาน
IntegerArgumentInfo instance = ...;
IntegerArgumentType integerArgumentType = ...;
IntegerArgumentInfo.Template result = instance.unpack(integerArgumentType);
IntegerArgumentInfo$Template
- Full name:
net.minecraft.commands.synchronization.brigadier.IntegerArgumentInfo$Template - Package:
net.minecraft.commands.synchronization.brigadier - Source:
common—net/minecraft/commands/synchronization/brigadier/IntegerArgumentInfo.java - Type:
class - Modifiers:
public final - Implements:
ArgumentTypeInfo.Template<IntegerArgumentType>
net.minecraft.commands.synchronization.brigadier.IntegerArgumentInfo$Template#instantiate(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/IntegerArgumentInfo.java:54 - Modifiers:
public - Return:
IntegerArgumentType
คืออะไร
ดำเนินการ instantiate ตาม implementation ของ IntegerArgumentInfo$Template
ทำงานยังไง
เรียกต่อ: integer(). คืนค่า: IntegerArgumentType.integer(this.min, this.max).
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
IntegerArgumentInfo.Template instance = ...;
CommandBuildContext commandBuildContext = ...;
IntegerArgumentType result = instance.instantiate(commandBuildContext);
net.minecraft.commands.synchronization.brigadier.IntegerArgumentInfo$Template#type()
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/IntegerArgumentInfo.java:58 - Modifiers:
public - Return:
ArgumentTypeInfo<IntegerArgumentType, ?>
คืออะไร
ดำเนินการ type ตาม implementation ของ IntegerArgumentInfo$Template
ทำงานยังไง
คืนค่า: IntegerArgumentInfo.this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
IntegerArgumentInfo.Template instance = ...;
ArgumentTypeInfo<IntegerArgumentType, ?> result = instance.type();
LongArgumentInfo
- Full name:
net.minecraft.commands.synchronization.brigadier.LongArgumentInfo - Package:
net.minecraft.commands.synchronization.brigadier - Source:
common—net/minecraft/commands/synchronization/brigadier/LongArgumentInfo.java - Type:
class - Modifiers:
public - Implements:
ArgumentTypeInfo<LongArgumentType, LongArgumentInfo.Template>
net.minecraft.commands.synchronization.brigadier.LongArgumentInfo#deserializeFromNetwork(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/LongArgumentInfo.java:24 - Modifiers:
public - Return:
LongArgumentInfo.Template
คืออะไร
สร้างออบเจ็กต์กลับจากข้อมูล From Network
ทำงานยังไง
เรียกต่อ: readByte(), numberHasMin(), readLong(), numberHasMax(), Template(). สร้างออบเจ็กต์: LongArgumentInfo.Template. คืนค่า: new LongArgumentInfo.Template(l, m).
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
LongArgumentInfo instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
LongArgumentInfo.Template result = instance.deserializeFromNetwork(friendlyByteBuf);
net.minecraft.commands.synchronization.brigadier.LongArgumentInfo#serializeToJson(LongArgumentInfo.Template,JsonObject)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/LongArgumentInfo.java:31 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Json
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: addProperty().
Parameters
LongArgumentInfo.Template templateJsonObject jsonObject
ตัวอย่างใช้งาน
LongArgumentInfo instance = ...;
LongArgumentInfo.Template template = ...;
JsonObject jsonObject = ...;
instance.serializeToJson(template, jsonObject);
net.minecraft.commands.synchronization.brigadier.LongArgumentInfo#serializeToNetwork(LongArgumentInfo.Template,FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/LongArgumentInfo.java:11 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Network
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: writeByte(), createNumberFlags(), writeLong().
Parameters
LongArgumentInfo.Template templateFriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
LongArgumentInfo instance = ...;
LongArgumentInfo.Template template = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.serializeToNetwork(template, friendlyByteBuf);
net.minecraft.commands.synchronization.brigadier.LongArgumentInfo#unpack(LongArgumentType)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/LongArgumentInfo.java:41 - Modifiers:
public - Return:
LongArgumentInfo.Template
คืออะไร
ดำเนินการ unpack ตาม implementation ของ LongArgumentInfo
ทำงานยังไง
เรียกต่อ: Template(), getMinimum(), getMaximum(). สร้างออบเจ็กต์: LongArgumentInfo.Template. คืนค่า: new LongArgumentInfo.Template(longArgumentType.getMinimum(), longArgumentType.getMaximum()).
Parameters
LongArgumentType longArgumentType
ตัวอย่างใช้งาน
LongArgumentInfo instance = ...;
LongArgumentType longArgumentType = ...;
LongArgumentInfo.Template result = instance.unpack(longArgumentType);
LongArgumentInfo$Template
- Full name:
net.minecraft.commands.synchronization.brigadier.LongArgumentInfo$Template - Package:
net.minecraft.commands.synchronization.brigadier - Source:
common—net/minecraft/commands/synchronization/brigadier/LongArgumentInfo.java - Type:
class - Modifiers:
public final - Implements:
ArgumentTypeInfo.Template<LongArgumentType>
net.minecraft.commands.synchronization.brigadier.LongArgumentInfo$Template#instantiate(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/LongArgumentInfo.java:54 - Modifiers:
public - Return:
LongArgumentType
คืออะไร
ดำเนินการ instantiate ตาม implementation ของ LongArgumentInfo$Template
ทำงานยังไง
เรียกต่อ: longArg(). คืนค่า: LongArgumentType.longArg(this.min, this.max).
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
LongArgumentInfo.Template instance = ...;
CommandBuildContext commandBuildContext = ...;
LongArgumentType result = instance.instantiate(commandBuildContext);
net.minecraft.commands.synchronization.brigadier.LongArgumentInfo$Template#type()
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/LongArgumentInfo.java:58 - Modifiers:
public - Return:
ArgumentTypeInfo<LongArgumentType, ?>
คืออะไร
ดำเนินการ type ตาม implementation ของ LongArgumentInfo$Template
ทำงานยังไง
คืนค่า: LongArgumentInfo.this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LongArgumentInfo.Template instance = ...;
ArgumentTypeInfo<LongArgumentType, ?> result = instance.type();
StringArgumentSerializer
- Full name:
net.minecraft.commands.synchronization.brigadier.StringArgumentSerializer - Package:
net.minecraft.commands.synchronization.brigadier - Source:
common—net/minecraft/commands/synchronization/brigadier/StringArgumentSerializer.java - Type:
class - Modifiers:
public - Implements:
ArgumentTypeInfo<StringArgumentType, StringArgumentSerializer.Template>
net.minecraft.commands.synchronization.brigadier.StringArgumentSerializer#deserializeFromNetwork(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/StringArgumentSerializer.java:15 - Modifiers:
public - Return:
StringArgumentSerializer.Template
คืออะไร
สร้างออบเจ็กต์กลับจากข้อมูล From Network
ทำงานยังไง
เรียกต่อ: readEnum(), Template(). สร้างออบเจ็กต์: StringArgumentSerializer.Template. คืนค่า: new StringArgumentSerializer.Template(stringType).
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
StringArgumentSerializer instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
StringArgumentSerializer.Template result = instance.deserializeFromNetwork(friendlyByteBuf);
net.minecraft.commands.synchronization.brigadier.StringArgumentSerializer#serializeToJson(StringArgumentSerializer.Template,JsonObject)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/StringArgumentSerializer.java:20 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Json
ทำงานยังไง
แยกกรณีด้วย switch. เรียกต่อ: addProperty().
Parameters
StringArgumentSerializer.Template templateJsonObject jsonObject
ตัวอย่างใช้งาน
StringArgumentSerializer instance = ...;
StringArgumentSerializer.Template template = ...;
JsonObject jsonObject = ...;
instance.serializeToJson(template, jsonObject);
net.minecraft.commands.synchronization.brigadier.StringArgumentSerializer#serializeToNetwork(StringArgumentSerializer.Template,FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/StringArgumentSerializer.java:11 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Network
ทำงานยังไง
เรียกต่อ: writeEnum().
Parameters
StringArgumentSerializer.Template templateFriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
StringArgumentSerializer instance = ...;
StringArgumentSerializer.Template template = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.serializeToNetwork(template, friendlyByteBuf);
net.minecraft.commands.synchronization.brigadier.StringArgumentSerializer#unpack(StringArgumentType)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/StringArgumentSerializer.java:28 - Modifiers:
public - Return:
StringArgumentSerializer.Template
คืออะไร
ดำเนินการ unpack ตาม implementation ของ StringArgumentSerializer
ทำงานยังไง
เรียกต่อ: Template(), getType(). สร้างออบเจ็กต์: StringArgumentSerializer.Template. คืนค่า: new StringArgumentSerializer.Template(stringArgumentType.getType()).
Parameters
StringArgumentType stringArgumentType
ตัวอย่างใช้งาน
StringArgumentSerializer instance = ...;
StringArgumentType stringArgumentType = ...;
StringArgumentSerializer.Template result = instance.unpack(stringArgumentType);
StringArgumentSerializer$Template
- Full name:
net.minecraft.commands.synchronization.brigadier.StringArgumentSerializer$Template - Package:
net.minecraft.commands.synchronization.brigadier - Source:
common—net/minecraft/commands/synchronization/brigadier/StringArgumentSerializer.java - Type:
class - Modifiers:
public final - Implements:
ArgumentTypeInfo.Template<StringArgumentType>
net.minecraft.commands.synchronization.brigadier.StringArgumentSerializer$Template#instantiate(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/StringArgumentSerializer.java:39 - Modifiers:
public - Return:
StringArgumentType
คืออะไร
ดำเนินการ instantiate ตาม implementation ของ StringArgumentSerializer$Template
ทำงานยังไง
แยกกรณีด้วย switch. เรียกต่อ: word(), string(), greedyString(). คืนค่า: switch (this.type) { case SINGLE_WORD -> StringArgumentType.word().
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
StringArgumentSerializer.Template instance = ...;
CommandBuildContext commandBuildContext = ...;
StringArgumentType result = instance.instantiate(commandBuildContext);
net.minecraft.commands.synchronization.brigadier.StringArgumentSerializer$Template#Template(StringType)
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/StringArgumentSerializer.java:35 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ StringArgumentSerializer.Template ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: type.
Parameters
StringType stringType
ตัวอย่างใช้งาน
StringType stringType = ...;
StringArgumentSerializer.Template instance = new StringArgumentSerializer.Template(stringType);
net.minecraft.commands.synchronization.brigadier.StringArgumentSerializer$Template#type()
- Origin:
common - Source:
net/minecraft/commands/synchronization/brigadier/StringArgumentSerializer.java:47 - Modifiers:
public - Return:
ArgumentTypeInfo<StringArgumentType, ?>
คืออะไร
ดำเนินการ type ตาม implementation ของ StringArgumentSerializer$Template
ทำงานยังไง
คืนค่า: StringArgumentSerializer.this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
StringArgumentSerializer.Template instance = ...;
ArgumentTypeInfo<StringArgumentType, ?> result = instance.type();