Package net.minecraft.commands.arguments.coordinates
Part 1/1
BlockPosArgument
- Full name:
net.minecraft.commands.arguments.coordinates.BlockPosArgument - Package:
net.minecraft.commands.arguments.coordinates - Source:
common—net/minecraft/commands/arguments/coordinates/BlockPosArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<Coordinates>
net.minecraft.commands.arguments.coordinates.BlockPosArgument#blockPos()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/BlockPosArgument.java:28 - Modifiers:
public static - Return:
BlockPosArgument
คืออะไร
ดำเนินการ blockPos ตาม implementation ของ BlockPosArgument
ทำงานยังไง
สร้างออบเจ็กต์: BlockPosArgument. คืนค่า: new BlockPosArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.BlockPosArgument#getBlockPos(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/BlockPosArgument.java:48 - Modifiers:
public static - Return:
BlockPos
คืออะไร
อ่านค่า Block Pos
ทำงานยังไง
เรียกต่อ: getArgument(), getSource(). คืนค่า: commandContext.getArgument(string, Coordinates.class).getBlockPos(commandContext.getSource()).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
BlockPos result = BlockPosArgument.getBlockPos(commandContext, "value");
net.minecraft.commands.arguments.coordinates.BlockPosArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/BlockPosArgument.java:82 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.BlockPosArgument#getLoadedBlockPos(CommandContext<CommandSourceStack>,ServerLevel,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/BlockPosArgument.java:37 - Modifiers:
public static - Return:
BlockPos
คืออะไร
อ่านค่า Loaded Block Pos
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBlockPos(), hasChunkAt(), create(), isInWorldBounds(). คืนค่า: blockPos.
Parameters
CommandContext<CommandSourceStack> commandContextServerLevel serverLevelString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
ServerLevel serverLevel = ...;
BlockPos result = BlockPosArgument.getLoadedBlockPos(commandContext, serverLevel, "value");
net.minecraft.commands.arguments.coordinates.BlockPosArgument#getLoadedBlockPos(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/BlockPosArgument.java:32 - Modifiers:
public static - Return:
BlockPos
คืออะไร
อ่านค่า Loaded Block Pos
ทำงานยังไง
เรียกต่อ: getSource(), getLevel(). คืนค่า: getLoadedBlockPos(commandContext, serverLevel, string).
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
BlockPos result = BlockPosArgument.getLoadedBlockPos(commandContext, "value");
net.minecraft.commands.arguments.coordinates.BlockPosArgument#getSpawnablePos(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/BlockPosArgument.java:52 - Modifiers:
public static - Return:
BlockPos
คืออะไร
อ่านค่า Spawnable Pos
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBlockPos(), isInSpawnableBounds(), create(). คืนค่า: blockPos.
Parameters
CommandContext<CommandSourceStack> commandContextString string
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
BlockPos result = BlockPosArgument.getSpawnablePos(commandContext, "value");
net.minecraft.commands.arguments.coordinates.BlockPosArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/BlockPosArgument.java:65 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ BlockPosArgument
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getSource(), empty(), getRemaining(), isEmpty(), charAt(), singleton(), getRelevantCoordinates(), suggestCoordinates(). มีจุด return อย่างน้อย 2 จุด.
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
BlockPosArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.coordinates.BlockPosArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/BlockPosArgument.java:61 - Modifiers:
public - Return:
Coordinates
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
เรียกต่อ: canRead(), peek(), parseInt(). คืนค่า: stringReader.canRead() && stringReader.peek() == '^' ? LocalCoordinates.parse(stringReader) : WorldCoordinates.parseInt(stringReader).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
BlockPosArgument instance = ...;
StringReader stringReader = ...;
Coordinates result = instance.parse(stringReader);
ColumnPosArgument
- Full name:
net.minecraft.commands.arguments.coordinates.ColumnPosArgument - Package:
net.minecraft.commands.arguments.coordinates - Source:
common—net/minecraft/commands/arguments/coordinates/ColumnPosArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<Coordinates>
net.minecraft.commands.arguments.coordinates.ColumnPosArgument#columnPos()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/ColumnPosArgument.java:25 - Modifiers:
public static - Return:
ColumnPosArgument
คืออะไร
ดำเนินการ columnPos ตาม implementation ของ ColumnPosArgument
ทำงานยังไง
สร้างออบเจ็กต์: ColumnPosArgument. คืนค่า: new ColumnPosArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.ColumnPosArgument#getColumnPos(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/ColumnPosArgument.java:29 - Modifiers:
public static - Return:
ColumnPos
คืออะไร
อ่านค่า Column Pos
ทำงานยังไง
เรียกต่อ: getArgument(), getBlockPos(), getSource(), getX(), getZ(). สร้างออบเจ็กต์: ColumnPos. คืนค่า: new ColumnPos(blockPos.getX(), blockPos.getZ()).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
ColumnPos result = ColumnPosArgument.getColumnPos(commandContext, "value");
net.minecraft.commands.arguments.coordinates.ColumnPosArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/ColumnPosArgument.java:68 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.ColumnPosArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/ColumnPosArgument.java:51 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ ColumnPosArgument
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getSource(), empty(), getRemaining(), isEmpty(), charAt(), singleton(), getRelevantCoordinates(), suggest2DCoordinates(). มีจุด return อย่างน้อย 2 จุด.
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
ColumnPosArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.coordinates.ColumnPosArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/ColumnPosArgument.java:34 - Modifiers:
public - Return:
Coordinates
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getCursor(), canRead(), createWithContext(), parseInt(), peek(), skip(), setCursor(). สร้างออบเจ็กต์: WorldCoordinates, WorldCoordinate. คืนค่า: new WorldCoordinates(worldCoordinate, new WorldCoordinate(true, 0.0), worldCoordinate2).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
ColumnPosArgument instance = ...;
StringReader stringReader = ...;
Coordinates result = instance.parse(stringReader);
Coordinates
- Full name:
net.minecraft.commands.arguments.coordinates.Coordinates - Package:
net.minecraft.commands.arguments.coordinates - Source:
common—net/minecraft/commands/arguments/coordinates/Coordinates.java - Type:
interface - Modifiers:
public
net.minecraft.commands.arguments.coordinates.Coordinates#getBlockPos(CommandSourceStack)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/Coordinates.java:13 - Modifiers:
default - Return:
BlockPos
คืออะไร
อ่านค่า Block Pos
ทำงานยังไง
เรียกต่อ: containing(), getPosition(). คืนค่า: BlockPos.containing(this.getPosition(commandSourceStack)).
Parameters
CommandSourceStack commandSourceStack
ตัวอย่างใช้งาน
Coordinates instance = ...;
CommandSourceStack commandSourceStack = ...;
BlockPos result = instance.getBlockPos(commandSourceStack);
net.minecraft.commands.arguments.coordinates.Coordinates#getPosition(CommandSourceStack)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/Coordinates.java:9 - Modifiers: ``
- Return:
Vec3
คืออะไร
อ่านค่า Position
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
CommandSourceStack commandSourceStack
ตัวอย่างใช้งาน
Coordinates instance = ...;
CommandSourceStack commandSourceStack = ...;
Vec3 result = instance.getPosition(commandSourceStack);
net.minecraft.commands.arguments.coordinates.Coordinates#getRotation(CommandSourceStack)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/Coordinates.java:11 - Modifiers: ``
- Return:
Vec2
คืออะไร
อ่านค่า Rotation
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
CommandSourceStack commandSourceStack
ตัวอย่างใช้งาน
Coordinates instance = ...;
CommandSourceStack commandSourceStack = ...;
Vec2 result = instance.getRotation(commandSourceStack);
net.minecraft.commands.arguments.coordinates.Coordinates#isXRelative()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/Coordinates.java:17 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ XRelative
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.Coordinates#isYRelative()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/Coordinates.java:19 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ YRelative
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.Coordinates#isZRelative()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/Coordinates.java:21 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ ZRelative
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LocalCoordinates
- Full name:
net.minecraft.commands.arguments.coordinates.LocalCoordinates - Package:
net.minecraft.commands.arguments.coordinates - Source:
common—net/minecraft/commands/arguments/coordinates/LocalCoordinates.java - Type:
class - Modifiers:
public - Implements:
Coordinates
net.minecraft.commands.arguments.coordinates.LocalCoordinates#equals(Object)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/LocalCoordinates.java:94 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: left, up, forwards. คืนค่า: true.
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.LocalCoordinates#getPosition(CommandSourceStack)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/LocalCoordinates.java:23 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Position
ทำงานยังไง
เรียกต่อ: getRotation(), getAnchor(), apply(), cos(), sin(), cross(), scale(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(vec3.x + d, vec3.y + e, vec3.z + l).
Parameters
CommandSourceStack commandSourceStack
ตัวอย่างใช้งาน
LocalCoordinates instance = ...;
CommandSourceStack commandSourceStack = ...;
Vec3 result = instance.getPosition(commandSourceStack);
net.minecraft.commands.arguments.coordinates.LocalCoordinates#getRotation(CommandSourceStack)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/LocalCoordinates.java:42 - Modifiers:
public - Return:
Vec2
คืออะไร
อ่านค่า Rotation
ทำงานยังไง
คืนค่า: Vec2.ZERO.
Parameters
CommandSourceStack commandSourceStack
ตัวอย่างใช้งาน
LocalCoordinates instance = ...;
CommandSourceStack commandSourceStack = ...;
Vec2 result = instance.getRotation(commandSourceStack);
net.minecraft.commands.arguments.coordinates.LocalCoordinates#hashCode()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/LocalCoordinates.java:105 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ hashCode ตาม implementation ของ LocalCoordinates
ทำงานยังไง
เรียกต่อ: hash(). คืนค่า: Objects.hash(this.left, this.up, this.forwards).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.LocalCoordinates#isXRelative()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/LocalCoordinates.java:47 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ XRelative
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.LocalCoordinates#isYRelative()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/LocalCoordinates.java:52 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ YRelative
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.LocalCoordinates#isZRelative()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/LocalCoordinates.java:57 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ ZRelative
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.LocalCoordinates#LocalCoordinates(double,double,double)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/LocalCoordinates.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LocalCoordinates ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: left, up, forwards.
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.LocalCoordinates#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/LocalCoordinates.java:62 - Modifiers:
public static - Return:
LocalCoordinates
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getCursor(), readDouble(), canRead(), peek(), skip(), setCursor(), createWithContext(). สร้างออบเจ็กต์: LocalCoordinates. คืนค่า: new LocalCoordinates(d, e, f).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
RotationArgument
- Full name:
net.minecraft.commands.arguments.coordinates.RotationArgument - Package:
net.minecraft.commands.arguments.coordinates - Source:
common—net/minecraft/commands/arguments/coordinates/RotationArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<Coordinates>
net.minecraft.commands.arguments.coordinates.RotationArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/RotationArgument.java:42 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.RotationArgument#getRotation(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/RotationArgument.java:21 - Modifiers:
public static - Return:
Coordinates
คืออะไร
อ่านค่า Rotation
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, Coordinates.class).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Coordinates result = RotationArgument.getRotation(commandContext, "value");
net.minecraft.commands.arguments.coordinates.RotationArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/RotationArgument.java:25 - Modifiers:
public - Return:
Coordinates
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getCursor(), canRead(), createWithContext(), parseDouble(), peek(), skip(), setCursor(). สร้างออบเจ็กต์: WorldCoordinates, WorldCoordinate. คืนค่า: new WorldCoordinates(worldCoordinate2, worldCoordinate, new WorldCoordinate(true, 0.0)).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
RotationArgument instance = ...;
StringReader stringReader = ...;
Coordinates result = instance.parse(stringReader);
net.minecraft.commands.arguments.coordinates.RotationArgument#rotation()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/RotationArgument.java:17 - Modifiers:
public static - Return:
RotationArgument
คืออะไร
ดำเนินการ rotation ตาม implementation ของ RotationArgument
ทำงานยังไง
สร้างออบเจ็กต์: RotationArgument. คืนค่า: new RotationArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SwizzleArgument
- Full name:
net.minecraft.commands.arguments.coordinates.SwizzleArgument - Package:
net.minecraft.commands.arguments.coordinates - Source:
common—net/minecraft/commands/arguments/coordinates/SwizzleArgument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<EnumSet<Direction.Axis>>
net.minecraft.commands.arguments.coordinates.SwizzleArgument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/SwizzleArgument.java:49 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.SwizzleArgument#getSwizzle(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/SwizzleArgument.java:23 - Modifiers:
public static - Return:
EnumSet<Direction.Axis>
คืออะไร
อ่านค่า Swizzle
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, EnumSet.class).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
EnumSet<Direction.Axis> result = SwizzleArgument.getSwizzle(commandContext, "value");
net.minecraft.commands.arguments.coordinates.SwizzleArgument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/SwizzleArgument.java:27 - Modifiers:
public - Return:
EnumSet<Direction.Axis>
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch ; มีการวนลูป. เรียกต่อ: noneOf(), canRead(), peek(), read(), createWithContext(), contains(), add(). คืนค่า: enumSet.
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
SwizzleArgument instance = ...;
StringReader stringReader = ...;
EnumSet<Direction.Axis> result = instance.parse(stringReader);
net.minecraft.commands.arguments.coordinates.SwizzleArgument#swizzle()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/SwizzleArgument.java:19 - Modifiers:
public static - Return:
SwizzleArgument
คืออะไร
ดำเนินการ swizzle ตาม implementation ของ SwizzleArgument
ทำงานยังไง
สร้างออบเจ็กต์: SwizzleArgument. คืนค่า: new SwizzleArgument().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Vec2Argument
- Full name:
net.minecraft.commands.arguments.coordinates.Vec2Argument - Package:
net.minecraft.commands.arguments.coordinates - Source:
common—net/minecraft/commands/arguments/coordinates/Vec2Argument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<Coordinates>
net.minecraft.commands.arguments.coordinates.Vec2Argument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/Vec2Argument.java:77 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.Vec2Argument#getVec2(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/Vec2Argument.java:38 - Modifiers:
public static - Return:
Vec2
คืออะไร
อ่านค่า Vec2
ทำงานยังไง
เรียกต่อ: getArgument(), getPosition(), getSource(). สร้างออบเจ็กต์: Vec2. คืนค่า: new Vec2((float)vec3.x, (float)vec3.z).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Vec2 result = Vec2Argument.getVec2(commandContext, "value");
net.minecraft.commands.arguments.coordinates.Vec2Argument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/Vec2Argument.java:60 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ Vec2Argument
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getSource(), empty(), getRemaining(), isEmpty(), charAt(), singleton(), getAbsoluteCoordinates(), suggest2DCoordinates(). มีจุด return อย่างน้อย 2 จุด.
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
Vec2Argument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.coordinates.Vec2Argument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/Vec2Argument.java:43 - Modifiers:
public - Return:
Coordinates
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getCursor(), canRead(), createWithContext(), parseDouble(), peek(), skip(), setCursor(). สร้างออบเจ็กต์: WorldCoordinates, WorldCoordinate. คืนค่า: new WorldCoordinates(worldCoordinate, new WorldCoordinate(true, 0.0), worldCoordinate2).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
Vec2Argument instance = ...;
StringReader stringReader = ...;
Coordinates result = instance.parse(stringReader);
net.minecraft.commands.arguments.coordinates.Vec2Argument#vec2()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/Vec2Argument.java:30 - Modifiers:
public static - Return:
Vec2Argument
คืออะไร
ดำเนินการ vec2 ตาม implementation ของ Vec2Argument
ทำงานยังไง
สร้างออบเจ็กต์: Vec2Argument. คืนค่า: new Vec2Argument(true).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.Vec2Argument#vec2(boolean)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/Vec2Argument.java:34 - Modifiers:
public static - Return:
Vec2Argument
คืออะไร
ดำเนินการ vec2 ตาม implementation ของ Vec2Argument
ทำงานยังไง
สร้างออบเจ็กต์: Vec2Argument. คืนค่า: new Vec2Argument(bl).
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.Vec2Argument#Vec2Argument(boolean)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/Vec2Argument.java:26 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Vec2Argument ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: centerCorrect.
Parameters
boolean bl
ตัวอย่างใช้งาน
Vec3Argument
- Full name:
net.minecraft.commands.arguments.coordinates.Vec3Argument - Package:
net.minecraft.commands.arguments.coordinates - Source:
common—net/minecraft/commands/arguments/coordinates/Vec3Argument.java - Type:
class - Modifiers:
public - Implements:
ArgumentType<Coordinates>
net.minecraft.commands.arguments.coordinates.Vec3Argument#getCoordinates(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/Vec3Argument.java:42 - Modifiers:
public static - Return:
Coordinates
คืออะไร
อ่านค่า Coordinates
ทำงานยังไง
เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, Coordinates.class).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Coordinates result = Vec3Argument.getCoordinates(commandContext, "value");
net.minecraft.commands.arguments.coordinates.Vec3Argument#getExamples()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/Vec3Argument.java:69 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Examples
ทำงานยังไง
คืนค่า: EXAMPLES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.Vec3Argument#getVec3(CommandContext<CommandSourceStack>,String)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/Vec3Argument.java:38 - Modifiers:
public static - Return:
Vec3
คืออะไร
อ่านค่า Vec3
ทำงานยังไง
เรียกต่อ: getArgument(), getPosition(), getSource(). คืนค่า: commandContext.getArgument(string, Coordinates.class).getPosition(commandContext.getSource()).
Parameters
CommandContext<CommandSourceStack> commandContextString string
ตัวอย่างใช้งาน
CommandContext<CommandSourceStack> commandContext = ...;
Vec3 result = Vec3Argument.getVec3(commandContext, "value");
net.minecraft.commands.arguments.coordinates.Vec3Argument#listSuggestions(CommandContext<S>,SuggestionsBuilder)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/Vec3Argument.java:52 - Modifiers:
public - Return:
CompletableFuture<Suggestions>
คืออะไร
ดำเนินการ listSuggestions ตาม implementation ของ Vec3Argument
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getSource(), empty(), getRemaining(), isEmpty(), charAt(), singleton(), getAbsoluteCoordinates(), suggestCoordinates(). มีจุด return อย่างน้อย 2 จุด.
Parameters
CommandContext<S> commandContextSuggestionsBuilder suggestionsBuilder
ตัวอย่างใช้งาน
Vec3Argument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);
net.minecraft.commands.arguments.coordinates.Vec3Argument#parse(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/Vec3Argument.java:46 - Modifiers:
public - Return:
Coordinates
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
เรียกต่อ: canRead(), peek(), parseDouble().
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
Vec3Argument instance = ...;
StringReader stringReader = ...;
Coordinates result = instance.parse(stringReader);
net.minecraft.commands.arguments.coordinates.Vec3Argument#vec3()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/Vec3Argument.java:30 - Modifiers:
public static - Return:
Vec3Argument
คืออะไร
ดำเนินการ vec3 ตาม implementation ของ Vec3Argument
ทำงานยังไง
สร้างออบเจ็กต์: Vec3Argument. คืนค่า: new Vec3Argument(true).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.Vec3Argument#vec3(boolean)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/Vec3Argument.java:34 - Modifiers:
public static - Return:
Vec3Argument
คืออะไร
ดำเนินการ vec3 ตาม implementation ของ Vec3Argument
ทำงานยังไง
สร้างออบเจ็กต์: Vec3Argument. คืนค่า: new Vec3Argument(bl).
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.Vec3Argument#Vec3Argument(boolean)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/Vec3Argument.java:26 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Vec3Argument ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: centerCorrect.
Parameters
boolean bl
ตัวอย่างใช้งาน
WorldCoordinate
- Full name:
net.minecraft.commands.arguments.coordinates.WorldCoordinate - Package:
net.minecraft.commands.arguments.coordinates - Source:
common—net/minecraft/commands/arguments/coordinates/WorldCoordinate.java - Type:
class - Modifiers:
public
net.minecraft.commands.arguments.coordinates.WorldCoordinate#equals(Object)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/WorldCoordinate.java:80 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: compare(). มีจุด return อย่างน้อย 3 จุด.
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.WorldCoordinate#get(double)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/WorldCoordinate.java:20 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า get
ทำงานยังไง
คืนค่า: this.relative ? this.value + d : this.value.
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.WorldCoordinate#hashCode()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/WorldCoordinate.java:91 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ hashCode ตาม implementation ของ WorldCoordinate
ทำงานยังไง
เรียกต่อ: doubleToLongBits(). คืนค่า: 31 * i + (int)(l ^ l >>> 32).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.WorldCoordinate#isRelative()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/WorldCoordinate.java:98 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Relative
ทำงานยังไง
คืนค่า: this.relative.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.WorldCoordinate#isRelative(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/WorldCoordinate.java:68 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Relative
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: peek(), skip(). คืนค่า: bl.
Parameters
StringReader stringReader
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.WorldCoordinate#parseDouble(StringReader,boolean)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/WorldCoordinate.java:24 - Modifiers:
public static - Return:
WorldCoordinate
คืออะไร
แปลง/วิเคราะห์ข้อมูล Double
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: canRead(), peek(), createWithContext(), isRelative(), getCursor(), readDouble(), getString(), substring(). สร้างออบเจ็กต์: WorldCoordinate. มีจุด return อย่างน้อย 2 จุด.
Parameters
StringReader stringReaderboolean bl
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
StringReader stringReader = ...;
WorldCoordinate result = WorldCoordinate.parseDouble(stringReader, true);
net.minecraft.commands.arguments.coordinates.WorldCoordinate#parseInt(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/WorldCoordinate.java:48 - Modifiers:
public static - Return:
WorldCoordinate
คืออะไร
แปลง/วิเคราะห์ข้อมูล Int
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: canRead(), peek(), createWithContext(), isRelative(), readDouble(), readInt(). สร้างออบเจ็กต์: WorldCoordinate. คืนค่า: new WorldCoordinate(bl, d).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.WorldCoordinate#WorldCoordinate(boolean,double)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/WorldCoordinate.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WorldCoordinate ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: relative, value.
Parameters
boolean bldouble d
ตัวอย่างใช้งาน
WorldCoordinates
- Full name:
net.minecraft.commands.arguments.coordinates.WorldCoordinates - Package:
net.minecraft.commands.arguments.coordinates - Source:
common—net/minecraft/commands/arguments/coordinates/WorldCoordinates.java - Type:
class - Modifiers:
public - Implements:
Coordinates
net.minecraft.commands.arguments.coordinates.WorldCoordinates#absolute(double,double,double)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/WorldCoordinates.java:100 - Modifiers:
public static - Return:
WorldCoordinates
คืออะไร
ดำเนินการ absolute ตาม implementation ของ WorldCoordinates
ทำงานยังไง
สร้างออบเจ็กต์: WorldCoordinates, WorldCoordinate. คืนค่า: new WorldCoordinates(new WorldCoordinate(false, d), new WorldCoordinate(false, e), new WorldCoordinate(false, f)).
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.WorldCoordinates#absolute(Vec2)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/WorldCoordinates.java:104 - Modifiers:
public static - Return:
WorldCoordinates
คืออะไร
ดำเนินการ absolute ตาม implementation ของ WorldCoordinates
ทำงานยังไง
สร้างออบเจ็กต์: WorldCoordinates, WorldCoordinate. คืนค่า: new WorldCoordinates(new WorldCoordinate(false, vec2.x), new WorldCoordinate(false, vec2.y), new WorldCoordinate(true, 0.0)).
Parameters
Vec2 vec2
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.WorldCoordinates#equals(Object)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/WorldCoordinates.java:47 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. มีจุด return อย่างน้อย 4 จุด.
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.WorldCoordinates#getPosition(CommandSourceStack)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/WorldCoordinates.java:20 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Position
ทำงานยังไง
เรียกต่อ: get(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(this.x.get(vec3.x), this.y.get(vec3.y), this.z.get(vec3.z)).
Parameters
CommandSourceStack commandSourceStack
ตัวอย่างใช้งาน
WorldCoordinates instance = ...;
CommandSourceStack commandSourceStack = ...;
Vec3 result = instance.getPosition(commandSourceStack);
net.minecraft.commands.arguments.coordinates.WorldCoordinates#getRotation(CommandSourceStack)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/WorldCoordinates.java:26 - Modifiers:
public - Return:
Vec2
คืออะไร
อ่านค่า Rotation
ทำงานยังไง
เรียกต่อ: get(). สร้างออบเจ็กต์: Vec2. คืนค่า: new Vec2((float)this.x.get(vec2.x), (float)this.y.get(vec2.y)).
Parameters
CommandSourceStack commandSourceStack
ตัวอย่างใช้งาน
WorldCoordinates instance = ...;
CommandSourceStack commandSourceStack = ...;
Vec2 result = instance.getRotation(commandSourceStack);
net.minecraft.commands.arguments.coordinates.WorldCoordinates#hashCode()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/WorldCoordinates.java:108 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ hashCode ตาม implementation ของ WorldCoordinates
ทำงานยังไง
คืนค่า: 31 * i + this.z.hashCode().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.WorldCoordinates#isXRelative()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/WorldCoordinates.java:32 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ XRelative
ทำงานยังไง
เรียกต่อ: isRelative(). คืนค่า: this.x.isRelative().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.WorldCoordinates#isYRelative()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/WorldCoordinates.java:37 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ YRelative
ทำงานยังไง
เรียกต่อ: isRelative(). คืนค่า: this.y.isRelative().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.WorldCoordinates#isZRelative()
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/WorldCoordinates.java:42 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ ZRelative
ทำงานยังไง
เรียกต่อ: isRelative(). คืนค่า: this.z.isRelative().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.WorldCoordinates#parseDouble(StringReader,boolean)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/WorldCoordinates.java:80 - Modifiers:
public static - Return:
WorldCoordinates
คืออะไร
แปลง/วิเคราะห์ข้อมูล Double
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getCursor(), canRead(), peek(), skip(), setCursor(), createWithContext(). สร้างออบเจ็กต์: WorldCoordinates. คืนค่า: new WorldCoordinates(worldCoordinate, worldCoordinate2, worldCoordinate3).
Parameters
StringReader stringReaderboolean bl
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
StringReader stringReader = ...;
WorldCoordinates result = WorldCoordinates.parseDouble(stringReader, true);
net.minecraft.commands.arguments.coordinates.WorldCoordinates#parseInt(StringReader)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/WorldCoordinates.java:60 - Modifiers:
public static - Return:
WorldCoordinates
คืออะไร
แปลง/วิเคราะห์ข้อมูล Int
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getCursor(), canRead(), peek(), skip(), setCursor(), createWithContext(). สร้างออบเจ็กต์: WorldCoordinates. คืนค่า: new WorldCoordinates(worldCoordinate, worldCoordinate2, worldCoordinate3).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
net.minecraft.commands.arguments.coordinates.WorldCoordinates#WorldCoordinates(WorldCoordinate,WorldCoordinate,WorldCoordinate)
- Origin:
common - Source:
net/minecraft/commands/arguments/coordinates/WorldCoordinates.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WorldCoordinates ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: x, y, z.
Parameters
WorldCoordinate worldCoordinateWorldCoordinate worldCoordinate2WorldCoordinate worldCoordinate3
ตัวอย่างใช้งาน
WorldCoordinate worldCoordinate = ...;
WorldCoordinate worldCoordinate2 = ...;
WorldCoordinate worldCoordinate3 = ...;
WorldCoordinates instance = new WorldCoordinates(worldCoordinate, worldCoordinate2, worldCoordinate3);