Package net.minecraft.commands.arguments
Part 1/1
AngleArgument
- Full name:
net.minecraft.commands.arguments.AngleArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/AngleArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<AngleArgument.SingleAngle>
net.minecraft.commands.arguments.AngleArgument#angle()
- Origin:
common - Source:
net/minecraft/commands/arguments/AngleArgument.java:20 - Modifiers:
public static - Return:
AngleArgument
คืออะไร
ดำเนินการ angle ตาม implementation ของ AngleArgument
ทำงานยังไง
สร้างออบเจ็กต์: AngleArgument. คืนค่า: new AngleArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.AngleArgument#getAngle(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/AngleArgument.java:24 - Modifiers:
public static - Return:
float
คืออะไร
อ่านค่า Angle
ทำงานยังไง
เรียกต่อ: getArgument(), getSource(). คืนค่า: commandContext.getArgument(string, AngleArgument.SingleAngle.class).getAngle(commandContext.getSource()).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
float result = AngleArgument.getAngle(commandContext, "value");
net.minecraft.commands.arguments.AngleArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/AngleArgument.java:42 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.AngleArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/AngleArgument.java:28 - Modifiers:
public - Return:
AngleArgument.SingleAngle
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: canRead(), createWithContext(), isRelative(), peek(), readFloat(), isNaN(), isInfinite(), SingleAngle(). สร้างออบเจ็กต์: AngleArgument.SingleAngle. คืนค่า: new AngleArgument.SingleAngle(f, bl).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
AngleArgument instance = ...;
StringReader stringReader = ...;
AngleArgument.SingleAngle result = instance.parse(stringReader);
AngleArgument$SingleAngle
- Full name:
net.minecraft.commands.arguments.AngleArgument$SingleAngle - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/AngleArgument.java - Type:
class - Modifiers:
public static final
net.minecraft.commands.arguments.AngleArgument$SingleAngle#getAngle(CommandSourceStack)
- Origin:
common - Source:
net/minecraft/commands/arguments/AngleArgument.java:56 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Angle
ทำงานยังไง
เรียกต่อ: wrapDegrees(), getRotation(). คืนค่า: Mth.wrapDegrees(this.isRelative ? this.angle + commandSourceStack.getRotation().y : this.angle).
Parameters
CommandSourceStack commandSourceStack
ตัวอย่างใช้งาน
AngleArgument.SingleAngle instance = ...;
CommandSourceStack commandSourceStack = ...;
float result = instance.getAngle(commandSourceStack);
ArgumentSignatures
- Full name:
net.minecraft.commands.arguments.ArgumentSignatures - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ArgumentSignatures.java - Type:
record - Modifiers:
public
net.minecraft.commands.arguments.ArgumentSignatures#ArgumentSignatures(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/arguments/ArgumentSignatures.java:16 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ArgumentSignatures ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: readCollection(), limitValue().
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
FriendlyByteBuf friendlyByteBuf = ...;
ArgumentSignatures instance = new ArgumentSignatures(friendlyByteBuf);
net.minecraft.commands.arguments.ArgumentSignatures#signCommand(SignableCommand<?>,ArgumentSignatures.Signer)
- Origin:
common - Source:
net/minecraft/commands/arguments/ArgumentSignatures.java:24 - Modifiers:
public static - Return:
ArgumentSignatures
คืออะไร
ดำเนินการ signCommand ตาม implementation ของ ArgumentSignatures
ทำงานยังไง
เรียกต่อ: arguments(), stream(), map(), sign(), value(), Entry(), name(), filter(). สร้างออบเจ็กต์: ArgumentSignatures.Entry, ArgumentSignatures. มีจุด return อย่างน้อย 2 จุด.
Parameters
SignableCommand<?> signableCommandArgumentSignatures.Signer signer
ตัวอย่างใช้งาน
SignableCommand<?> signableCommand = ...;
ArgumentSignatures.Signer signer = ...;
ArgumentSignatures result = ArgumentSignatures.signCommand(signableCommand, signer);
net.minecraft.commands.arguments.ArgumentSignatures#write(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/arguments/ArgumentSignatures.java:20 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
เรียกต่อ: writeCollection().
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
ArgumentSignatures instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.write(friendlyByteBuf);
ArgumentSignatures$Entry
- Full name:
net.minecraft.commands.arguments.ArgumentSignatures$Entry - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ArgumentSignatures.java - Type:
record - Modifiers:
public
net.minecraft.commands.arguments.ArgumentSignatures$Entry#Entry(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/arguments/ArgumentSignatures.java:33 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ArgumentSignatures.Entry ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: readUtf(), read().
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
FriendlyByteBuf friendlyByteBuf = ...;
ArgumentSignatures.Entry instance = new ArgumentSignatures.Entry(friendlyByteBuf);
net.minecraft.commands.arguments.ArgumentSignatures$Entry#write(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/arguments/ArgumentSignatures.java:37 - Modifiers:
public - Return:
void
คืออะไร
เขียน write
ทำงานยังไง
เรียกต่อ: writeUtf().
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
ArgumentSignatures.Entry instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.write(friendlyByteBuf);
ArgumentSignatures$Signer
- Full name:
net.minecraft.commands.arguments.ArgumentSignatures$Signer - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ArgumentSignatures.java - Type:
interface - Modifiers:
public
net.minecraft.commands.arguments.ArgumentSignatures$Signer#sign(String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ArgumentSignatures.java:45 - Modifiers: ``
- Return:
MessageSignature
คืออะไร
ดำเนินการ sign ตาม implementation ของ ArgumentSignatures$Signer
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
String string
ตัวอย่างใช้งาน
ColorArgument
- Full name:
net.minecraft.commands.arguments.ColorArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ColorArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<ChatFormatting>
net.minecraft.commands.arguments.ColorArgument#color()
- Origin:
common - Source:
net/minecraft/commands/arguments/ColorArgument.java:27 - Modifiers:
public static - Return:
ColorArgument
คืออะไร
ดำเนินการ color ตาม implementation ของ ColorArgument
ทำงานยังไง
สร้างออบเจ็กต์: ColorArgument. คืนค่า: new ColorArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ColorArgument#getColor(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ColorArgument.java:31 - Modifiers:
public static - Return:
ChatFormatting
คืออะไร
อ่านค่า Color
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, ChatFormatting.class).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
ChatFormatting result = ColorArgument.getColor(commandContext, "value");
net.minecraft.commands.arguments.ColorArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/ColorArgument.java:50 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ColorArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/ColorArgument.java:45 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ ColorArgument
ทำงานยังไง
เรียกต่อ: suggest(), getNames(). คืนค่า: SharedSuggestionProvider.suggest(ChatFormatting.getNames(true, false), suggestionsBuilder).
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
ColorArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.ColorArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/ColorArgument.java:35 - Modifiers:
public - Return:
ChatFormatting
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: readUnquotedString(), getByName(), isFormat(), createWithContext(). คืนค่า: chatFormatting.
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
ColorArgument instance = ...;
StringReader stringReader = ...;
ChatFormatting result = instance.parse(stringReader);
ComponentArgument
- Full name:
net.minecraft.commands.arguments.ComponentArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ComponentArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<Component>
net.minecraft.commands.arguments.ComponentArgument#getComponent(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ComponentArgument.java:28 - Modifiers:
public static - Return:
Component
คืออะไร
อ่านค่า Component
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, Component.class).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Component result = ComponentArgument.getComponent(commandContext, "value");
net.minecraft.commands.arguments.ComponentArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/ComponentArgument.java:45 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ComponentArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/ComponentArgument.java:36 - Modifiers:
public - Return:
Component
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: parseJson(), getCause(), getMessage(), createWithContext(). คืนค่า: ParserUtils.parseJson(this.registries, stringReader, ComponentSerialization.CODEC).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
ComponentArgument instance = ...;
StringReader stringReader = ...;
Component result = instance.parse(stringReader);
net.minecraft.commands.arguments.ComponentArgument#textComponent(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/arguments/ComponentArgument.java:32 - Modifiers:
public static - Return:
ComponentArgument
คืออะไร
ดำเนินการ textComponent ตาม implementation ของ ComponentArgument
ทำงานยังไง
สร้างออบเจ็กต์: ComponentArgument. คืนค่า: new ComponentArgument(commandBuildContext).
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
CommandBuildContext commandBuildContext = ...;
ComponentArgument result = ComponentArgument.textComponent(commandBuildContext);
CompoundTagArgument
- Full name:
net.minecraft.commands.arguments.CompoundTagArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/CompoundTagArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<CompoundTag>
net.minecraft.commands.arguments.CompoundTagArgument#compoundTag()
- Origin:
common - Source:
net/minecraft/commands/arguments/CompoundTagArgument.java:18 - Modifiers:
public static - Return:
CompoundTagArgument
คืออะไร
ดำเนินการ compoundTag ตาม implementation ของ CompoundTagArgument
ทำงานยังไง
สร้างออบเจ็กต์: CompoundTagArgument. คืนค่า: new CompoundTagArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.CompoundTagArgument#getCompoundTag(CommandContext<S>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/CompoundTagArgument.java:22 - Modifiers:
public static - Return:
CompoundTag
คืออะไร
อ่านค่า Compound Tag
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, CompoundTag.class).
Parameters
CommandContext<S> commandContextString string
ตัวอย่างใช้งาน
CommandContext<S> commandContext = ...;
CompoundTag result = CompoundTagArgument.getCompoundTag(commandContext, "value");
net.minecraft.commands.arguments.CompoundTagArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/CompoundTagArgument.java:30 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.CompoundTagArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/CompoundTagArgument.java:26 - Modifiers:
public - Return:
CompoundTag
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
เรียกต่อ: readStruct(). สร้างออบเจ็กต์: TagParser. คืนค่า: new TagParser(stringReader).readStruct().
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CompoundTagArgument instance = ...;
StringReader stringReader = ...;
CompoundTag result = instance.parse(stringReader);
DimensionArgument
- Full name:
net.minecraft.commands.arguments.DimensionArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/DimensionArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<ResourceLocation>
net.minecraft.commands.arguments.DimensionArgument#dimension()
- Origin:
common - Source:
net/minecraft/commands/arguments/DimensionArgument.java:49 - Modifiers:
public static - Return:
DimensionArgument
คืออะไร
ดำเนินการ dimension ตาม implementation ของ DimensionArgument
ทำงานยังไง
สร้างออบเจ็กต์: DimensionArgument. คืนค่า: new DimensionArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.DimensionArgument#getDimension(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/DimensionArgument.java:53 - Modifiers:
public static - Return:
ServerLevel
คืออะไร
อ่านค่า Dimension
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getArgument(), create(), getSource(), getServer(), getLevel(). คืนค่า: serverLevel.
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
ServerLevel result = DimensionArgument.getDimension(commandContext, "value");
net.minecraft.commands.arguments.DimensionArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/DimensionArgument.java:44 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.DimensionArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/DimensionArgument.java:35 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ DimensionArgument
ทำงานยังไง
เรียกต่อ: getSource(), suggestResource(), levels(), stream(), map(), empty().
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
DimensionArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.DimensionArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/DimensionArgument.java:31 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
เรียกต่อ: read(). คืนค่า: ResourceLocation.read(stringReader).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
DimensionArgument instance = ...;
StringReader stringReader = ...;
ResourceLocation result = instance.parse(stringReader);
EntityAnchorArgument
- Full name:
net.minecraft.commands.arguments.EntityAnchorArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/EntityAnchorArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<EntityAnchorArgument.Anchor>
net.minecraft.commands.arguments.EntityAnchorArgument#anchor()
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityAnchorArgument.java:34 - Modifiers:
public static - Return:
EntityAnchorArgument
คืออะไร
ดำเนินการ anchor ตาม implementation ของ EntityAnchorArgument
ทำงานยังไง
สร้างออบเจ็กต์: EntityAnchorArgument. คืนค่า: new EntityAnchorArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.EntityAnchorArgument#getAnchor(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityAnchorArgument.java:30 - Modifiers:
public static - Return:
EntityAnchorArgument.Anchor
คืออะไร
อ่านค่า Anchor
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, EntityAnchorArgument.Anchor.class).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
EntityAnchorArgument.Anchor result = EntityAnchorArgument.getAnchor(commandContext, "value");
net.minecraft.commands.arguments.EntityAnchorArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityAnchorArgument.java:55 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.EntityAnchorArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityAnchorArgument.java:50 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ EntityAnchorArgument
ทำงานยังไง
เรียกต่อ: suggest(), keySet(). คืนค่า: SharedSuggestionProvider.suggest(EntityAnchorArgument.Anchor.BY_NAME.keySet(), suggestionsBuilder).
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
EntityAnchorArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.EntityAnchorArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityAnchorArgument.java:38 - Modifiers:
public - Return:
EntityAnchorArgument.Anchor
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getCursor(), readUnquotedString(), getByName(), setCursor(), createWithContext(). คืนค่า: anchor.
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
EntityAnchorArgument instance = ...;
StringReader stringReader = ...;
EntityAnchorArgument.Anchor result = instance.parse(stringReader);
EntityAnchorArgument$Anchor
- Full name:
net.minecraft.commands.arguments.EntityAnchorArgument$Anchor - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/EntityAnchorArgument.java - Type:
enum - Modifiers:
public
net.minecraft.commands.arguments.EntityAnchorArgument$Anchor#apply(CommandSourceStack)
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityAnchorArgument.java:86 - Modifiers:
public - Return:
Vec3
คืออะไร
นำไปใช้ apply
ทำงานยังไง
เรียกต่อ: getEntity(), getPosition(). คืนค่า: entity == null ? commandSourceStack.getPosition() : this.transform.apply(commandSourceStack.getPosition(), entity).
Parameters
CommandSourceStack commandSourceStack
ตัวอย่างใช้งาน
EntityAnchorArgument.Anchor instance = ...;
CommandSourceStack commandSourceStack = ...;
Vec3 result = instance.apply(commandSourceStack);
net.minecraft.commands.arguments.EntityAnchorArgument$Anchor#apply(Entity)
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityAnchorArgument.java:82 - Modifiers:
public - Return:
Vec3
คืออะไร
นำไปใช้ apply
ทำงานยังไง
เรียกต่อ: position(). คืนค่า: this.transform.apply(entity.position(), entity).
Parameters
Entity entity
ตัวอย่างใช้งาน
EntityAnchorArgument.Anchor instance = ...;
Entity entity = ...;
Vec3 result = instance.apply(entity);
net.minecraft.commands.arguments.EntityAnchorArgument$Anchor#getByName(String)
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityAnchorArgument.java:77 - Modifiers:
public static - Return:
EntityAnchorArgument.Anchor
คืออะไร
อ่านค่า By Name
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: BY_NAME.get(string).
Parameters
String string
ตัวอย่างใช้งาน
EntityArgument
- Full name:
net.minecraft.commands.arguments.EntityArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/EntityArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<EntitySelector>
net.minecraft.commands.arguments.EntityArgument#entities()
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityArgument.java:53 - Modifiers:
public static - Return:
EntityArgument
คืออะไร
ดำเนินการ entities ตาม implementation ของ EntityArgument
ทำงานยังไง
สร้างออบเจ็กต์: EntityArgument. คืนค่า: new EntityArgument(false, false).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.EntityArgument#entity()
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityArgument.java:45 - Modifiers:
public static - Return:
EntityArgument
คืออะไร
ดำเนินการ entity ตาม implementation ของ EntityArgument
ทำงานยังไง
สร้างออบเจ็กต์: EntityArgument. คืนค่า: new EntityArgument(true, false).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.EntityArgument#EntityArgument(boolean,boolean)
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityArgument.java:40 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityArgument ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: single, playersOnly.
Parameters
boolean blboolean bl2
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.EntityArgument#getEntities(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityArgument.java:57 - Modifiers:
public static - Return:
Collection<? extends Entity>
คืออะไร
อ่านค่า Entities
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getOptionalEntities(), isEmpty(), create(). คืนค่า: collection.
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Collection<? extends Entity> result = EntityArgument.getEntities(commandContext, "value");
net.minecraft.commands.arguments.EntityArgument#getEntity(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityArgument.java:49 - Modifiers:
public static - Return:
Entity
คืออะไร
อ่านค่า Entity
ทำงานยังไง
เรียกต่อ: getArgument(), findSingleEntity(), getSource(). คืนค่า: commandContext.getArgument(string, EntitySelector.class).findSingleEntity(commandContext.getSource()).
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Entity result = EntityArgument.getEntity(commandContext, "value");
net.minecraft.commands.arguments.EntityArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityArgument.java:145 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.EntityArgument#getOptionalEntities(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityArgument.java:66 - Modifiers:
public static - Return:
Collection<? extends Entity>
คืออะไร
อ่านค่า Optional Entities
ทำงานยังไง
เรียกต่อ: getArgument(), findEntities(), getSource(). คืนค่า: commandContext.getArgument(string, EntitySelector.class).findEntities(commandContext.getSource()).
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Collection<? extends Entity> result = EntityArgument.getOptionalEntities(commandContext, "value");
net.minecraft.commands.arguments.EntityArgument#getOptionalPlayers(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityArgument.java:70 - Modifiers:
public static - Return:
Collection<ServerPlayer>
คืออะไร
อ่านค่า Optional Players
ทำงานยังไง
เรียกต่อ: getArgument(), findPlayers(), getSource(). คืนค่า: commandContext.getArgument(string, EntitySelector.class).findPlayers(commandContext.getSource()).
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Collection<ServerPlayer> result = EntityArgument.getOptionalPlayers(commandContext, "value");
net.minecraft.commands.arguments.EntityArgument#getPlayer(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityArgument.java:78 - Modifiers:
public static - Return:
ServerPlayer
คืออะไร
อ่านค่า Player
ทำงานยังไง
เรียกต่อ: getArgument(), findSinglePlayer(), getSource(). คืนค่า: commandContext.getArgument(string, EntitySelector.class).findSinglePlayer(commandContext.getSource()).
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
ServerPlayer result = EntityArgument.getPlayer(commandContext, "value");
net.minecraft.commands.arguments.EntityArgument#getPlayers(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityArgument.java:86 - Modifiers:
public static - Return:
Collection<ServerPlayer>
คืออะไร
อ่านค่า Players
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getArgument(), findPlayers(), getSource(), isEmpty(), create(). คืนค่า: list.
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Collection<ServerPlayer> result = EntityArgument.getPlayers(commandContext, "value");
net.minecraft.commands.arguments.EntityArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityArgument.java:123 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ EntityArgument
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: getSource(), getInput(), setCursor(), getStart(), allowSelectors(), parse(), fillSuggestions(), getOnlinePlayerNames(). สร้างออบเจ็กต์: StringReader, EntitySelectorParser. คืนค่า: Suggestions.empty().
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
EntityArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.EntityArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityArgument.java:95 - Modifiers:
public - Return:
EntitySelector
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
คืนค่า: this.parse(stringReader, true).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
EntityArgument instance = ...;
StringReader stringReader = ...;
EntitySelector result = instance.parse(stringReader);
net.minecraft.commands.arguments.EntityArgument#parse(StringReader,S)
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityArgument.java:99 - Modifiers:
public - Return:
EntitySelector
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
เรียกต่อ: allowSelectors(). คืนค่า: this.parse(stringReader, EntitySelectorParser.allowSelectors(object)).
Parameters
StringReader stringReaderS object
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
EntityArgument instance = ...;
StringReader stringReader = ...;
S object = ...;
EntitySelector result = instance.parse(stringReader, object);
net.minecraft.commands.arguments.EntityArgument#player()
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityArgument.java:74 - Modifiers:
public static - Return:
EntityArgument
คืออะไร
ดำเนินการ player ตาม implementation ของ EntityArgument
ทำงานยังไง
สร้างออบเจ็กต์: EntityArgument. คืนค่า: new EntityArgument(true, true).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.EntityArgument#players()
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityArgument.java:82 - Modifiers:
public static - Return:
EntityArgument
คืออะไร
ดำเนินการ players ตาม implementation ของ EntityArgument
ทำงานยังไง
สร้างออบเจ็กต์: EntityArgument. คืนค่า: new EntityArgument(false, true).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EntityArgument$Info
- Full name:
net.minecraft.commands.arguments.EntityArgument$Info - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/EntityArgument.java - Type:
class - Modifiers:
public static - Implements:
ArgumentTypeInfo<EntityArgument, EntityArgument.Info.Template>
net.minecraft.commands.arguments.EntityArgument$Info#deserializeFromNetwork(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityArgument.java:167 - Modifiers:
public - Return:
EntityArgument.Info.Template
คืออะไร
สร้างออบเจ็กต์กลับจากข้อมูล From Network
ทำงานยังไง
เรียกต่อ: readByte(), Template(). สร้างออบเจ็กต์: EntityArgument.Info.Template. คืนค่า: new EntityArgument.Info.Template((b & 1) != 0, (b & 2) != 0).
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
EntityArgument.Info instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
EntityArgument.Info.Template result = instance.deserializeFromNetwork(friendlyByteBuf);
net.minecraft.commands.arguments.EntityArgument$Info#serializeToJson(EntityArgument.Info.Template,JsonObject)
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityArgument.java:172 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Json
ทำงานยังไง
เรียกต่อ: addProperty().
Parameters
EntityArgument.Info.Template templateJsonObject jsonObject
ตัวอย่างใช้งาน
EntityArgument.Info instance = ...;
EntityArgument.Info.Template template = ...;
JsonObject jsonObject = ...;
instance.serializeToJson(template, jsonObject);
net.minecraft.commands.arguments.EntityArgument$Info#serializeToNetwork(EntityArgument.Info.Template,FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityArgument.java:154 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Network
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: writeByte().
Parameters
EntityArgument.Info.Template templateFriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
EntityArgument.Info instance = ...;
EntityArgument.Info.Template template = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.serializeToNetwork(template, friendlyByteBuf);
net.minecraft.commands.arguments.EntityArgument$Info#unpack(EntityArgument)
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityArgument.java:177 - Modifiers:
public - Return:
EntityArgument.Info.Template
คืออะไร
ดำเนินการ unpack ตาม implementation ของ EntityArgument$Info
ทำงานยังไง
เรียกต่อ: Template(). สร้างออบเจ็กต์: EntityArgument.Info.Template. คืนค่า: new EntityArgument.Info.Template(entityArgument.single, entityArgument.playersOnly).
Parameters
EntityArgument entityArgument
ตัวอย่างใช้งาน
EntityArgument.Info instance = ...;
EntityArgument entityArgument = ...;
EntityArgument.Info.Template result = instance.unpack(entityArgument);
EntityArgument$Info$Template
- Full name:
net.minecraft.commands.arguments.EntityArgument$Info$Template - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/EntityArgument.java - Type:
class - Modifiers:
public final - Implements:
ArgumentTypeInfo.Template<EntityArgument>
net.minecraft.commands.arguments.EntityArgument$Info$Template#instantiate(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityArgument.java:190 - Modifiers:
public - Return:
EntityArgument
คืออะไร
ดำเนินการ instantiate ตาม implementation ของ EntityArgument$Info$Template
ทำงานยังไง
สร้างออบเจ็กต์: EntityArgument. คืนค่า: new EntityArgument(this.single, this.playersOnly).
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
EntityArgument.Info.Template instance = ...;
CommandBuildContext commandBuildContext = ...;
EntityArgument result = instance.instantiate(commandBuildContext);
net.minecraft.commands.arguments.EntityArgument$Info$Template#type()
- Origin:
common - Source:
net/minecraft/commands/arguments/EntityArgument.java:194 - Modifiers:
public - Return:
ArgumentTypeInfo<EntityArgument, ?>
คืออะไร
ดำเนินการ type ตาม implementation ของ EntityArgument$Info$Template
ทำงานยังไง
คืนค่า: Info.this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EntityArgument.Info.Template instance = ...;
ArgumentTypeInfo<EntityArgument, ?> result = instance.type();
GameModeArgument
- Full name:
net.minecraft.commands.arguments.GameModeArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/GameModeArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<GameType>
net.minecraft.commands.arguments.GameModeArgument#gameMode()
- Origin:
common - Source:
net/minecraft/commands/arguments/GameModeArgument.java:49 - Modifiers:
public static - Return:
GameModeArgument
คืออะไร
ดำเนินการ gameMode ตาม implementation ของ GameModeArgument
ทำงานยังไง
สร้างออบเจ็กต์: GameModeArgument. คืนค่า: new GameModeArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.GameModeArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/GameModeArgument.java:44 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.GameModeArgument#getGameMode(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/GameModeArgument.java:53 - Modifiers:
public static - Return:
GameType
คืออะไร
อ่านค่า Game Mode
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, GameType.class).
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
GameType result = GameModeArgument.getGameMode(commandContext, "value");
net.minecraft.commands.arguments.GameModeArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/GameModeArgument.java:37 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ GameModeArgument
ทำงานยังไง
เรียกต่อ: getSource(), suggest(), stream(), map(), empty().
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
GameModeArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.GameModeArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/GameModeArgument.java:27 - Modifiers:
public - Return:
GameType
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: readUnquotedString(), byName(), createWithContext(). คืนค่า: gameType.
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
GameModeArgument instance = ...;
StringReader stringReader = ...;
GameType result = instance.parse(stringReader);
GameProfileArgument
- Full name:
net.minecraft.commands.arguments.GameProfileArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/GameProfileArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<GameProfileArgument.Result>
net.minecraft.commands.arguments.GameProfileArgument#gameProfile()
- Origin:
common - Source:
net/minecraft/commands/arguments/GameProfileArgument.java:33 - Modifiers:
public static - Return:
GameProfileArgument
คืออะไร
ดำเนินการ gameProfile ตาม implementation ของ GameProfileArgument
ทำงานยังไง
สร้างออบเจ็กต์: GameProfileArgument. คืนค่า: new GameProfileArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.GameProfileArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/GameProfileArgument.java:89 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.GameProfileArgument#getGameProfiles(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/GameProfileArgument.java:29 - Modifiers:
public static - Return:
Collection<GameProfile>
คืออะไร
อ่านค่า Game Profiles
ทำงานยังไง
เรียกต่อ: getArgument(), getNames(), getSource(). คืนค่า: commandContext.getArgument(string, GameProfileArgument.Result.class).getNames(commandContext.getSource()).
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Collection<GameProfile> result = GameProfileArgument.getGameProfiles(commandContext, "value");
net.minecraft.commands.arguments.GameProfileArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/GameProfileArgument.java:69 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ GameProfileArgument
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: getSource(), getInput(), setCursor(), getStart(), allowSelectors(), parse(), fillSuggestions(), suggest(). สร้างออบเจ็กต์: StringReader, EntitySelectorParser. คืนค่า: Suggestions.empty().
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
GameProfileArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.GameProfileArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/GameProfileArgument.java:41 - Modifiers:
public - Return:
GameProfileArgument.Result
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
คืนค่า: parse(stringReader, true).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
GameProfileArgument instance = ...;
StringReader stringReader = ...;
GameProfileArgument.Result result = instance.parse(stringReader);
net.minecraft.commands.arguments.GameProfileArgument#parse(StringReader,S)
- Origin:
common - Source:
net/minecraft/commands/arguments/GameProfileArgument.java:37 - Modifiers:
public - Return:
GameProfileArgument.Result
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
เรียกต่อ: allowSelectors(). คืนค่า: parse(stringReader, EntitySelectorParser.allowSelectors(object)).
Parameters
StringReader stringReaderS object
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
GameProfileArgument instance = ...;
StringReader stringReader = ...;
S object = ...;
GameProfileArgument.Result result = instance.parse(stringReader, object);
GameProfileArgument$Result
- Full name:
net.minecraft.commands.arguments.GameProfileArgument$Result - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/GameProfileArgument.java - Type:
interface - Modifiers:
public
net.minecraft.commands.arguments.GameProfileArgument$Result#getNames(CommandSourceStack)
- Origin:
common - Source:
net/minecraft/commands/arguments/GameProfileArgument.java:96 - Modifiers: ``
- Return:
Collection<GameProfile>
คืออะไร
อ่านค่า Names
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
CommandSourceStack commandSourceStack
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
GameProfileArgument.Result instance = ...;
CommandSourceStack commandSourceStack = ...;
Collection<GameProfile> result = instance.getNames(commandSourceStack);
GameProfileArgument$SelectorResult
- Full name:
net.minecraft.commands.arguments.GameProfileArgument$SelectorResult - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/GameProfileArgument.java - Type:
class - Modifiers:
public static - Implements:
GameProfileArgument.Result
net.minecraft.commands.arguments.GameProfileArgument$SelectorResult#getNames(CommandSourceStack)
- Origin:
common - Source:
net/minecraft/commands/arguments/GameProfileArgument.java:106 - Modifiers:
public - Return:
Collection<GameProfile>
คืออะไร
อ่านค่า Names
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: findPlayers(), isEmpty(), create(), newArrayList(), add(), getGameProfile(). คืนค่า: list2.
Parameters
CommandSourceStack commandSourceStack
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
GameProfileArgument.SelectorResult instance = ...;
CommandSourceStack commandSourceStack = ...;
Collection<GameProfile> result = instance.getNames(commandSourceStack);
net.minecraft.commands.arguments.GameProfileArgument$SelectorResult#SelectorResult(EntitySelector)
- Origin:
common - Source:
net/minecraft/commands/arguments/GameProfileArgument.java:102 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ GameProfileArgument.SelectorResult ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: selector.
Parameters
EntitySelector entitySelector
ตัวอย่างใช้งาน
EntitySelector entitySelector = ...;
GameProfileArgument.SelectorResult instance = new GameProfileArgument.SelectorResult(entitySelector);
HeightmapTypeArgument
- Full name:
net.minecraft.commands.arguments.HeightmapTypeArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/HeightmapTypeArgument.java - Type:
class - Modifiers:
public - Extends:
StringRepresentableArgument<Heightmap.Types>
net.minecraft.commands.arguments.HeightmapTypeArgument#convertId(String)
- Origin:
common - Source:
net/minecraft/commands/arguments/HeightmapTypeArgument.java:32 - Modifiers:
protected - Return:
String
คืออะไร
แปลง Id
ทำงานยังไง
เรียกต่อ: toLowerCase(). คืนค่า: string.toLowerCase(Locale.ROOT).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.HeightmapTypeArgument#getHeightmap(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/HeightmapTypeArgument.java:28 - Modifiers:
public static - Return:
Heightmap.Types
คืออะไร
อ่านค่า Heightmap
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, Heightmap.Types.class).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Heightmap.Types result = HeightmapTypeArgument.getHeightmap(commandContext, "value");
net.minecraft.commands.arguments.HeightmapTypeArgument#heightmap()
- Origin:
common - Source:
net/minecraft/commands/arguments/HeightmapTypeArgument.java:24 - Modifiers:
public static - Return:
HeightmapTypeArgument
คืออะไร
ดำเนินการ heightmap ตาม implementation ของ HeightmapTypeArgument
ทำงานยังไง
สร้างออบเจ็กต์: HeightmapTypeArgument. คืนค่า: new HeightmapTypeArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
MessageArgument
- Full name:
net.minecraft.commands.arguments.MessageArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/MessageArgument.java - Type:
class - Modifiers:
public - Implements:
SignedArgument<MessageArgument.Message>
net.minecraft.commands.arguments.MessageArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/MessageArgument.java:85 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.MessageArgument#getMessage(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/MessageArgument.java:36 - Modifiers:
public static - Return:
Component
คืออะไร
อ่านค่า Message
ทำงานยังไง
เรียกต่อ: getArgument(), resolveComponent(), getSource(). คืนค่า: message.resolveComponent(commandContext.getSource()).
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Component result = MessageArgument.getMessage(commandContext, "value");
net.minecraft.commands.arguments.MessageArgument#message()
- Origin:
common - Source:
net/minecraft/commands/arguments/MessageArgument.java:32 - Modifiers:
public static - Return:
MessageArgument
คืออะไร
ดำเนินการ message ตาม implementation ของ MessageArgument
ทำงานยังไง
สร้างออบเจ็กต์: MessageArgument. คืนค่า: new MessageArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.MessageArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/MessageArgument.java:77 - Modifiers:
public - Return:
MessageArgument.Message
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
เรียกต่อ: parseText(). คืนค่า: MessageArgument.Message.parseText(stringReader, true).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
MessageArgument instance = ...;
StringReader stringReader = ...;
MessageArgument.Message result = instance.parse(stringReader);
net.minecraft.commands.arguments.MessageArgument#parse(StringReader,S)
- Origin:
common - Source:
net/minecraft/commands/arguments/MessageArgument.java:81 - Modifiers:
public - Return:
MessageArgument.Message
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
เรียกต่อ: parseText(), allowSelectors(). คืนค่า: MessageArgument.Message.parseText(stringReader, EntitySelectorParser.allowSelectors(object)).
Parameters
StringReader stringReaderS object
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
MessageArgument instance = ...;
StringReader stringReader = ...;
S object = ...;
MessageArgument.Message result = instance.parse(stringReader, object);
net.minecraft.commands.arguments.MessageArgument#resolveChatMessage(CommandContext<CommandSourceStack>,String,Consumer<PlayerChatMessage>)
- Origin:
common - Source:
net/minecraft/commands/arguments/MessageArgument.java:41 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ resolveChatMessage ตาม implementation ของ MessageArgument
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getArgument(), getSource(), resolveComponent(), getSigningContext(), resolveSignedMessage(), withUnsignedContent(), resolveDisguisedMessage(), system().
Parameters
CommandContext<CommandSourceStack> commandContextString stringConsumer<PlayerChatMessage> consumer
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Consumer<PlayerChatMessage> consumer = ...;
MessageArgument.resolveChatMessage(commandContext, "value", consumer);
MessageArgument$Message
- Full name:
net.minecraft.commands.arguments.MessageArgument$Message - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/MessageArgument.java - Type:
record - Modifiers:
public
net.minecraft.commands.arguments.MessageArgument$Message#parseText(StringReader,boolean)
- Origin:
common - Source:
net/minecraft/commands/arguments/MessageArgument.java:121 - Modifiers:
public static - Return:
MessageArgument.Message
คืออะไร
แปลง/วิเคราะห์ข้อมูล Text
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: getRemainingLength(), create(), getRemaining(), setCursor(), getTotalLength(), Message(), newArrayList(), getCursor(). สร้างออบเจ็กต์: MessageArgument.Message, EntitySelectorParser, MessageArgument.Part. มีจุด return อย่างน้อย 2 จุด.
Parameters
StringReader stringReaderboolean bl
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
StringReader stringReader = ...;
MessageArgument.Message result = MessageArgument.Message.parseText(stringReader, true);
net.minecraft.commands.arguments.MessageArgument$Message#toComponent(CommandSourceStack,boolean)
- Origin:
common - Source:
net/minecraft/commands/arguments/MessageArgument.java:96 - Modifiers:
public - Return:
Component
คืออะไร
ดำเนินการ toComponent ตาม implementation ของ MessageArgument$Message
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: literal(), substring(), start(), append(), end(), length(). มีจุด return อย่างน้อย 2 จุด.
Parameters
CommandSourceStack commandSourceStackboolean bl
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
MessageArgument.Message instance = ...;
CommandSourceStack commandSourceStack = ...;
Component result = instance.toComponent(commandSourceStack, true);
MessageArgument$Part
- Full name:
net.minecraft.commands.arguments.MessageArgument$Part - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/MessageArgument.java - Type:
record - Modifiers:
public
net.minecraft.commands.arguments.MessageArgument$Part#toComponent(CommandSourceStack)
- Origin:
common - Source:
net/minecraft/commands/arguments/MessageArgument.java:169 - Modifiers:
public - Return:
Component
คืออะไร
ดำเนินการ toComponent ตาม implementation ของ MessageArgument$Part
ทำงานยังไง
เรียกต่อ: joinNames(), findEntities(). คืนค่า: EntitySelector.joinNames(this.selector.findEntities(commandSourceStack)).
Parameters
CommandSourceStack commandSourceStack
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
MessageArgument.Part instance = ...;
CommandSourceStack commandSourceStack = ...;
Component result = instance.toComponent(commandSourceStack);
NbtPathArgument
- Full name:
net.minecraft.commands.arguments.NbtPathArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/NbtPathArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<NbtPathArgument.NbtPath>
net.minecraft.commands.arguments.NbtPathArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/NbtPathArgument.java:137 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.NbtPathArgument#getPath(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/NbtPathArgument.java:57 - Modifiers:
public static - Return:
NbtPathArgument.NbtPath
คืออะไร
อ่านค่า Path
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, NbtPathArgument.NbtPath.class).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
NbtPathArgument.NbtPath result = NbtPathArgument.getPath(commandContext, "value");
net.minecraft.commands.arguments.NbtPathArgument#nbtPath()
- Origin:
common - Source:
net/minecraft/commands/arguments/NbtPathArgument.java:53 - Modifiers:
public static - Return:
NbtPathArgument
คืออะไร
ดำเนินการ nbtPath ตาม implementation ของ NbtPathArgument
ทำงานยังไง
สร้างออบเจ็กต์: NbtPathArgument. คืนค่า: new NbtPathArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.NbtPathArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/NbtPathArgument.java:61 - Modifiers:
public - Return:
NbtPathArgument.NbtPath
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: newArrayList(), getCursor(), canRead(), peek(), parseNode(), add(), put(), expect(). สร้างออบเจ็กต์: Object2IntOpenHashMap<>, NbtPathArgument.NbtPath. คืนค่า: new NbtPathArgument.NbtPath(stringReader.getString().substring(i, stringReader.getCursor()), list.toArray(new NbtPathArgument.Node[0]), object2IntMap).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
NbtPathArgument instance = ...;
StringReader stringReader = ...;
NbtPathArgument.NbtPath result = instance.parse(stringReader);
NbtPathArgument$NbtPath
- Full name:
net.minecraft.commands.arguments.NbtPathArgument$NbtPath - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/NbtPathArgument.java - Type:
class - Modifiers:
public static
net.minecraft.commands.arguments.NbtPathArgument$NbtPath#asString()
- Origin:
common - Source:
net/minecraft/commands/arguments/NbtPathArgument.java:715 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ asString ตาม implementation ของ NbtPathArgument$NbtPath
ทำงานยังไง
คืนค่า: this.original.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.NbtPathArgument$NbtPath#countMatching(Tag)
- Origin:
common - Source:
net/minecraft/commands/arguments/NbtPathArgument.java:565 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ countMatching ตาม implementation ของ NbtPathArgument$NbtPath
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: singletonList(), get(), isEmpty(), size(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Tag tag
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.NbtPathArgument$NbtPath#get(Tag)
- Origin:
common - Source:
net/minecraft/commands/arguments/NbtPathArgument.java:552 - Modifiers:
public - Return:
List<Tag>
คืออะไร
อ่านค่า get
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: singletonList(), isEmpty(), createNotFoundException(). คืนค่า: list.
Parameters
Tag tag
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.NbtPathArgument$NbtPath#getOrCreate(Tag,Supplier<Tag>)
- Origin:
common - Source:
net/minecraft/commands/arguments/NbtPathArgument.java:593 - Modifiers:
public - Return:
List<Tag>
คืออะไร
อ่านค่า Or Create
ทำงานยังไง
เรียกต่อ: getOrCreateParents(). คืนค่า: node.getOrCreate(list, supplier).
Parameters
Tag tagSupplier<Tag> supplier
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
NbtPathArgument.NbtPath instance = ...;
Tag tag = ...;
Supplier<Tag> supplier = ...;
List<Tag> result = instance.getOrCreate(tag, supplier);
net.minecraft.commands.arguments.NbtPathArgument$NbtPath#insert(int,CompoundTag,List<Tag>)
- Origin:
common - Source:
net/minecraft/commands/arguments/NbtPathArgument.java:653 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ insert ตาม implementation ของ NbtPathArgument$NbtPath
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: size(), copy(), add(), isTooDeep(), estimatePathDepth(), create(), getOrCreate(), addTag(). สร้างออบเจ็กต์: ArrayList<>. คืนค่า: j.
Parameters
int iCompoundTag compoundTagList<Tag> list
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
NbtPathArgument.NbtPath instance = ...;
CompoundTag compoundTag = ...;
List<Tag> list = ...;
int result = instance.insert(0, compoundTag, list);
net.minecraft.commands.arguments.NbtPathArgument$NbtPath#isTooDeep(Tag,int)
- Origin:
common - Source:
net/minecraft/commands/arguments/NbtPathArgument.java:603 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Too Deep
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getAllKeys(), get(). มีจุด return อย่างน้อย 4 จุด.
Parameters
Tag tagint i
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.NbtPathArgument$NbtPath#NbtPath(String,NbtPathArgument.Node[],Object2IntMap<NbtPathArgument.Node>)
- Origin:
common - Source:
net/minecraft/commands/arguments/NbtPathArgument.java:546 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ NbtPathArgument.NbtPath ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: original, nodes, nodeToOriginalPosition.
Parameters
String stringNbtPathArgument.Node[] nodesObject2IntMap<NbtPathArgument.Node> object2IntMap
ตัวอย่างใช้งาน
NbtPathArgument.Node[] nodes = ...;
Object2IntMap<NbtPathArgument.Node> object2IntMap = ...;
NbtPathArgument.NbtPath instance = new NbtPathArgument.NbtPath("value", nodes, object2IntMap);
net.minecraft.commands.arguments.NbtPathArgument$NbtPath#of(String)
- Origin:
common - Source:
net/minecraft/commands/arguments/NbtPathArgument.java:542 - Modifiers:
public static - Return:
NbtPathArgument.NbtPath
คืออะไร
ดำเนินการ of ตาม implementation ของ NbtPathArgument$NbtPath
ทำงานยังไง
เรียกต่อ: parse(). สร้างออบเจ็กต์: NbtPathArgument, StringReader. คืนค่า: new NbtPathArgument().parse(new StringReader(string)).
Parameters
String string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.NbtPathArgument$NbtPath#remove(Tag)
- Origin:
common - Source:
net/minecraft/commands/arguments/NbtPathArgument.java:694 - Modifiers:
public - Return:
int
คืออะไร
ลบ remove
ทำงานยังไง
มีการวนลูป. เรียกต่อ: singletonList(), get(), apply(). คืนค่า: apply(list, node::removeTag).
Parameters
Tag tag
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.NbtPathArgument$NbtPath#set(Tag,Tag)
- Origin:
common - Source:
net/minecraft/commands/arguments/NbtPathArgument.java:626 - Modifiers:
public - Return:
int
คืออะไร
กำหนดค่า set
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isTooDeep(), estimatePathDepth(), create(), copy(), getOrCreateParents(), isEmpty(), apply(), setTag(). สร้างออบเจ็กต์: MutableBoolean. มีจุด return อย่างน้อย 4 จุด.
Parameters
Tag tagTag tag2
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
NbtPathArgument.NbtPath instance = ...;
Tag tag = ...;
Tag tag2 = ...;
int result = instance.set(tag, tag2);
net.minecraft.commands.arguments.NbtPathArgument$NbtPath#toString()
- Origin:
common - Source:
net/minecraft/commands/arguments/NbtPathArgument.java:710 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ NbtPathArgument$NbtPath
ทำงานยังไง
คืนค่า: this.original.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
NbtTagArgument
- Full name:
net.minecraft.commands.arguments.NbtTagArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/NbtTagArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<Tag>
net.minecraft.commands.arguments.NbtTagArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/NbtTagArgument.java:30 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.NbtTagArgument#getNbtTag(CommandContext<S>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/NbtTagArgument.java:22 - Modifiers:
public static - Return:
Tag
คืออะไร
อ่านค่า Nbt Tag
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, Tag.class).
Parameters
CommandContext<S> commandContextString string
ตัวอย่างใช้งาน
CommandContext<S> commandContext = ...;
Tag result = NbtTagArgument.getNbtTag(commandContext, "value");
net.minecraft.commands.arguments.NbtTagArgument#nbtTag()
- Origin:
common - Source:
net/minecraft/commands/arguments/NbtTagArgument.java:18 - Modifiers:
public static - Return:
NbtTagArgument
คืออะไร
ดำเนินการ nbtTag ตาม implementation ของ NbtTagArgument
ทำงานยังไง
สร้างออบเจ็กต์: NbtTagArgument. คืนค่า: new NbtTagArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.NbtTagArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/NbtTagArgument.java:26 - Modifiers:
public - Return:
Tag
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
เรียกต่อ: readValue(). สร้างออบเจ็กต์: TagParser. คืนค่า: new TagParser(stringReader).readValue().
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
NbtTagArgument instance = ...;
StringReader stringReader = ...;
Tag result = instance.parse(stringReader);
ObjectiveArgument
- Full name:
net.minecraft.commands.arguments.ObjectiveArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ObjectiveArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<String>
net.minecraft.commands.arguments.ObjectiveArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/ObjectiveArgument.java:66 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ObjectiveArgument#getObjective(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ObjectiveArgument.java:32 - Modifiers:
public static - Return:
Objective
คืออะไร
อ่านค่า Objective
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getArgument(), getSource(), getServer(), getScoreboard(), create(). คืนค่า: objective.
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Objective result = ObjectiveArgument.getObjective(commandContext, "value");
net.minecraft.commands.arguments.ObjectiveArgument#getWritableObjective(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ObjectiveArgument.java:43 - Modifiers:
public static - Return:
Objective
คืออะไร
อ่านค่า Writable Objective
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getObjective(), getCriteria(), isReadOnly(), create(), getName(). คืนค่า: objective.
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Objective result = ObjectiveArgument.getWritableObjective(commandContext, "value");
net.minecraft.commands.arguments.ObjectiveArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/ObjectiveArgument.java:56 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ ObjectiveArgument
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getSource(), suggest(), getServer(), getScoreboard(), getObjectiveNames(), customSuggestion(), empty(). มีจุด return อย่างน้อย 2 จุด.
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
ObjectiveArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.ObjectiveArgument#objective()
- Origin:
common - Source:
net/minecraft/commands/arguments/ObjectiveArgument.java:28 - Modifiers:
public static - Return:
ObjectiveArgument
คืออะไร
ดำเนินการ objective ตาม implementation ของ ObjectiveArgument
ทำงานยังไง
สร้างออบเจ็กต์: ObjectiveArgument. คืนค่า: new ObjectiveArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ObjectiveArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/ObjectiveArgument.java:52 - Modifiers:
public - Return:
String
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
เรียกต่อ: readUnquotedString(). คืนค่า: stringReader.readUnquotedString().
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
ObjectiveArgument instance = ...;
StringReader stringReader = ...;
String result = instance.parse(stringReader);
ObjectiveCriteriaArgument
- Full name:
net.minecraft.commands.arguments.ObjectiveCriteriaArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ObjectiveCriteriaArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<ObjectiveCriteria>
net.minecraft.commands.arguments.ObjectiveCriteriaArgument#criteria()
- Origin:
common - Source:
net/minecraft/commands/arguments/ObjectiveCriteriaArgument.java:32 - Modifiers:
public static - Return:
ObjectiveCriteriaArgument
คืออะไร
ดำเนินการ criteria ตาม implementation ของ ObjectiveCriteriaArgument
ทำงานยังไง
สร้างออบเจ็กต์: ObjectiveCriteriaArgument. คืนค่า: new ObjectiveCriteriaArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ObjectiveCriteriaArgument#getCriteria(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ObjectiveCriteriaArgument.java:36 - Modifiers:
public static - Return:
ObjectiveCriteria
คืออะไร
อ่านค่า Criteria
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, ObjectiveCriteria.class).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
ObjectiveCriteria result = ObjectiveCriteriaArgument.getCriteria(commandContext, "value");
net.minecraft.commands.arguments.ObjectiveCriteriaArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/ObjectiveCriteriaArgument.java:72 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ObjectiveCriteriaArgument#getName(StatType<T>,Object)
- Origin:
common - Source:
net/minecraft/commands/arguments/ObjectiveCriteriaArgument.java:68 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Name
ทำงานยังไง
เรียกต่อ: buildName(). คืนค่า: Stat.buildName(statType, (T)object).
Parameters
StatType<T> statTypeObject object
ตัวอย่างใช้งาน
ObjectiveCriteriaArgument instance = ...;
StatType<T> statType = ...;
Object object = ...;
String result = instance.getName(statType, object);
net.minecraft.commands.arguments.ObjectiveCriteriaArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/ObjectiveCriteriaArgument.java:54 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ ObjectiveCriteriaArgument
ทำงานยังไง
มีการวนลูป. เรียกต่อ: newArrayList(), getCustomCriteriaNames(), getRegistry(), getName(), add(), suggest(). คืนค่า: SharedSuggestionProvider.suggest(list, suggestionsBuilder).
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
ObjectiveCriteriaArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.ObjectiveCriteriaArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/ObjectiveCriteriaArgument.java:40 - Modifiers:
public - Return:
ObjectiveCriteria
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
มีการวนลูป. เรียกต่อ: getCursor(), canRead(), peek(), skip(), getString(), substring(), byName(), orElseThrow(). มีจุด return อย่างน้อย 2 จุด.
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
ObjectiveCriteriaArgument instance = ...;
StringReader stringReader = ...;
ObjectiveCriteria result = instance.parse(stringReader);
OperationArgument
- Full name:
net.minecraft.commands.arguments.OperationArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/OperationArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<OperationArgument.Operation>
net.minecraft.commands.arguments.OperationArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/OperationArgument.java:51 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.OperationArgument#getOperation(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/OperationArgument.java:28 - Modifiers:
public static - Return:
OperationArgument.Operation
คืออะไร
อ่านค่า Operation
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, OperationArgument.Operation.class).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
OperationArgument.Operation result = OperationArgument.getOperation(commandContext, "value");
net.minecraft.commands.arguments.OperationArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/OperationArgument.java:46 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ OperationArgument
ทำงานยังไง
เรียกต่อ: suggest(). คืนค่า: SharedSuggestionProvider.suggest(new String[]{"=", "+=", "-=", "*=", "/=", "%=", "<", ">", "><"}, suggestionsBuilder).
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
OperationArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.OperationArgument#operation()
- Origin:
common - Source:
net/minecraft/commands/arguments/OperationArgument.java:24 - Modifiers:
public static - Return:
OperationArgument
คืออะไร
ดำเนินการ operation ตาม implementation ของ OperationArgument
ทำงานยังไง
สร้างออบเจ็กต์: OperationArgument. คืนค่า: new OperationArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.OperationArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/OperationArgument.java:32 - Modifiers:
public - Return:
OperationArgument.Operation
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: canRead(), createWithContext(), getCursor(), peek(), skip(), getOperation(), getString(), substring(). คืนค่า: getOperation(stringReader.getString().substring(i, stringReader.getCursor())).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
OperationArgument instance = ...;
StringReader stringReader = ...;
OperationArgument.Operation result = instance.parse(stringReader);
OperationArgument$Operation
- Full name:
net.minecraft.commands.arguments.OperationArgument$Operation - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/OperationArgument.java - Type:
interface - Modifiers:
public
net.minecraft.commands.arguments.OperationArgument$Operation#apply(ScoreAccess,ScoreAccess)
- Origin:
common - Source:
net/minecraft/commands/arguments/OperationArgument.java:92 - Modifiers: ``
- Return:
void
คืออะไร
นำไปใช้ apply
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ScoreAccess scoreAccessScoreAccess scoreAccess2
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
OperationArgument.Operation instance = ...;
ScoreAccess scoreAccess = ...;
ScoreAccess scoreAccess2 = ...;
instance.apply(scoreAccess, scoreAccess2);
ParticleArgument
- Full name:
net.minecraft.commands.arguments.ParticleArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ParticleArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<ParticleOptions>
net.minecraft.commands.arguments.ParticleArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/ParticleArgument.java:53 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ParticleArgument#getParticle(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ParticleArgument.java:45 - Modifiers:
public static - Return:
ParticleOptions
คืออะไร
อ่านค่า Particle
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, ParticleOptions.class).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
ParticleOptions result = ParticleArgument.getParticle(commandContext, "value");
net.minecraft.commands.arguments.ParticleArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/ParticleArgument.java:80 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ ParticleArgument
ทำงานยังไง
เรียกต่อ: lookupOrThrow(), suggestResource(), listElementIds(), map(). คืนค่า: SharedSuggestionProvider.suggestResource(registryLookup.listElementIds().map(ResourceKey::location), suggestionsBuilder).
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
ParticleArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.ParticleArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/ParticleArgument.java:49 - Modifiers:
public - Return:
ParticleOptions
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
เรียกต่อ: readParticle(). คืนค่า: readParticle(stringReader, this.registries).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
ParticleArgument instance = ...;
StringReader stringReader = ...;
ParticleOptions result = instance.parse(stringReader);
net.minecraft.commands.arguments.ParticleArgument#particle(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/arguments/ParticleArgument.java:41 - Modifiers:
public static - Return:
ParticleArgument
คืออะไร
ดำเนินการ particle ตาม implementation ของ ParticleArgument
ทำงานยังไง
สร้างออบเจ็กต์: ParticleArgument. คืนค่า: new ParticleArgument(commandBuildContext).
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
CommandBuildContext commandBuildContext = ...;
ParticleArgument result = ParticleArgument.particle(commandBuildContext);
net.minecraft.commands.arguments.ParticleArgument#ParticleArgument(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/arguments/ParticleArgument.java:37 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ParticleArgument ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: registries.
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
CommandBuildContext commandBuildContext = ...;
ParticleArgument instance = new ParticleArgument(commandBuildContext);
net.minecraft.commands.arguments.ParticleArgument#readParticle(StringReader,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/commands/arguments/ParticleArgument.java:58 - Modifiers:
public static - Return:
ParticleOptions
คืออะไร
อ่าน Particle
ทำงานยังไง
เรียกต่อ: readParticleType(), lookupOrThrow(). คืนค่า: readParticle(stringReader, (ParticleType<ParticleOptions>)particleType, provider).
Parameters
StringReader stringReaderHolderLookup.Provider provider
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
StringReader stringReader = ...;
HolderLookup.Provider provider = ...;
ParticleOptions result = ParticleArgument.readParticle(stringReader, provider);
RangeArgument
- Full name:
net.minecraft.commands.arguments.RangeArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/RangeArgument.java - Type:
interface - Modifiers:
public - Implements:
ArgumentType<T>
net.minecraft.commands.arguments.RangeArgument#floatRange()
- Origin:
common - Source:
net/minecraft/commands/arguments/RangeArgument.java:17 - Modifiers:
static - Return:
RangeArgument.Floats
คืออะไร
ดำเนินการ floatRange ตาม implementation ของ RangeArgument
ทำงานยังไง
เรียกต่อ: Floats(). สร้างออบเจ็กต์: RangeArgument.Floats. คืนค่า: new RangeArgument.Floats().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.RangeArgument#intRange()
- Origin:
common - Source:
net/minecraft/commands/arguments/RangeArgument.java:13 - Modifiers:
static - Return:
RangeArgument.Ints
คืออะไร
ดำเนินการ intRange ตาม implementation ของ RangeArgument
ทำงานยังไง
เรียกต่อ: Ints(). สร้างออบเจ็กต์: RangeArgument.Ints. คืนค่า: new RangeArgument.Ints().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ResourceArgument
- Full name:
net.minecraft.commands.arguments.ResourceArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ResourceArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<Holder.Reference<T>>
net.minecraft.commands.arguments.ResourceArgument#getAttribute(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceArgument.java:68 - Modifiers:
public static - Return:
Holder.Reference<Attribute>
คืออะไร
อ่านค่า Attribute
ทำงานยังไง
เรียกต่อ: getResource(). คืนค่า: getResource(commandContext, string, Registries.ATTRIBUTE).
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Holder.Reference<Attribute> result = ResourceArgument.getAttribute(commandContext, "value");
net.minecraft.commands.arguments.ResourceArgument#getConfiguredFeature(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceArgument.java:72 - Modifiers:
public static - Return:
Holder.Reference<ConfiguredFeature<?, ?>>
คืออะไร
อ่านค่า Configured Feature
ทำงานยังไง
เรียกต่อ: getResource(). คืนค่า: getResource(commandContext, string, Registries.CONFIGURED_FEATURE).
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Holder.Reference<ConfiguredFeature<?, ?>> result = ResourceArgument.getConfiguredFeature(commandContext, "value");
net.minecraft.commands.arguments.ResourceArgument#getEnchantment(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceArgument.java:97 - Modifiers:
public static - Return:
Holder.Reference<Enchantment>
คืออะไร
อ่านค่า Enchantment
ทำงานยังไง
เรียกต่อ: getResource(). คืนค่า: getResource(commandContext, string, Registries.ENCHANTMENT).
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Holder.Reference<Enchantment> result = ResourceArgument.getEnchantment(commandContext, "value");
net.minecraft.commands.arguments.ResourceArgument#getEntityType(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceArgument.java:80 - Modifiers:
public static - Return:
Holder.Reference<EntityType<?>>
คืออะไร
อ่านค่า Entity Type
ทำงานยังไง
เรียกต่อ: getResource(). คืนค่า: getResource(commandContext, string, Registries.ENTITY_TYPE).
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Holder.Reference<EntityType<?>> result = ResourceArgument.getEntityType(commandContext, "value");
net.minecraft.commands.arguments.ResourceArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceArgument.java:114 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ResourceArgument#getMobEffect(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceArgument.java:93 - Modifiers:
public static - Return:
Holder.Reference<MobEffect>
คืออะไร
อ่านค่า Mob Effect
ทำงานยังไง
เรียกต่อ: getResource(). คืนค่า: getResource(commandContext, string, Registries.MOB_EFFECT).
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Holder.Reference<MobEffect> result = ResourceArgument.getMobEffect(commandContext, "value");
net.minecraft.commands.arguments.ResourceArgument#getResource(CommandContext<CommandSourceStack>,String,ResourceKey<Registry<T>>)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceArgument.java:58 - Modifiers:
public static - Return:
Holder.Reference<T>
คืออะไร
อ่านค่า Resource
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getArgument(), key(), isFor(), create(), location(), registry(). คืนค่า: reference.
Parameters
CommandContext<CommandSourceStack> commandContextString stringResourceKey<Registry<T>> resourceKey
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
ResourceKey<Registry<T>> resourceKey = ...;
Holder.Reference<T> result = ResourceArgument.getResource(commandContext, "value", resourceKey);
net.minecraft.commands.arguments.ResourceArgument#getStructure(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceArgument.java:76 - Modifiers:
public static - Return:
Holder.Reference<Structure>
คืออะไร
อ่านค่า Structure
ทำงานยังไง
เรียกต่อ: getResource(). คืนค่า: getResource(commandContext, string, Registries.STRUCTURE).
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Holder.Reference<Structure> result = ResourceArgument.getStructure(commandContext, "value");
net.minecraft.commands.arguments.ResourceArgument#getSummonableEntityType(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceArgument.java:84 - Modifiers:
public static - Return:
Holder.Reference<EntityType<?>>
คืออะไร
อ่านค่า Summonable Entity Type
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getResource(), value(), canSummon(), create(), key(), location(), toString(). คืนค่า: reference.
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Holder.Reference<EntityType<?>> result = ResourceArgument.getSummonableEntityType(commandContext, "value");
net.minecraft.commands.arguments.ResourceArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceArgument.java:109 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ ResourceArgument
ทำงานยังไง
เรียกต่อ: suggestResource(), listElementIds(), map(). คืนค่า: SharedSuggestionProvider.suggestResource(this.registryLookup.listElementIds().map(ResourceKey::location), suggestionsBuilder).
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
ResourceArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.ResourceArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceArgument.java:101 - Modifiers:
public - Return:
Holder.Reference<T>
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
เรียกต่อ: read(), create(), get(), orElseThrow(), createWithContext(), location().
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
ResourceArgument instance = ...;
StringReader stringReader = ...;
Holder.Reference<T> result = instance.parse(stringReader);
net.minecraft.commands.arguments.ResourceArgument#resource(CommandBuildContext,ResourceKey<? extends Registry<T>>)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceArgument.java:54 - Modifiers:
public static - Return:
ResourceArgument<T>
คืออะไร
ดำเนินการ resource ตาม implementation ของ ResourceArgument
ทำงานยังไง
สร้างออบเจ็กต์: ResourceArgument<>. คืนค่า: new ResourceArgument<>(commandBuildContext, resourceKey).
Parameters
CommandBuildContext commandBuildContextResourceKey<? extends Registry<T>> resourceKey
ตัวอย่างใช้งาน
CommandBuildContext commandBuildContext = ...;
ResourceKey<? extends Registry<T>> resourceKey = ...;
ResourceArgument<T> result = ResourceArgument.resource(commandBuildContext, resourceKey);
net.minecraft.commands.arguments.ResourceArgument#ResourceArgument(CommandBuildContext,ResourceKey<? extends Registry<T>>)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceArgument.java:49 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ResourceArgument ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: registryKey, registryLookup. เรียกต่อ: lookupOrThrow().
Parameters
CommandBuildContext commandBuildContextResourceKey<? extends Registry<T>> resourceKey
ตัวอย่างใช้งาน
CommandBuildContext commandBuildContext = ...;
ResourceKey<? extends Registry<T>> resourceKey = ...;
ResourceArgument instance = new ResourceArgument(commandBuildContext, resourceKey);
ResourceArgument$Info
- Full name:
net.minecraft.commands.arguments.ResourceArgument$Info - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ResourceArgument.java - Type:
class - Modifiers:
public static - Implements:
ArgumentTypeInfo<ResourceArgument<T>, ResourceArgument.Info<T>.Template>
net.minecraft.commands.arguments.ResourceArgument$Info#deserializeFromNetwork(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceArgument.java:124 - Modifiers:
public - Return:
ResourceArgument.Info<T>.Template
คืออะไร
สร้างออบเจ็กต์กลับจากข้อมูล From Network
ทำงานยังไง
เรียกต่อ: Template(), readRegistryKey(). สร้างออบเจ็กต์: ResourceArgument.Info.Template. คืนค่า: new ResourceArgument.Info.Template(friendlyByteBuf.readRegistryKey()).
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
ResourceArgument.Info instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
ResourceArgument.Info<T>.Template result = instance.deserializeFromNetwork(friendlyByteBuf);
net.minecraft.commands.arguments.ResourceArgument$Info#serializeToJson(ResourceArgument.Info<T>.Template,JsonObject)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceArgument.java:128 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Json
ทำงานยังไง
เรียกต่อ: addProperty(), location(), toString().
Parameters
ResourceArgument.Info<T>.Template templateJsonObject jsonObject
ตัวอย่างใช้งาน
ResourceArgument.Info instance = ...;
ResourceArgument.Info<T>.Template template = ...;
JsonObject jsonObject = ...;
instance.serializeToJson(template, jsonObject);
net.minecraft.commands.arguments.ResourceArgument$Info#serializeToNetwork(ResourceArgument.Info<T>.Template,FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceArgument.java:120 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Network
ทำงานยังไง
เรียกต่อ: writeResourceKey().
Parameters
ResourceArgument.Info<T>.Template templateFriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
ResourceArgument.Info instance = ...;
ResourceArgument.Info<T>.Template template = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.serializeToNetwork(template, friendlyByteBuf);
net.minecraft.commands.arguments.ResourceArgument$Info#unpack(ResourceArgument<T>)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceArgument.java:132 - Modifiers:
public - Return:
ResourceArgument.Info<T>.Template
คืออะไร
ดำเนินการ unpack ตาม implementation ของ ResourceArgument$Info
ทำงานยังไง
เรียกต่อ: Template(). สร้างออบเจ็กต์: ResourceArgument.Info.Template. คืนค่า: new ResourceArgument.Info.Template(resourceArgument.registryKey).
Parameters
ResourceArgument<T> resourceArgument
ตัวอย่างใช้งาน
ResourceArgument.Info instance = ...;
ResourceArgument<T> resourceArgument = ...;
ResourceArgument.Info<T>.Template result = instance.unpack(resourceArgument);
ResourceArgument$Info$Template
- Full name:
net.minecraft.commands.arguments.ResourceArgument$Info$Template - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ResourceArgument.java - Type:
class - Modifiers:
public final - Implements:
ArgumentTypeInfo.Template<ResourceArgument<T>>
net.minecraft.commands.arguments.ResourceArgument$Info$Template#instantiate(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceArgument.java:143 - Modifiers:
public - Return:
ResourceArgument<T>
คืออะไร
ดำเนินการ instantiate ตาม implementation ของ ResourceArgument$Info$Template
ทำงานยังไง
สร้างออบเจ็กต์: ResourceArgument<>. คืนค่า: new ResourceArgument<>(commandBuildContext, this.registryKey).
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
ResourceArgument.Info.Template instance = ...;
CommandBuildContext commandBuildContext = ...;
ResourceArgument<T> result = instance.instantiate(commandBuildContext);
net.minecraft.commands.arguments.ResourceArgument$Info$Template#type()
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceArgument.java:147 - Modifiers:
public - Return:
ArgumentTypeInfo<ResourceArgument<T>, ?>
คืออะไร
ดำเนินการ type ตาม implementation ของ ResourceArgument$Info$Template
ทำงานยังไง
คืนค่า: Info.this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ResourceArgument.Info.Template instance = ...;
ArgumentTypeInfo<ResourceArgument<T>, ?> result = instance.type();
ResourceKeyArgument
- Full name:
net.minecraft.commands.arguments.ResourceKeyArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ResourceKeyArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<ResourceKey<T>>
net.minecraft.commands.arguments.ResourceKeyArgument#getAdvancement(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceKeyArgument.java:105 - Modifiers:
public static - Return:
AdvancementHolder
คืออะไร
อ่านค่า Advancement
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getRegistryKey(), getSource(), getServer(), getAdvancements(), get(), location(), create(). คืนค่า: advancementHolder.
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
AdvancementHolder result = ResourceKeyArgument.getAdvancement(commandContext, "value");
net.minecraft.commands.arguments.ResourceKeyArgument#getConfiguredFeature(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceKeyArgument.java:87 - Modifiers:
public static - Return:
Holder.Reference<ConfiguredFeature<?, ?>>
คืออะไร
อ่านค่า Configured Feature
ทำงานยังไง
เรียกต่อ: resolveKey(). คืนค่า: resolveKey(commandContext, string, Registries.CONFIGURED_FEATURE, ERROR_INVALID_FEATURE).
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Holder.Reference<ConfiguredFeature<?, ?>> result = ResourceKeyArgument.getConfiguredFeature(commandContext, "value");
net.minecraft.commands.arguments.ResourceKeyArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceKeyArgument.java:129 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ResourceKeyArgument#getRecipe(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceKeyArgument.java:99 - Modifiers:
public static - Return:
RecipeHolder<?>
คืออะไร
อ่านค่า Recipe
ทำงานยังไง
เรียกต่อ: getSource(), getServer(), getRecipeManager(), getRegistryKey(), byKey(), orElseThrow(), create(), location(). คืนค่า: recipeManager.byKey(resourceKey).orElseThrow(() -> ERROR_INVALID_RECIPE.create(resourceKey.location())).
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
RecipeHolder<?> result = ResourceKeyArgument.getRecipe(commandContext, "value");
net.minecraft.commands.arguments.ResourceKeyArgument#getStructure(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceKeyArgument.java:91 - Modifiers:
public static - Return:
Holder.Reference<Structure>
คืออะไร
อ่านค่า Structure
ทำงานยังไง
เรียกต่อ: resolveKey(). คืนค่า: resolveKey(commandContext, string, Registries.STRUCTURE, ERROR_INVALID_STRUCTURE).
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Holder.Reference<Structure> result = ResourceKeyArgument.getStructure(commandContext, "value");
net.minecraft.commands.arguments.ResourceKeyArgument#getStructureTemplatePool(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceKeyArgument.java:95 - Modifiers:
public static - Return:
Holder.Reference<StructureTemplatePool>
คืออะไร
อ่านค่า Structure Template Pool
ทำงานยังไง
เรียกต่อ: resolveKey(). คืนค่า: resolveKey(commandContext, string, Registries.TEMPLATE_POOL, ERROR_INVALID_TEMPLATE_POOL).
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Holder.Reference<StructureTemplatePool> result = ResourceKeyArgument.getStructureTemplatePool(commandContext, "value");
net.minecraft.commands.arguments.ResourceKeyArgument#key(ResourceKey<? extends Registry<T>>)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceKeyArgument.java:58 - Modifiers:
public static - Return:
ResourceKeyArgument<T>
คืออะไร
ดำเนินการ key ตาม implementation ของ ResourceKeyArgument
ทำงานยังไง
สร้างออบเจ็กต์: ResourceKeyArgument<>. คืนค่า: new ResourceKeyArgument<>(resourceKey).
Parameters
ResourceKey<? extends Registry<T>> resourceKey
ตัวอย่างใช้งาน
ResourceKey<? extends Registry<T>> resourceKey = ...;
ResourceKeyArgument<T> result = ResourceKeyArgument.key(resourceKey);
net.minecraft.commands.arguments.ResourceKeyArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceKeyArgument.java:120 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ ResourceKeyArgument
ทำงานยังไง
เรียกต่อ: getSource(), suggestRegistryElements(), buildFuture().
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
ResourceKeyArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.ResourceKeyArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceKeyArgument.java:115 - Modifiers:
public - Return:
ResourceKey<T>
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
เรียกต่อ: read(), create(). คืนค่า: ResourceKey.create(this.registryKey, resourceLocation).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
ResourceKeyArgument instance = ...;
StringReader stringReader = ...;
ResourceKey<T> result = instance.parse(stringReader);
net.minecraft.commands.arguments.ResourceKeyArgument#ResourceKeyArgument(ResourceKey<? extends Registry<T>>)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceKeyArgument.java:54 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ResourceKeyArgument ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: registryKey.
Parameters
ResourceKey<? extends Registry<T>> resourceKey
ตัวอย่างใช้งาน
ResourceKey<? extends Registry<T>> resourceKey = ...;
ResourceKeyArgument instance = new ResourceKeyArgument(resourceKey);
ResourceKeyArgument$Info
- Full name:
net.minecraft.commands.arguments.ResourceKeyArgument$Info - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ResourceKeyArgument.java - Type:
class - Modifiers:
public static - Implements:
ArgumentTypeInfo<ResourceKeyArgument<T>, ResourceKeyArgument.Info<T>.Template>
net.minecraft.commands.arguments.ResourceKeyArgument$Info#deserializeFromNetwork(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceKeyArgument.java:139 - Modifiers:
public - Return:
ResourceKeyArgument.Info<T>.Template
คืออะไร
สร้างออบเจ็กต์กลับจากข้อมูล From Network
ทำงานยังไง
เรียกต่อ: Template(), readRegistryKey(). สร้างออบเจ็กต์: ResourceKeyArgument.Info.Template. คืนค่า: new ResourceKeyArgument.Info.Template(friendlyByteBuf.readRegistryKey()).
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
ResourceKeyArgument.Info instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
ResourceKeyArgument.Info<T>.Template result = instance.deserializeFromNetwork(friendlyByteBuf);
net.minecraft.commands.arguments.ResourceKeyArgument$Info#serializeToJson(ResourceKeyArgument.Info<T>.Template,JsonObject)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceKeyArgument.java:143 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Json
ทำงานยังไง
เรียกต่อ: addProperty(), location(), toString().
Parameters
ResourceKeyArgument.Info<T>.Template templateJsonObject jsonObject
ตัวอย่างใช้งาน
ResourceKeyArgument.Info instance = ...;
ResourceKeyArgument.Info<T>.Template template = ...;
JsonObject jsonObject = ...;
instance.serializeToJson(template, jsonObject);
net.minecraft.commands.arguments.ResourceKeyArgument$Info#serializeToNetwork(ResourceKeyArgument.Info<T>.Template,FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceKeyArgument.java:135 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Network
ทำงานยังไง
เรียกต่อ: writeResourceKey().
Parameters
ResourceKeyArgument.Info<T>.Template templateFriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
ResourceKeyArgument.Info instance = ...;
ResourceKeyArgument.Info<T>.Template template = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.serializeToNetwork(template, friendlyByteBuf);
net.minecraft.commands.arguments.ResourceKeyArgument$Info#unpack(ResourceKeyArgument<T>)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceKeyArgument.java:147 - Modifiers:
public - Return:
ResourceKeyArgument.Info<T>.Template
คืออะไร
ดำเนินการ unpack ตาม implementation ของ ResourceKeyArgument$Info
ทำงานยังไง
เรียกต่อ: Template(). สร้างออบเจ็กต์: ResourceKeyArgument.Info.Template. คืนค่า: new ResourceKeyArgument.Info.Template(resourceKeyArgument.registryKey).
Parameters
ResourceKeyArgument<T> resourceKeyArgument
ตัวอย่างใช้งาน
ResourceKeyArgument.Info instance = ...;
ResourceKeyArgument<T> resourceKeyArgument = ...;
ResourceKeyArgument.Info<T>.Template result = instance.unpack(resourceKeyArgument);
ResourceKeyArgument$Info$Template
- Full name:
net.minecraft.commands.arguments.ResourceKeyArgument$Info$Template - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ResourceKeyArgument.java - Type:
class - Modifiers:
public final - Implements:
ArgumentTypeInfo.Template<ResourceKeyArgument<T>>
net.minecraft.commands.arguments.ResourceKeyArgument$Info$Template#instantiate(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceKeyArgument.java:158 - Modifiers:
public - Return:
ResourceKeyArgument<T>
คืออะไร
ดำเนินการ instantiate ตาม implementation ของ ResourceKeyArgument$Info$Template
ทำงานยังไง
สร้างออบเจ็กต์: ResourceKeyArgument<>. คืนค่า: new ResourceKeyArgument<>(this.registryKey).
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
ResourceKeyArgument.Info.Template instance = ...;
CommandBuildContext commandBuildContext = ...;
ResourceKeyArgument<T> result = instance.instantiate(commandBuildContext);
net.minecraft.commands.arguments.ResourceKeyArgument$Info$Template#type()
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceKeyArgument.java:162 - Modifiers:
public - Return:
ArgumentTypeInfo<ResourceKeyArgument<T>, ?>
คืออะไร
ดำเนินการ type ตาม implementation ของ ResourceKeyArgument$Info$Template
ทำงานยังไง
คืนค่า: Info.this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ResourceKeyArgument.Info.Template instance = ...;
ArgumentTypeInfo<ResourceKeyArgument<T>, ?> result = instance.type();
ResourceLocationArgument
- Full name:
net.minecraft.commands.arguments.ResourceLocationArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ResourceLocationArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<ResourceLocation>
net.minecraft.commands.arguments.ResourceLocationArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceLocationArgument.java:27 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ResourceLocationArgument#getId(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceLocationArgument.java:19 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
อ่านค่า Id
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, ResourceLocation.class).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
ResourceLocation result = ResourceLocationArgument.getId(commandContext, "value");
net.minecraft.commands.arguments.ResourceLocationArgument#id()
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceLocationArgument.java:15 - Modifiers:
public static - Return:
ResourceLocationArgument
คืออะไร
ดำเนินการ id ตาม implementation ของ ResourceLocationArgument
ทำงานยังไง
สร้างออบเจ็กต์: ResourceLocationArgument. คืนค่า: new ResourceLocationArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ResourceLocationArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceLocationArgument.java:23 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
เรียกต่อ: read(). คืนค่า: ResourceLocation.read(stringReader).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
ResourceLocationArgument instance = ...;
StringReader stringReader = ...;
ResourceLocation result = instance.parse(stringReader);
ResourceOrIdArgument
- Full name:
net.minecraft.commands.arguments.ResourceOrIdArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ResourceOrIdArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<Holder<T>>
net.minecraft.commands.arguments.ResourceOrIdArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrIdArgument.java:110 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ResourceOrIdArgument#getLootModifier(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrIdArgument.java:61 - Modifiers:
public static - Return:
Holder<LootItemFunction>
คืออะไร
อ่านค่า Loot Modifier
ทำงานยังไง
เรียกต่อ: getResource(). คืนค่า: getResource(commandContext, string).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Holder<LootItemFunction> result = ResourceOrIdArgument.getLootModifier(commandContext, "value");
net.minecraft.commands.arguments.ResourceOrIdArgument#getLootPredicate(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrIdArgument.java:69 - Modifiers:
public static - Return:
Holder<LootItemCondition>
คืออะไร
อ่านค่า Loot Predicate
ทำงานยังไง
เรียกต่อ: getResource(). คืนค่า: getResource(commandContext, string).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Holder<LootItemCondition> result = ResourceOrIdArgument.getLootPredicate(commandContext, "value");
net.minecraft.commands.arguments.ResourceOrIdArgument#getLootTable(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrIdArgument.java:53 - Modifiers:
public static - Return:
Holder<LootTable>
คืออะไร
อ่านค่า Loot Table
ทำงานยังไง
เรียกต่อ: getResource(). คืนค่า: getResource(commandContext, string).
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Holder<LootTable> result = ResourceOrIdArgument.getLootTable(commandContext, "value");
net.minecraft.commands.arguments.ResourceOrIdArgument#lootModifier(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrIdArgument.java:57 - Modifiers:
public static - Return:
ResourceOrIdArgument.LootModifierArgument
คืออะไร
ดำเนินการ lootModifier ตาม implementation ของ ResourceOrIdArgument
ทำงานยังไง
เรียกต่อ: LootModifierArgument(). สร้างออบเจ็กต์: ResourceOrIdArgument.LootModifierArgument. คืนค่า: new ResourceOrIdArgument.LootModifierArgument(commandBuildContext).
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
CommandBuildContext commandBuildContext = ...;
ResourceOrIdArgument.LootModifierArgument result = ResourceOrIdArgument.lootModifier(commandBuildContext);
net.minecraft.commands.arguments.ResourceOrIdArgument#lootPredicate(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrIdArgument.java:65 - Modifiers:
public static - Return:
ResourceOrIdArgument.LootPredicateArgument
คืออะไร
ดำเนินการ lootPredicate ตาม implementation ของ ResourceOrIdArgument
ทำงานยังไง
เรียกต่อ: LootPredicateArgument(). สร้างออบเจ็กต์: ResourceOrIdArgument.LootPredicateArgument. คืนค่า: new ResourceOrIdArgument.LootPredicateArgument(commandBuildContext).
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
CommandBuildContext commandBuildContext = ...;
ResourceOrIdArgument.LootPredicateArgument result = ResourceOrIdArgument.lootPredicate(commandBuildContext);
net.minecraft.commands.arguments.ResourceOrIdArgument#lootTable(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrIdArgument.java:49 - Modifiers:
public static - Return:
ResourceOrIdArgument.LootTableArgument
คืออะไร
ดำเนินการ lootTable ตาม implementation ของ ResourceOrIdArgument
ทำงานยังไง
เรียกต่อ: LootTableArgument(). สร้างออบเจ็กต์: ResourceOrIdArgument.LootTableArgument. คืนค่า: new ResourceOrIdArgument.LootTableArgument(commandBuildContext).
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
CommandBuildContext commandBuildContext = ...;
ResourceOrIdArgument.LootTableArgument result = ResourceOrIdArgument.lootTable(commandBuildContext);
net.minecraft.commands.arguments.ResourceOrIdArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrIdArgument.java:77 - Modifiers:
public - Return:
Holder<T>
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: parseInlineOrId(), createSerializationContext(), getOrThrow(), createWithContext(). มีจุด return อย่างน้อย 2 จุด.
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
ResourceOrIdArgument instance = ...;
StringReader stringReader = ...;
Holder<T> result = instance.parse(stringReader);
net.minecraft.commands.arguments.ResourceOrIdArgument#ResourceOrIdArgument(CommandBuildContext,ResourceKey<Registry<T>>,Codec<Holder<T>>)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrIdArgument.java:43 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ResourceOrIdArgument ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: registryLookup, hasRegistry, codec. เรียกต่อ: lookup(), isPresent().
Parameters
CommandBuildContext commandBuildContextResourceKey<Registry<T>> resourceKeyCodec<Holder<T>> codec
ตัวอย่างใช้งาน
CommandBuildContext commandBuildContext = ...;
ResourceKey<Registry<T>> resourceKey = ...;
Codec<Holder<T>> codec = ...;
ResourceOrIdArgument instance = new ResourceOrIdArgument(commandBuildContext, resourceKey, codec);
ResourceOrIdArgument$LootModifierArgument
- Full name:
net.minecraft.commands.arguments.ResourceOrIdArgument$LootModifierArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ResourceOrIdArgument.java - Type:
class - Modifiers:
public static - Extends:
ResourceOrIdArgument<LootItemFunction>
net.minecraft.commands.arguments.ResourceOrIdArgument$LootModifierArgument#LootModifierArgument(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrIdArgument.java:116 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ResourceOrIdArgument.LootModifierArgument ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
CommandBuildContext commandBuildContext = ...;
ResourceOrIdArgument.LootModifierArgument instance = new ResourceOrIdArgument.LootModifierArgument(commandBuildContext);
ResourceOrIdArgument$LootPredicateArgument
- Full name:
net.minecraft.commands.arguments.ResourceOrIdArgument$LootPredicateArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ResourceOrIdArgument.java - Type:
class - Modifiers:
public static - Extends:
ResourceOrIdArgument<LootItemCondition>
net.minecraft.commands.arguments.ResourceOrIdArgument$LootPredicateArgument#LootPredicateArgument(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrIdArgument.java:122 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ResourceOrIdArgument.LootPredicateArgument ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
CommandBuildContext commandBuildContext = ...;
ResourceOrIdArgument.LootPredicateArgument instance = new ResourceOrIdArgument.LootPredicateArgument(commandBuildContext);
ResourceOrIdArgument$LootTableArgument
- Full name:
net.minecraft.commands.arguments.ResourceOrIdArgument$LootTableArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ResourceOrIdArgument.java - Type:
class - Modifiers:
public static - Extends:
ResourceOrIdArgument<LootTable>
net.minecraft.commands.arguments.ResourceOrIdArgument$LootTableArgument#LootTableArgument(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrIdArgument.java:128 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ResourceOrIdArgument.LootTableArgument ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
CommandBuildContext commandBuildContext = ...;
ResourceOrIdArgument.LootTableArgument instance = new ResourceOrIdArgument.LootTableArgument(commandBuildContext);
ResourceOrTagArgument
- Full name:
net.minecraft.commands.arguments.ResourceOrTagArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ResourceOrTagArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<ResourceOrTagArgument.Result<T>>
net.minecraft.commands.arguments.ResourceOrTagArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagArgument.java:98 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ResourceOrTagArgument#getResourceOrTag(CommandContext<CommandSourceStack>,String,ResourceKey<Registry<T>>)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagArgument.java:52 - Modifiers:
public static - Return:
ResourceOrTagArgument.Result<T>
คืออะไร
อ่านค่า Resource Or Tag
ทำงานยังไง
เรียกต่อ: getArgument(), cast(), orElseThrow(), unwrap(), map(), key(), create(), location(). มีจุด return อย่างน้อย 3 จุด.
Parameters
CommandContext<CommandSourceStack> commandContextString stringResourceKey<Registry<T>> resourceKey
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
ResourceKey<Registry<T>> resourceKey = ...;
ResourceOrTagArgument.Result<T> result = ResourceOrTagArgument.getResourceOrTag(commandContext, "value", resourceKey);
net.minecraft.commands.arguments.ResourceOrTagArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagArgument.java:92 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ ResourceOrTagArgument
ทำงานยังไง
เรียกต่อ: suggestResource(), listTagIds(), map(), listElementIds(). คืนค่า: SharedSuggestionProvider.suggestResource(this.registryLookup.listElementIds().map(ResourceKey::location), suggestionsBuilder).
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
ResourceOrTagArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.ResourceOrTagArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagArgument.java:66 - Modifiers:
public - Return:
ResourceOrTagArgument.Result<T>
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: canRead(), peek(), getCursor(), skip(), read(), create(), get(), orElseThrow(). สร้างออบเจ็กต์: ResourceOrTagArgument.TagResult<>, ResourceOrTagArgument.ResourceResult<>. มีจุด return อย่างน้อย 2 จุด.
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
ResourceOrTagArgument instance = ...;
StringReader stringReader = ...;
ResourceOrTagArgument.Result<T> result = instance.parse(stringReader);
net.minecraft.commands.arguments.ResourceOrTagArgument#resourceOrTag(CommandBuildContext,ResourceKey<? extends Registry<T>>)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagArgument.java:48 - Modifiers:
public static - Return:
ResourceOrTagArgument<T>
คืออะไร
ดำเนินการ resourceOrTag ตาม implementation ของ ResourceOrTagArgument
ทำงานยังไง
สร้างออบเจ็กต์: ResourceOrTagArgument<>. คืนค่า: new ResourceOrTagArgument<>(commandBuildContext, resourceKey).
Parameters
CommandBuildContext commandBuildContextResourceKey<? extends Registry<T>> resourceKey
ตัวอย่างใช้งาน
CommandBuildContext commandBuildContext = ...;
ResourceKey<? extends Registry<T>> resourceKey = ...;
ResourceOrTagArgument<T> result = ResourceOrTagArgument.resourceOrTag(commandBuildContext, resourceKey);
net.minecraft.commands.arguments.ResourceOrTagArgument#ResourceOrTagArgument(CommandBuildContext,ResourceKey<? extends Registry<T>>)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagArgument.java:43 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ResourceOrTagArgument ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: registryKey, registryLookup. เรียกต่อ: lookupOrThrow().
Parameters
CommandBuildContext commandBuildContextResourceKey<? extends Registry<T>> resourceKey
ตัวอย่างใช้งาน
CommandBuildContext commandBuildContext = ...;
ResourceKey<? extends Registry<T>> resourceKey = ...;
ResourceOrTagArgument instance = new ResourceOrTagArgument(commandBuildContext, resourceKey);
ResourceOrTagArgument$Info
- Full name:
net.minecraft.commands.arguments.ResourceOrTagArgument$Info - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ResourceOrTagArgument.java - Type:
class - Modifiers:
public static - Implements:
ArgumentTypeInfo<ResourceOrTagArgument<T>, ResourceOrTagArgument.Info<T>.Template>
net.minecraft.commands.arguments.ResourceOrTagArgument$Info#deserializeFromNetwork(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagArgument.java:108 - Modifiers:
public - Return:
ResourceOrTagArgument.Info<T>.Template
คืออะไร
สร้างออบเจ็กต์กลับจากข้อมูล From Network
ทำงานยังไง
เรียกต่อ: Template(), readRegistryKey(). สร้างออบเจ็กต์: ResourceOrTagArgument.Info.Template. คืนค่า: new ResourceOrTagArgument.Info.Template(friendlyByteBuf.readRegistryKey()).
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
ResourceOrTagArgument.Info instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
ResourceOrTagArgument.Info<T>.Template result = instance.deserializeFromNetwork(friendlyByteBuf);
net.minecraft.commands.arguments.ResourceOrTagArgument$Info#serializeToJson(ResourceOrTagArgument.Info<T>.Template,JsonObject)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagArgument.java:112 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Json
ทำงานยังไง
เรียกต่อ: addProperty(), location(), toString().
Parameters
ResourceOrTagArgument.Info<T>.Template templateJsonObject jsonObject
ตัวอย่างใช้งาน
ResourceOrTagArgument.Info instance = ...;
ResourceOrTagArgument.Info<T>.Template template = ...;
JsonObject jsonObject = ...;
instance.serializeToJson(template, jsonObject);
net.minecraft.commands.arguments.ResourceOrTagArgument$Info#serializeToNetwork(ResourceOrTagArgument.Info<T>.Template,FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagArgument.java:104 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Network
ทำงานยังไง
เรียกต่อ: writeResourceKey().
Parameters
ResourceOrTagArgument.Info<T>.Template templateFriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
ResourceOrTagArgument.Info instance = ...;
ResourceOrTagArgument.Info<T>.Template template = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.serializeToNetwork(template, friendlyByteBuf);
net.minecraft.commands.arguments.ResourceOrTagArgument$Info#unpack(ResourceOrTagArgument<T>)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagArgument.java:116 - Modifiers:
public - Return:
ResourceOrTagArgument.Info<T>.Template
คืออะไร
ดำเนินการ unpack ตาม implementation ของ ResourceOrTagArgument$Info
ทำงานยังไง
เรียกต่อ: Template(). สร้างออบเจ็กต์: ResourceOrTagArgument.Info.Template. คืนค่า: new ResourceOrTagArgument.Info.Template(resourceOrTagArgument.registryKey).
Parameters
ResourceOrTagArgument<T> resourceOrTagArgument
ตัวอย่างใช้งาน
ResourceOrTagArgument.Info instance = ...;
ResourceOrTagArgument<T> resourceOrTagArgument = ...;
ResourceOrTagArgument.Info<T>.Template result = instance.unpack(resourceOrTagArgument);
ResourceOrTagArgument$Info$Template
- Full name:
net.minecraft.commands.arguments.ResourceOrTagArgument$Info$Template - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ResourceOrTagArgument.java - Type:
class - Modifiers:
public final - Implements:
ArgumentTypeInfo.Template<ResourceOrTagArgument<T>>
net.minecraft.commands.arguments.ResourceOrTagArgument$Info$Template#instantiate(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagArgument.java:127 - Modifiers:
public - Return:
ResourceOrTagArgument<T>
คืออะไร
ดำเนินการ instantiate ตาม implementation ของ ResourceOrTagArgument$Info$Template
ทำงานยังไง
สร้างออบเจ็กต์: ResourceOrTagArgument<>. คืนค่า: new ResourceOrTagArgument<>(commandBuildContext, this.registryKey).
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
ResourceOrTagArgument.Info.Template instance = ...;
CommandBuildContext commandBuildContext = ...;
ResourceOrTagArgument<T> result = instance.instantiate(commandBuildContext);
net.minecraft.commands.arguments.ResourceOrTagArgument$Info$Template#type()
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagArgument.java:131 - Modifiers:
public - Return:
ArgumentTypeInfo<ResourceOrTagArgument<T>, ?>
คืออะไร
ดำเนินการ type ตาม implementation ของ ResourceOrTagArgument$Info$Template
ทำงานยังไง
คืนค่า: Info.this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ResourceOrTagArgument.Info.Template instance = ...;
ArgumentTypeInfo<ResourceOrTagArgument<T>, ?> result = instance.type();
ResourceOrTagArgument$Result
- Full name:
net.minecraft.commands.arguments.ResourceOrTagArgument$Result - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ResourceOrTagArgument.java - Type:
interface - Modifiers:
public - Implements:
Predicate<Holder<T>>
net.minecraft.commands.arguments.ResourceOrTagArgument$Result#asPrintable()
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagArgument.java:164 - Modifiers: ``
- Return:
String
คืออะไร
ดำเนินการ asPrintable ตาม implementation ของ ResourceOrTagArgument$Result
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ResourceOrTagArgument$Result#cast(ResourceKey<? extends Registry<E>>)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagArgument.java:162 - Modifiers: ``
- Return:
Optional<ResourceOrTagArgument.Result<E>>
คืออะไร
ดำเนินการ cast ตาม implementation ของ ResourceOrTagArgument$Result
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ResourceKey<? extends Registry<E>> resourceKey
ตัวอย่างใช้งาน
ResourceOrTagArgument.Result instance = ...;
ResourceKey<? extends Registry<E>> resourceKey = ...;
Optional<ResourceOrTagArgument.Result<E>> result = instance.cast(resourceKey);
net.minecraft.commands.arguments.ResourceOrTagArgument$Result#unwrap()
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagArgument.java:160 - Modifiers: ``
- Return:
Either<Holder.Reference<T>, HolderSet.Named<T>>
คืออะไร
ดำเนินการ unwrap ตาม implementation ของ ResourceOrTagArgument$Result
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ResourceOrTagArgument.Result instance = ...;
Either<Holder.Reference<T>, HolderSet.Named<T>> result = instance.unwrap();
ResourceOrTagKeyArgument
- Full name:
net.minecraft.commands.arguments.ResourceOrTagKeyArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ResourceOrTagKeyArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<ResourceOrTagKeyArgument.Result<T>>
net.minecraft.commands.arguments.ResourceOrTagKeyArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagKeyArgument.java:76 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ResourceOrTagKeyArgument#getResourceOrTagKey(CommandContext<CommandSourceStack>,String,ResourceKey<Registry<T>>,DynamicCommandExceptionType)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagKeyArgument.java:40 - Modifiers:
public static - Return:
ResourceOrTagKeyArgument.Result<T>
คืออะไร
อ่านค่า Resource Or Tag Key
ทำงานยังไง
เรียกต่อ: getArgument(), cast(), orElseThrow(), create(). คืนค่า: optional.orElseThrow(() -> dynamicCommandExceptionType.create(result)).
Parameters
CommandContext<CommandSourceStack> commandContextString stringResourceKey<Registry<T>> resourceKeyDynamicCommandExceptionType dynamicCommandExceptionType
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
ResourceKey<Registry<T>> resourceKey = ...;
DynamicCommandExceptionType dynamicCommandExceptionType = ...;
ResourceOrTagKeyArgument.Result<T> result = ResourceOrTagKeyArgument.getResourceOrTagKey(commandContext, "value", resourceKey, dynamicCommandExceptionType);
net.minecraft.commands.arguments.ResourceOrTagKeyArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagKeyArgument.java:69 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ ResourceOrTagKeyArgument
ทำงานยังไง
เรียกต่อ: getSource(), suggestRegistryElements(), buildFuture().
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
ResourceOrTagKeyArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.ResourceOrTagKeyArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagKeyArgument.java:51 - Modifiers:
public - Return:
ResourceOrTagKeyArgument.Result<T>
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: canRead(), peek(), getCursor(), skip(), read(), create(), setCursor(). สร้างออบเจ็กต์: ResourceOrTagKeyArgument.TagResult<>, ResourceOrTagKeyArgument.ResourceResult<>. มีจุด return อย่างน้อย 2 จุด.
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
ResourceOrTagKeyArgument instance = ...;
StringReader stringReader = ...;
ResourceOrTagKeyArgument.Result<T> result = instance.parse(stringReader);
net.minecraft.commands.arguments.ResourceOrTagKeyArgument#resourceOrTagKey(ResourceKey<? extends Registry<T>>)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagKeyArgument.java:36 - Modifiers:
public static - Return:
ResourceOrTagKeyArgument<T>
คืออะไร
ดำเนินการ resourceOrTagKey ตาม implementation ของ ResourceOrTagKeyArgument
ทำงานยังไง
สร้างออบเจ็กต์: ResourceOrTagKeyArgument<>. คืนค่า: new ResourceOrTagKeyArgument<>(resourceKey).
Parameters
ResourceKey<? extends Registry<T>> resourceKey
ตัวอย่างใช้งาน
ResourceKey<? extends Registry<T>> resourceKey = ...;
ResourceOrTagKeyArgument<T> result = ResourceOrTagKeyArgument.resourceOrTagKey(resourceKey);
net.minecraft.commands.arguments.ResourceOrTagKeyArgument#ResourceOrTagKeyArgument(ResourceKey<? extends Registry<T>>)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagKeyArgument.java:32 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ResourceOrTagKeyArgument ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: registryKey.
Parameters
ResourceKey<? extends Registry<T>> resourceKey
ตัวอย่างใช้งาน
ResourceKey<? extends Registry<T>> resourceKey = ...;
ResourceOrTagKeyArgument instance = new ResourceOrTagKeyArgument(resourceKey);
ResourceOrTagKeyArgument$Info
- Full name:
net.minecraft.commands.arguments.ResourceOrTagKeyArgument$Info - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ResourceOrTagKeyArgument.java - Type:
class - Modifiers:
public static - Implements:
ArgumentTypeInfo<ResourceOrTagKeyArgument<T>, ResourceOrTagKeyArgument.Info<T>.Template>
net.minecraft.commands.arguments.ResourceOrTagKeyArgument$Info#deserializeFromNetwork(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagKeyArgument.java:86 - Modifiers:
public - Return:
ResourceOrTagKeyArgument.Info<T>.Template
คืออะไร
สร้างออบเจ็กต์กลับจากข้อมูล From Network
ทำงานยังไง
เรียกต่อ: Template(), readRegistryKey(). สร้างออบเจ็กต์: ResourceOrTagKeyArgument.Info.Template. คืนค่า: new ResourceOrTagKeyArgument.Info.Template(friendlyByteBuf.readRegistryKey()).
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
ResourceOrTagKeyArgument.Info instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
ResourceOrTagKeyArgument.Info<T>.Template result = instance.deserializeFromNetwork(friendlyByteBuf);
net.minecraft.commands.arguments.ResourceOrTagKeyArgument$Info#serializeToJson(ResourceOrTagKeyArgument.Info<T>.Template,JsonObject)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagKeyArgument.java:90 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Json
ทำงานยังไง
เรียกต่อ: addProperty(), location(), toString().
Parameters
ResourceOrTagKeyArgument.Info<T>.Template templateJsonObject jsonObject
ตัวอย่างใช้งาน
ResourceOrTagKeyArgument.Info instance = ...;
ResourceOrTagKeyArgument.Info<T>.Template template = ...;
JsonObject jsonObject = ...;
instance.serializeToJson(template, jsonObject);
net.minecraft.commands.arguments.ResourceOrTagKeyArgument$Info#serializeToNetwork(ResourceOrTagKeyArgument.Info<T>.Template,FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagKeyArgument.java:82 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Network
ทำงานยังไง
เรียกต่อ: writeResourceKey().
Parameters
ResourceOrTagKeyArgument.Info<T>.Template templateFriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
ResourceOrTagKeyArgument.Info instance = ...;
ResourceOrTagKeyArgument.Info<T>.Template template = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.serializeToNetwork(template, friendlyByteBuf);
net.minecraft.commands.arguments.ResourceOrTagKeyArgument$Info#unpack(ResourceOrTagKeyArgument<T>)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagKeyArgument.java:94 - Modifiers:
public - Return:
ResourceOrTagKeyArgument.Info<T>.Template
คืออะไร
ดำเนินการ unpack ตาม implementation ของ ResourceOrTagKeyArgument$Info
ทำงานยังไง
เรียกต่อ: Template(). สร้างออบเจ็กต์: ResourceOrTagKeyArgument.Info.Template. คืนค่า: new ResourceOrTagKeyArgument.Info.Template(resourceOrTagKeyArgument.registryKey).
Parameters
ResourceOrTagKeyArgument<T> resourceOrTagKeyArgument
ตัวอย่างใช้งาน
ResourceOrTagKeyArgument.Info instance = ...;
ResourceOrTagKeyArgument<T> resourceOrTagKeyArgument = ...;
ResourceOrTagKeyArgument.Info<T>.Template result = instance.unpack(resourceOrTagKeyArgument);
ResourceOrTagKeyArgument$Info$Template
- Full name:
net.minecraft.commands.arguments.ResourceOrTagKeyArgument$Info$Template - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ResourceOrTagKeyArgument.java - Type:
class - Modifiers:
public final - Implements:
ArgumentTypeInfo.Template<ResourceOrTagKeyArgument<T>>
net.minecraft.commands.arguments.ResourceOrTagKeyArgument$Info$Template#instantiate(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagKeyArgument.java:105 - Modifiers:
public - Return:
ResourceOrTagKeyArgument<T>
คืออะไร
ดำเนินการ instantiate ตาม implementation ของ ResourceOrTagKeyArgument$Info$Template
ทำงานยังไง
สร้างออบเจ็กต์: ResourceOrTagKeyArgument<>. คืนค่า: new ResourceOrTagKeyArgument<>(this.registryKey).
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
ResourceOrTagKeyArgument.Info.Template instance = ...;
CommandBuildContext commandBuildContext = ...;
ResourceOrTagKeyArgument<T> result = instance.instantiate(commandBuildContext);
net.minecraft.commands.arguments.ResourceOrTagKeyArgument$Info$Template#type()
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagKeyArgument.java:109 - Modifiers:
public - Return:
ArgumentTypeInfo<ResourceOrTagKeyArgument<T>, ?>
คืออะไร
ดำเนินการ type ตาม implementation ของ ResourceOrTagKeyArgument$Info$Template
ทำงานยังไง
คืนค่า: Info.this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ResourceOrTagKeyArgument.Info.Template instance = ...;
ArgumentTypeInfo<ResourceOrTagKeyArgument<T>, ?> result = instance.type();
ResourceOrTagKeyArgument$Result
- Full name:
net.minecraft.commands.arguments.ResourceOrTagKeyArgument$Result - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ResourceOrTagKeyArgument.java - Type:
interface - Modifiers:
public - Implements:
Predicate<Holder<T>>
net.minecraft.commands.arguments.ResourceOrTagKeyArgument$Result#asPrintable()
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagKeyArgument.java:142 - Modifiers: ``
- Return:
String
คืออะไร
ดำเนินการ asPrintable ตาม implementation ของ ResourceOrTagKeyArgument$Result
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ResourceOrTagKeyArgument$Result#cast(ResourceKey<? extends Registry<E>>)
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagKeyArgument.java:140 - Modifiers: ``
- Return:
Optional<ResourceOrTagKeyArgument.Result<E>>
คืออะไร
ดำเนินการ cast ตาม implementation ของ ResourceOrTagKeyArgument$Result
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ResourceKey<? extends Registry<E>> resourceKey
ตัวอย่างใช้งาน
ResourceOrTagKeyArgument.Result instance = ...;
ResourceKey<? extends Registry<E>> resourceKey = ...;
Optional<ResourceOrTagKeyArgument.Result<E>> result = instance.cast(resourceKey);
net.minecraft.commands.arguments.ResourceOrTagKeyArgument$Result#unwrap()
- Origin:
common - Source:
net/minecraft/commands/arguments/ResourceOrTagKeyArgument.java:138 - Modifiers: ``
- Return:
Either<ResourceKey<T>, TagKey<T>>
คืออะไร
ดำเนินการ unwrap ตาม implementation ของ ResourceOrTagKeyArgument$Result
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ResourceOrTagKeyArgument.Result instance = ...;
Either<ResourceKey<T>, TagKey<T>> result = instance.unwrap();
ScoreboardSlotArgument
- Full name:
net.minecraft.commands.arguments.ScoreboardSlotArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ScoreboardSlotArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<DisplaySlot>
net.minecraft.commands.arguments.ScoreboardSlotArgument#displaySlot()
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreboardSlotArgument.java:27 - Modifiers:
public static - Return:
ScoreboardSlotArgument
คืออะไร
ดำเนินการ displaySlot ตาม implementation ของ ScoreboardSlotArgument
ทำงานยังไง
สร้างออบเจ็กต์: ScoreboardSlotArgument. คืนค่า: new ScoreboardSlotArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ScoreboardSlotArgument#getDisplaySlot(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreboardSlotArgument.java:31 - Modifiers:
public static - Return:
DisplaySlot
คืออะไร
อ่านค่า Display Slot
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, DisplaySlot.class).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
DisplaySlot result = ScoreboardSlotArgument.getDisplaySlot(commandContext, "value");
net.minecraft.commands.arguments.ScoreboardSlotArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreboardSlotArgument.java:50 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ScoreboardSlotArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreboardSlotArgument.java:45 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ ScoreboardSlotArgument
ทำงานยังไง
เรียกต่อ: suggest(), stream(), values(), map(). คืนค่า: SharedSuggestionProvider.suggest(Arrays.stream(DisplaySlot.values()).map(DisplaySlot::getSerializedName), suggestionsBuilder).
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
ScoreboardSlotArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.ScoreboardSlotArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreboardSlotArgument.java:35 - Modifiers:
public - Return:
DisplaySlot
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: readUnquotedString(), byName(), createWithContext(). คืนค่า: displaySlot.
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
ScoreboardSlotArgument instance = ...;
StringReader stringReader = ...;
DisplaySlot result = instance.parse(stringReader);
ScoreHolderArgument
- Full name:
net.minecraft.commands.arguments.ScoreHolderArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ScoreHolderArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<ScoreHolderArgument.Result>
net.minecraft.commands.arguments.ScoreHolderArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreHolderArgument.java:163 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ScoreHolderArgument#getName(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreHolderArgument.java:54 - Modifiers:
public static - Return:
ScoreHolder
คืออะไร
อ่านค่า Name
ทำงานยังไง
เรียกต่อ: getNames(), iterator(), next(). คืนค่า: getNames(commandContext, string).iterator().next().
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
ScoreHolder result = ScoreHolderArgument.getName(commandContext, "value");
net.minecraft.commands.arguments.ScoreHolderArgument#getNames(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreHolderArgument.java:58 - Modifiers:
public static - Return:
Collection<ScoreHolder>
คืออะไร
อ่านค่า Names
ทำงานยังไง
คืนค่า: getNames(commandContext, string, Collections::emptyList).
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Collection<ScoreHolder> result = ScoreHolderArgument.getNames(commandContext, "value");
net.minecraft.commands.arguments.ScoreHolderArgument#getNames(CommandContext<CommandSourceStack>,String,Supplier<Collection<ScoreHolder>>)
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreHolderArgument.java:66 - Modifiers:
public static - Return:
Collection<ScoreHolder>
คืออะไร
อ่านค่า Names
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getArgument(), getSource(), isEmpty(), create(). คืนค่า: collection.
Parameters
CommandContext<CommandSourceStack> commandContextString stringSupplier<Collection<ScoreHolder>> supplier
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Supplier<Collection<ScoreHolder>> supplier = ...;
Collection<ScoreHolder> result = ScoreHolderArgument.getNames(commandContext, "value", supplier);
net.minecraft.commands.arguments.ScoreHolderArgument#getNamesWithDefaultWildcard(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreHolderArgument.java:62 - Modifiers:
public static - Return:
Collection<ScoreHolder>
คืออะไร
อ่านค่า Names With Default Wildcard
ทำงานยังไง
เรียกต่อ: getNames(), getSource(), getServer(), getScoreboard(). คืนค่า: getNames(commandContext, string, commandContext.getSource().getServer().getScoreboard()::getTrackedPlayers).
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Collection<ScoreHolder> result = ScoreHolderArgument.getNamesWithDefaultWildcard(commandContext, "value");
net.minecraft.commands.arguments.ScoreHolderArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreHolderArgument.java:83 - Modifiers:
public - Return:
ScoreHolderArgument.Result
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
คืนค่า: this.parse(stringReader, true).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
ScoreHolderArgument instance = ...;
StringReader stringReader = ...;
ScoreHolderArgument.Result result = instance.parse(stringReader);
net.minecraft.commands.arguments.ScoreHolderArgument#parse(StringReader,S)
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreHolderArgument.java:87 - Modifiers:
public - Return:
ScoreHolderArgument.Result
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
เรียกต่อ: allowSelectors(). คืนค่า: this.parse(stringReader, EntitySelectorParser.allowSelectors(object)).
Parameters
StringReader stringReaderS object
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
ScoreHolderArgument instance = ...;
StringReader stringReader = ...;
S object = ...;
ScoreHolderArgument.Result result = instance.parse(stringReader, object);
net.minecraft.commands.arguments.ScoreHolderArgument#scoreHolder()
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreHolderArgument.java:75 - Modifiers:
public static - Return:
ScoreHolderArgument
คืออะไร
ดำเนินการ scoreHolder ตาม implementation ของ ScoreHolderArgument
ทำงานยังไง
สร้างออบเจ็กต์: ScoreHolderArgument. คืนค่า: new ScoreHolderArgument(false).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ScoreHolderArgument#ScoreHolderArgument(boolean)
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreHolderArgument.java:50 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ScoreHolderArgument ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: multiple.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.ScoreHolderArgument#scoreHolders()
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreHolderArgument.java:79 - Modifiers:
public static - Return:
ScoreHolderArgument
คืออะไร
ดำเนินการ scoreHolders ตาม implementation ของ ScoreHolderArgument
ทำงานยังไง
สร้างออบเจ็กต์: ScoreHolderArgument. คืนค่า: new ScoreHolderArgument(true).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ScoreHolderArgument$Info
- Full name:
net.minecraft.commands.arguments.ScoreHolderArgument$Info - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ScoreHolderArgument.java - Type:
class - Modifiers:
public static - Implements:
ArgumentTypeInfo<ScoreHolderArgument, ScoreHolderArgument.Info.Template>
net.minecraft.commands.arguments.ScoreHolderArgument$Info#deserializeFromNetwork(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreHolderArgument.java:180 - Modifiers:
public - Return:
ScoreHolderArgument.Info.Template
คืออะไร
สร้างออบเจ็กต์กลับจากข้อมูล From Network
ทำงานยังไง
เรียกต่อ: readByte(), Template(). สร้างออบเจ็กต์: ScoreHolderArgument.Info.Template. คืนค่า: new ScoreHolderArgument.Info.Template(bl).
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
ScoreHolderArgument.Info instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
ScoreHolderArgument.Info.Template result = instance.deserializeFromNetwork(friendlyByteBuf);
net.minecraft.commands.arguments.ScoreHolderArgument$Info#serializeToJson(ScoreHolderArgument.Info.Template,JsonObject)
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreHolderArgument.java:186 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Json
ทำงานยังไง
เรียกต่อ: addProperty().
Parameters
ScoreHolderArgument.Info.Template templateJsonObject jsonObject
ตัวอย่างใช้งาน
ScoreHolderArgument.Info instance = ...;
ScoreHolderArgument.Info.Template template = ...;
JsonObject jsonObject = ...;
instance.serializeToJson(template, jsonObject);
net.minecraft.commands.arguments.ScoreHolderArgument$Info#serializeToNetwork(ScoreHolderArgument.Info.Template,FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreHolderArgument.java:171 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Network
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: writeByte().
Parameters
ScoreHolderArgument.Info.Template templateFriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
ScoreHolderArgument.Info instance = ...;
ScoreHolderArgument.Info.Template template = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.serializeToNetwork(template, friendlyByteBuf);
net.minecraft.commands.arguments.ScoreHolderArgument$Info#unpack(ScoreHolderArgument)
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreHolderArgument.java:190 - Modifiers:
public - Return:
ScoreHolderArgument.Info.Template
คืออะไร
ดำเนินการ unpack ตาม implementation ของ ScoreHolderArgument$Info
ทำงานยังไง
เรียกต่อ: Template(). สร้างออบเจ็กต์: ScoreHolderArgument.Info.Template. คืนค่า: new ScoreHolderArgument.Info.Template(scoreHolderArgument.multiple).
Parameters
ScoreHolderArgument scoreHolderArgument
ตัวอย่างใช้งาน
ScoreHolderArgument.Info instance = ...;
ScoreHolderArgument scoreHolderArgument = ...;
ScoreHolderArgument.Info.Template result = instance.unpack(scoreHolderArgument);
ScoreHolderArgument$Info$Template
- Full name:
net.minecraft.commands.arguments.ScoreHolderArgument$Info$Template - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ScoreHolderArgument.java - Type:
class - Modifiers:
public final - Implements:
ArgumentTypeInfo.Template<ScoreHolderArgument>
net.minecraft.commands.arguments.ScoreHolderArgument$Info$Template#instantiate(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreHolderArgument.java:201 - Modifiers:
public - Return:
ScoreHolderArgument
คืออะไร
ดำเนินการ instantiate ตาม implementation ของ ScoreHolderArgument$Info$Template
ทำงานยังไง
สร้างออบเจ็กต์: ScoreHolderArgument. คืนค่า: new ScoreHolderArgument(this.multiple).
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
ScoreHolderArgument.Info.Template instance = ...;
CommandBuildContext commandBuildContext = ...;
ScoreHolderArgument result = instance.instantiate(commandBuildContext);
net.minecraft.commands.arguments.ScoreHolderArgument$Info$Template#type()
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreHolderArgument.java:205 - Modifiers:
public - Return:
ArgumentTypeInfo<ScoreHolderArgument, ?>
คืออะไร
ดำเนินการ type ตาม implementation ของ ScoreHolderArgument$Info$Template
ทำงานยังไง
คืนค่า: Info.this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ScoreHolderArgument.Info.Template instance = ...;
ArgumentTypeInfo<ScoreHolderArgument, ?> result = instance.type();
ScoreHolderArgument$Result
- Full name:
net.minecraft.commands.arguments.ScoreHolderArgument$Result - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ScoreHolderArgument.java - Type:
interface - Modifiers:
public
net.minecraft.commands.arguments.ScoreHolderArgument$Result#getNames(CommandSourceStack,Supplier<Collection<ScoreHolder>>)
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreHolderArgument.java:214 - Modifiers: ``
- Return:
Collection<ScoreHolder>
คืออะไร
อ่านค่า Names
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
CommandSourceStack commandSourceStackSupplier<Collection<ScoreHolder>> supplier
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
ScoreHolderArgument.Result instance = ...;
CommandSourceStack commandSourceStack = ...;
Supplier<Collection<ScoreHolder>> supplier = ...;
Collection<ScoreHolder> result = instance.getNames(commandSourceStack, supplier);
ScoreHolderArgument$SelectorResult
- Full name:
net.minecraft.commands.arguments.ScoreHolderArgument$SelectorResult - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/ScoreHolderArgument.java - Type:
class - Modifiers:
public static - Implements:
ScoreHolderArgument.Result
net.minecraft.commands.arguments.ScoreHolderArgument$SelectorResult#getNames(CommandSourceStack,Supplier<Collection<ScoreHolder>>)
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreHolderArgument.java:224 - Modifiers:
public - Return:
Collection<ScoreHolder>
คืออะไร
อ่านค่า Names
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: findEntities(), isEmpty(), create(), copyOf(). คืนค่า: List.copyOf(list).
Parameters
CommandSourceStack commandSourceStackSupplier<Collection<ScoreHolder>> supplier
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
ScoreHolderArgument.SelectorResult instance = ...;
CommandSourceStack commandSourceStack = ...;
Supplier<Collection<ScoreHolder>> supplier = ...;
Collection<ScoreHolder> result = instance.getNames(commandSourceStack, supplier);
net.minecraft.commands.arguments.ScoreHolderArgument$SelectorResult#SelectorResult(EntitySelector)
- Origin:
common - Source:
net/minecraft/commands/arguments/ScoreHolderArgument.java:220 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ScoreHolderArgument.SelectorResult ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: selector.
Parameters
EntitySelector entitySelector
ตัวอย่างใช้งาน
EntitySelector entitySelector = ...;
ScoreHolderArgument.SelectorResult instance = new ScoreHolderArgument.SelectorResult(entitySelector);
SlotArgument
- Full name:
net.minecraft.commands.arguments.SlotArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/SlotArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<Integer>
net.minecraft.commands.arguments.SlotArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/SlotArgument.java:54 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.SlotArgument#getSlot(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/SlotArgument.java:33 - Modifiers:
public static - Return:
int
คืออะไร
อ่านค่า Slot
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, Integer.class).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
int result = SlotArgument.getSlot(commandContext, "value");
net.minecraft.commands.arguments.SlotArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/SlotArgument.java:49 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ SlotArgument
ทำงานยังไง
เรียกต่อ: suggest(), singleSlotNames(). คืนค่า: SharedSuggestionProvider.suggest(SlotRanges.singleSlotNames(), suggestionsBuilder).
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
SlotArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.SlotArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/SlotArgument.java:37 - Modifiers:
public - Return:
Integer
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: readWhile(), nameToIds(), createWithContext(), size(), slots(), getInt(). คืนค่า: slotRange.slots().getInt(0).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
SlotArgument instance = ...;
StringReader stringReader = ...;
Integer result = instance.parse(stringReader);
net.minecraft.commands.arguments.SlotArgument#slot()
- Origin:
common - Source:
net/minecraft/commands/arguments/SlotArgument.java:29 - Modifiers:
public static - Return:
SlotArgument
คืออะไร
ดำเนินการ slot ตาม implementation ของ SlotArgument
ทำงานยังไง
สร้างออบเจ็กต์: SlotArgument. คืนค่า: new SlotArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SlotsArgument
- Full name:
net.minecraft.commands.arguments.SlotsArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/SlotsArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<SlotRange>
net.minecraft.commands.arguments.SlotsArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/SlotsArgument.java:49 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.SlotsArgument#getSlots(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/SlotsArgument.java:30 - Modifiers:
public static - Return:
SlotRange
คืออะไร
อ่านค่า Slots
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, SlotRange.class).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
SlotRange result = SlotsArgument.getSlots(commandContext, "value");
net.minecraft.commands.arguments.SlotsArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/SlotsArgument.java:44 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ SlotsArgument
ทำงานยังไง
เรียกต่อ: suggest(), allNames(). คืนค่า: SharedSuggestionProvider.suggest(SlotRanges.allNames(), suggestionsBuilder).
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
SlotsArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.SlotsArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/SlotsArgument.java:34 - Modifiers:
public - Return:
SlotRange
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: readWhile(), nameToIds(), createWithContext(). คืนค่า: slotRange.
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
SlotsArgument instance = ...;
StringReader stringReader = ...;
SlotRange result = instance.parse(stringReader);
net.minecraft.commands.arguments.SlotsArgument#slots()
- Origin:
common - Source:
net/minecraft/commands/arguments/SlotsArgument.java:26 - Modifiers:
public static - Return:
SlotsArgument
คืออะไร
ดำเนินการ slots ตาม implementation ของ SlotsArgument
ทำงานยังไง
สร้างออบเจ็กต์: SlotsArgument. คืนค่า: new SlotsArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
StringRepresentableArgument
- Full name:
net.minecraft.commands.arguments.StringRepresentableArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/StringRepresentableArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<T>
net.minecraft.commands.arguments.StringRepresentableArgument#convertId(String)
- Origin:
common - Source:
net/minecraft/commands/arguments/StringRepresentableArgument.java:59 - Modifiers:
protected - Return:
String
คืออะไร
แปลง Id
ทำงานยังไง
คืนค่า: string.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.StringRepresentableArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/StringRepresentableArgument.java:50 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
เรียกต่อ: stream(), get(), map(), getSerializedName(), limit(), collect(), toList().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.StringRepresentableArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/StringRepresentableArgument.java:39 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ StringRepresentableArgument
ทำงานยังไง
เรียกต่อ: suggest(), stream(), get(), map(), getSerializedName(), collect(), toList().
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
StringRepresentableArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.StringRepresentableArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/StringRepresentableArgument.java:34 - Modifiers:
public - Return:
T
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
เรียกต่อ: readUnquotedString(), result(), orElseThrow(), createWithContext(). สร้างออบเจ็กต์: JsonPrimitive. คืนค่า: this.codec.parse(JsonOps.INSTANCE, new JsonPrimitive(string)).result().orElseThrow(() -> ERROR_INVALID_VALUE.createWithContext(stringReader, string)).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
StringRepresentableArgument instance = ...;
StringReader stringReader = ...;
T result = instance.parse(stringReader);
net.minecraft.commands.arguments.StringRepresentableArgument#StringRepresentableArgument(Codec<T>,Supplier<T[]>)
- Origin:
common - Source:
net/minecraft/commands/arguments/StringRepresentableArgument.java:29 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ StringRepresentableArgument ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: codec, values.
Parameters
Codec<T> codecSupplier<T[]> supplier
ตัวอย่างใช้งาน
Codec<T> codec = ...;
Supplier<T[]> supplier = ...;
StringRepresentableArgument instance = new StringRepresentableArgument(codec, supplier);
StyleArgument
- Full name:
net.minecraft.commands.arguments.StyleArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/StyleArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<Style>
net.minecraft.commands.arguments.StyleArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/StyleArgument.java:45 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.StyleArgument#getStyle(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/StyleArgument.java:28 - Modifiers:
public static - Return:
Style
คืออะไร
อ่านค่า Style
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, Style.class).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Style result = StyleArgument.getStyle(commandContext, "value");
net.minecraft.commands.arguments.StyleArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/StyleArgument.java:36 - Modifiers:
public - Return:
Style
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: parseJson(), getCause(), getMessage(), createWithContext(). คืนค่า: ParserUtils.parseJson(this.registries, stringReader, Style.Serializer.CODEC).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
StyleArgument instance = ...;
StringReader stringReader = ...;
Style result = instance.parse(stringReader);
net.minecraft.commands.arguments.StyleArgument#style(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/arguments/StyleArgument.java:32 - Modifiers:
public static - Return:
StyleArgument
คืออะไร
ดำเนินการ style ตาม implementation ของ StyleArgument
ทำงานยังไง
สร้างออบเจ็กต์: StyleArgument. คืนค่า: new StyleArgument(commandBuildContext).
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
CommandBuildContext commandBuildContext = ...;
StyleArgument result = StyleArgument.style(commandBuildContext);
TeamArgument
- Full name:
net.minecraft.commands.arguments.TeamArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/TeamArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<String>
net.minecraft.commands.arguments.TeamArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/TeamArgument.java:51 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.TeamArgument#getTeam(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/TeamArgument.java:29 - Modifiers:
public static - Return:
PlayerTeam
คืออะไร
อ่านค่า Team
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getArgument(), getSource(), getServer(), getScoreboard(), getPlayerTeam(), create(). คืนค่า: playerTeam.
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
PlayerTeam result = TeamArgument.getTeam(commandContext, "value");
net.minecraft.commands.arguments.TeamArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/TeamArgument.java:44 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ TeamArgument
ทำงานยังไง
เรียกต่อ: getSource(), suggest(), getAllTeams(), empty().
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
TeamArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.TeamArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/TeamArgument.java:40 - Modifiers:
public - Return:
String
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
เรียกต่อ: readUnquotedString(). คืนค่า: stringReader.readUnquotedString().
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
TeamArgument instance = ...;
StringReader stringReader = ...;
String result = instance.parse(stringReader);
net.minecraft.commands.arguments.TeamArgument#team()
- Origin:
common - Source:
net/minecraft/commands/arguments/TeamArgument.java:25 - Modifiers:
public static - Return:
TeamArgument
คืออะไร
ดำเนินการ team ตาม implementation ของ TeamArgument
ทำงานยังไง
สร้างออบเจ็กต์: TeamArgument. คืนค่า: new TeamArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
TemplateMirrorArgument
- Full name:
net.minecraft.commands.arguments.TemplateMirrorArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/TemplateMirrorArgument.java - Type:
class - Modifiers:
public - Extends:
StringRepresentableArgument<Mirror>
net.minecraft.commands.arguments.TemplateMirrorArgument#getMirror(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/TemplateMirrorArgument.java:16 - Modifiers:
public static - Return:
Mirror
คืออะไร
อ่านค่า Mirror
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, Mirror.class).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Mirror result = TemplateMirrorArgument.getMirror(commandContext, "value");
net.minecraft.commands.arguments.TemplateMirrorArgument#templateMirror()
- Origin:
common - Source:
net/minecraft/commands/arguments/TemplateMirrorArgument.java:12 - Modifiers:
public static - Return:
StringRepresentableArgument<Mirror>
คืออะไร
ดำเนินการ templateMirror ตาม implementation ของ TemplateMirrorArgument
ทำงานยังไง
สร้างออบเจ็กต์: TemplateMirrorArgument. คืนค่า: new TemplateMirrorArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
TemplateRotationArgument
- Full name:
net.minecraft.commands.arguments.TemplateRotationArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/TemplateRotationArgument.java - Type:
class - Modifiers:
public - Extends:
StringRepresentableArgument<Rotation>
net.minecraft.commands.arguments.TemplateRotationArgument#getRotation(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/TemplateRotationArgument.java:16 - Modifiers:
public static - Return:
Rotation
คืออะไร
อ่านค่า Rotation
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, Rotation.class).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Rotation result = TemplateRotationArgument.getRotation(commandContext, "value");
net.minecraft.commands.arguments.TemplateRotationArgument#templateRotation()
- Origin:
common - Source:
net/minecraft/commands/arguments/TemplateRotationArgument.java:12 - Modifiers:
public static - Return:
TemplateRotationArgument
คืออะไร
ดำเนินการ templateRotation ตาม implementation ของ TemplateRotationArgument
ทำงานยังไง
สร้างออบเจ็กต์: TemplateRotationArgument. คืนค่า: new TemplateRotationArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
TimeArgument
- Full name:
net.minecraft.commands.arguments.TimeArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/TimeArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<Integer>
net.minecraft.commands.arguments.TimeArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/TimeArgument.java:73 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.TimeArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/TimeArgument.java:60 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ TimeArgument
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: getRemaining(), readFloat(), buildFuture(), suggest(), keySet(), createOffset(), getStart(), getCursor(). สร้างออบเจ็กต์: StringReader. มีจุด return อย่างน้อย 2 จุด.
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
TimeArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.TimeArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/TimeArgument.java:44 - Modifiers:
public - Return:
Integer
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: readFloat(), readUnquotedString(), getOrDefault(), createWithContext(), round(). คืนค่า: j.
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
TimeArgument instance = ...;
StringReader stringReader = ...;
Integer result = instance.parse(stringReader);
net.minecraft.commands.arguments.TimeArgument#time()
- Origin:
common - Source:
net/minecraft/commands/arguments/TimeArgument.java:36 - Modifiers:
public static - Return:
TimeArgument
คืออะไร
ดำเนินการ time ตาม implementation ของ TimeArgument
ทำงานยังไง
สร้างออบเจ็กต์: TimeArgument. คืนค่า: new TimeArgument(0).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.TimeArgument#time(int)
- Origin:
common - Source:
net/minecraft/commands/arguments/TimeArgument.java:40 - Modifiers:
public static - Return:
TimeArgument
คืออะไร
ดำเนินการ time ตาม implementation ของ TimeArgument
ทำงานยังไง
สร้างออบเจ็กต์: TimeArgument. คืนค่า: new TimeArgument(i).
Parameters
int i
ตัวอย่างใช้งาน
TimeArgument$Info
- Full name:
net.minecraft.commands.arguments.TimeArgument$Info - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/TimeArgument.java - Type:
class - Modifiers:
public static - Implements:
ArgumentTypeInfo<TimeArgument, TimeArgument.Info.Template>
net.minecraft.commands.arguments.TimeArgument$Info#deserializeFromNetwork(FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/arguments/TimeArgument.java:90 - Modifiers:
public - Return:
TimeArgument.Info.Template
คืออะไร
สร้างออบเจ็กต์กลับจากข้อมูล From Network
ทำงานยังไง
เรียกต่อ: readInt(), Template(). สร้างออบเจ็กต์: TimeArgument.Info.Template. คืนค่า: new TimeArgument.Info.Template(i).
Parameters
FriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
TimeArgument.Info instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
TimeArgument.Info.Template result = instance.deserializeFromNetwork(friendlyByteBuf);
net.minecraft.commands.arguments.TimeArgument$Info#serializeToJson(TimeArgument.Info.Template,JsonObject)
- Origin:
common - Source:
net/minecraft/commands/arguments/TimeArgument.java:95 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Json
ทำงานยังไง
เรียกต่อ: addProperty().
Parameters
TimeArgument.Info.Template templateJsonObject jsonObject
ตัวอย่างใช้งาน
TimeArgument.Info instance = ...;
TimeArgument.Info.Template template = ...;
JsonObject jsonObject = ...;
instance.serializeToJson(template, jsonObject);
net.minecraft.commands.arguments.TimeArgument$Info#serializeToNetwork(TimeArgument.Info.Template,FriendlyByteBuf)
- Origin:
common - Source:
net/minecraft/commands/arguments/TimeArgument.java:86 - Modifiers:
public - Return:
void
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง To Network
ทำงานยังไง
เรียกต่อ: writeInt().
Parameters
TimeArgument.Info.Template templateFriendlyByteBuf friendlyByteBuf
ตัวอย่างใช้งาน
TimeArgument.Info instance = ...;
TimeArgument.Info.Template template = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.serializeToNetwork(template, friendlyByteBuf);
net.minecraft.commands.arguments.TimeArgument$Info#unpack(TimeArgument)
- Origin:
common - Source:
net/minecraft/commands/arguments/TimeArgument.java:99 - Modifiers:
public - Return:
TimeArgument.Info.Template
คืออะไร
ดำเนินการ unpack ตาม implementation ของ TimeArgument$Info
ทำงานยังไง
เรียกต่อ: Template(). สร้างออบเจ็กต์: TimeArgument.Info.Template. คืนค่า: new TimeArgument.Info.Template(timeArgument.minimum).
Parameters
TimeArgument timeArgument
ตัวอย่างใช้งาน
TimeArgument.Info instance = ...;
TimeArgument timeArgument = ...;
TimeArgument.Info.Template result = instance.unpack(timeArgument);
TimeArgument$Info$Template
- Full name:
net.minecraft.commands.arguments.TimeArgument$Info$Template - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/TimeArgument.java - Type:
class - Modifiers:
public final - Implements:
ArgumentTypeInfo.Template<TimeArgument>
net.minecraft.commands.arguments.TimeArgument$Info$Template#instantiate(CommandBuildContext)
- Origin:
common - Source:
net/minecraft/commands/arguments/TimeArgument.java:110 - Modifiers:
public - Return:
TimeArgument
คืออะไร
ดำเนินการ instantiate ตาม implementation ของ TimeArgument$Info$Template
ทำงานยังไง
เรียกต่อ: time(). คืนค่า: TimeArgument.time(this.min).
Parameters
CommandBuildContext commandBuildContext
ตัวอย่างใช้งาน
TimeArgument.Info.Template instance = ...;
CommandBuildContext commandBuildContext = ...;
TimeArgument result = instance.instantiate(commandBuildContext);
net.minecraft.commands.arguments.TimeArgument$Info$Template#type()
- Origin:
common - Source:
net/minecraft/commands/arguments/TimeArgument.java:114 - Modifiers:
public - Return:
ArgumentTypeInfo<TimeArgument, ?>
คืออะไร
ดำเนินการ type ตาม implementation ของ TimeArgument$Info$Template
ทำงานยังไง
คืนค่า: Info.this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
TimeArgument.Info.Template instance = ...;
ArgumentTypeInfo<TimeArgument, ?> result = instance.type();
UuidArgument
- Full name:
net.minecraft.commands.arguments.UuidArgument - Package:
net.minecraft.commands.arguments - Source:
common—net/minecraft/commands/arguments/UuidArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<UUID>
net.minecraft.commands.arguments.UuidArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/UuidArgument.java:46 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.UuidArgument#getUuid(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/UuidArgument.java:21 - Modifiers:
public static - Return:
UUID
คืออะไร
อ่านค่า Uuid
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, UUID.class).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
UUID result = UuidArgument.getUuid(commandContext, "value");
net.minecraft.commands.arguments.UuidArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/UuidArgument.java:29 - Modifiers:
public - Return:
UUID
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: getRemaining(), matcher(), find(), group(), fromString(), setCursor(), getCursor(), length(). คืนค่า: uUID.
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
UuidArgument instance = ...;
StringReader stringReader = ...;
UUID result = instance.parse(stringReader);
net.minecraft.commands.arguments.UuidArgument#uuid()
- Origin:
common - Source:
net/minecraft/commands/arguments/UuidArgument.java:25 - Modifiers:
public static - Return:
UuidArgument
คืออะไร
ดำเนินการ uuid ตาม implementation ของ UuidArgument
ทำงานยังไง
สร้างออบเจ็กต์: UuidArgument. คืนค่า: new UuidArgument().
Parameters
- ไม่มี