Skip to content

Package net.minecraft.server.commands

Part 1/1


AdvancementCommands

  • Full name: net.minecraft.server.commands.AdvancementCommands
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/AdvancementCommands.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.AdvancementCommands#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/AdvancementCommands.java:32
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), players(), key(), executes().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
AdvancementCommands.register(commandDispatcher);

AttributeCommand

  • Full name: net.minecraft.server.commands.AttributeCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/AttributeCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.AttributeCommand#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/AttributeCommand.java:42
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), entity(), resource(), executes().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
AttributeCommand.register(commandDispatcher, commandBuildContext);

BanIpCommands

  • Full name: net.minecraft.server.commands.BanIpCommands
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/BanIpCommands.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.BanIpCommands#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/BanIpCommands.java:23
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), word(), executes(), banIpOrName().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
BanIpCommands.register(commandDispatcher);

BanListCommands

  • Full name: net.minecraft.server.commands.BanListCommands
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/BanListCommands.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.BanListCommands#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/BanListCommands.java:14
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), executes(), getSource(), getServer(), getPlayerList(), showList(). คืนค่า: showList(commandContext.getSource(), Lists.newArrayList(Iterables.concat(playerList.getBans().getEntries(), playerList.getIpBans().getEntries()))).

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
BanListCommands.register(commandDispatcher);

BanPlayerCommands

  • Full name: net.minecraft.server.commands.BanPlayerCommands
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/BanPlayerCommands.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.BanPlayerCommands#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/BanPlayerCommands.java:21
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), gameProfile(), executes(), banPlayers().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
BanPlayerCommands.register(commandDispatcher);

BossBarCommands

  • Full name: net.minecraft.server.commands.BossBarCommands
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/BossBarCommands.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.BossBarCommands#getBossBar(CommandContext<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/BossBarCommands.java:365
  • Modifiers: public static
  • Return: CustomBossEvent

คืออะไร

อ่านค่า Boss Bar

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getId(), getSource(), getServer(), getCustomBossEvents(), get(), create(), toString(). คืนค่า: customBossEvent.

Parameters

  • CommandContext<CommandSourceStack> commandContext

Throws

  • CommandSyntaxException

ตัวอย่างใช้งาน

CommandContext<CommandSourceStack> commandContext = ...;
CustomBossEvent result = BossBarCommands.getBossBar(commandContext);

net.minecraft.server.commands.BossBarCommands#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/BossBarCommands.java:64
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), id(), textComponent(), executes().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
BossBarCommands.register(commandDispatcher, commandBuildContext);

ChaseCommand

  • Full name: net.minecraft.server.commands.ChaseCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/ChaseCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.ChaseCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/ChaseCommand.java:32
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), then(), argument(), string(), executes(), follow(), getSource(), getString().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
ChaseCommand.register(commandDispatcher);

ClearInventoryCommands

  • Full name: net.minecraft.server.commands.ClearInventoryCommands
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/ClearInventoryCommands.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.ClearInventoryCommands#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/ClearInventoryCommands.java:27
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), executes(), clearUnlimited(), getSource(), singleton(), getPlayerOrException().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
ClearInventoryCommands.register(commandDispatcher, commandBuildContext);

CloneCommands

  • Full name: net.minecraft.server.commands.CloneCommands
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/CloneCommands.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.CloneCommands#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/CloneCommands.java:41
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), beginEndDestinationAndModeSuffix(), getSource(), getLevel(), argument().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
CloneCommands.register(commandDispatcher, commandBuildContext);

DamageCommand

  • Full name: net.minecraft.server.commands.DamageCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/DamageCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.DamageCommand#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/DamageCommand.java:21
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), entity(), floatArg(), executes(). สร้างออบเจ็กต์: DamageSource.

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
DamageCommand.register(commandDispatcher, commandBuildContext);

DataPackCommand

  • Full name: net.minecraft.server.commands.DataPackCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/DataPackCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.DataPackCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/DataPackCommand.java:59
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), string(), suggests(), executes().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
DataPackCommand.register(commandDispatcher);

DebugCommand

  • Full name: net.minecraft.server.commands.DebugCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/DebugCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.DebugCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/DebugCommand.java:48
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), executes(), start(), getSource(), stop(). สร้างออบเจ็กต์: DebugCommand.TraceCustomExecutor.

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
DebugCommand.register(commandDispatcher);

DebugConfigCommand

  • Full name: net.minecraft.server.commands.DebugConfigCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/DebugConfigCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.DebugConfigCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/DebugConfigCommand.java:20
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), player(), executes(), config().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
DebugConfigCommand.register(commandDispatcher);

DebugMobSpawningCommand

  • Full name: net.minecraft.server.commands.DebugMobSpawningCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/DebugMobSpawningCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.DebugMobSpawningCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/DebugMobSpawningCommand.java:13
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

มีการวนลูป. เรียกต่อ: literal(), requires(), hasPermission(), values(), then(), getName(), argument(), blockPos().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
DebugMobSpawningCommand.register(commandDispatcher);

DebugPathCommand

  • Full name: net.minecraft.server.commands.DebugPathCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/DebugPathCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.DebugPathCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/DebugPathCommand.java:22
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), blockPos(), executes(), fillBlocks().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
DebugPathCommand.register(commandDispatcher);

DefaultGameModeCommands

  • Full name: net.minecraft.server.commands.DefaultGameModeCommands
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/DefaultGameModeCommands.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.DefaultGameModeCommands#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/DefaultGameModeCommands.java:13
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), gameMode(), executes(), setMode().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
DefaultGameModeCommands.register(commandDispatcher);

DeOpCommands

  • Full name: net.minecraft.server.commands.DeOpCommands
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/DeOpCommands.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.DeOpCommands#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/DeOpCommands.java:18
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), gameProfile(), suggests(), suggest().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
DeOpCommands.register(commandDispatcher);

DifficultyCommand

  • Full name: net.minecraft.server.commands.DifficultyCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/DifficultyCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.DifficultyCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/DifficultyCommand.java:18
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

มีการวนลูป. เรียกต่อ: literal(), values(), then(), getKey(), executes(), setDifficulty(), getSource(), requires(). คืนค่า: difficultyx.getId().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
DifficultyCommand.register(commandDispatcher);

net.minecraft.server.commands.DifficultyCommand#setDifficulty(CommandSourceStack,Difficulty)

  • Origin: common
  • Source: net/minecraft/server/commands/DifficultyCommand.java:32
  • Modifiers: public static
  • Return: int

คืออะไร

กำหนดค่า Difficulty

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getServer(), getWorldData(), getDifficulty(), create(), getKey(), sendSuccess(), translatable(), getDisplayName(). คืนค่า: 0.

Parameters

  • CommandSourceStack commandSourceStack
  • Difficulty difficulty

Throws

  • CommandSyntaxException

ตัวอย่างใช้งาน

CommandSourceStack commandSourceStack = ...;
Difficulty difficulty = ...;
int result = DifficultyCommand.setDifficulty(commandSourceStack, difficulty);

EffectCommands

  • Full name: net.minecraft.server.commands.EffectCommands
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/EffectCommands.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.EffectCommands#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/EffectCommands.java:33
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), executes(), clearEffects(), getSource(), of().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
EffectCommands.register(commandDispatcher, commandBuildContext);

EmoteCommands

  • Full name: net.minecraft.server.commands.EmoteCommands
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/EmoteCommands.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.EmoteCommands#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/EmoteCommands.java:11
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), then(), argument(), message(), executes(), resolveChatMessage(), getSource(), getServer(). คืนค่า: 1.

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
EmoteCommands.register(commandDispatcher);

EnchantCommand

  • Full name: net.minecraft.server.commands.EnchantCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/EnchantCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.EnchantCommand#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/EnchantCommand.java:39
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), entities(), resource(), executes().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
EnchantCommand.register(commandDispatcher, commandBuildContext);

ExecuteCommand

  • Full name: net.minecraft.server.commands.ExecuteCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/ExecuteCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.ExecuteCommand#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/ExecuteCommand.java:142
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: literal(), requires(), hasPermission(), then(), redirect(), getRoot(), addConditionals(), argument(). สร้างออบเจ็กต์: Vec3. มีจุด return อย่างน้อย 6 จุด.

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
ExecuteCommand.register(commandDispatcher, commandBuildContext);

net.minecraft.server.commands.ExecuteCommand#scheduleFunctionConditionsAndTest(T,List<T>,Function<T, T>,IntPredicate,ContextChain<T>,CompoundTag,ExecutionControl<T>,ExecuteCommand.CommandGetter<T, Collection<CommandFunction<T>>>,ChainModifiers)

  • Origin: common
  • Source: net/minecraft/server/commands/ExecuteCommand.java:1045
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ scheduleFunctionConditionsAndTest ตาม implementation ของ ExecuteCommand

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: size(), get(), getTopContext(), copyFor(), handleError(), isForked(), tracer(), add(). สร้างออบเจ็กต์: ArrayList<>, IsolatedCall<>, CallFunction<>, BuildContexts.Continuation<>.

Parameters

  • T executionCommandSource
  • List<T> list
  • Function<T, T> function
  • IntPredicate intPredicate
  • ContextChain<T> contextChain
  • CompoundTag compoundTag
  • ExecutionControl<T> executionControl
  • ExecuteCommand.CommandGetter<T, Collection<CommandFunction<T>>> commandGetter
  • ChainModifiers chainModifiers

ตัวอย่างใช้งาน

T executionCommandSource = ...;
List<T> list = ...;
Function<T, T> function = ...;
IntPredicate intPredicate = ...;
ContextChain<T> contextChain = ...;
CompoundTag compoundTag = ...;
ExecutionControl<T> executionControl = ...;
ExecuteCommand.CommandGetter<T, Collection<CommandFunction<T>>> commandGetter = ...;
ChainModifiers chainModifiers = ...;
ExecuteCommand.scheduleFunctionConditionsAndTest(executionCommandSource, list, function, intPredicate, contextChain, compoundTag, executionControl, commandGetter, chainModifiers);

ExecuteCommand$CommandGetter

  • Full name: net.minecraft.server.commands.ExecuteCommand$CommandGetter
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/ExecuteCommand.java
  • Type: interface
  • Modifiers: public

net.minecraft.server.commands.ExecuteCommand$CommandGetter#get(CommandContext<T>)

  • Origin: common
  • Source: net/minecraft/server/commands/ExecuteCommand.java:1113
  • Modifiers: ``
  • Return: R

คืออะไร

อ่านค่า get

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • CommandContext<T> commandContext

Throws

  • CommandSyntaxException

ตัวอย่างใช้งาน

ExecuteCommand.CommandGetter instance = ...;
CommandContext<T> commandContext = ...;
R result = instance.get(commandContext);

ExperienceCommand

  • Full name: net.minecraft.server.commands.ExperienceCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/ExperienceCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.ExperienceCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/ExperienceCommand.java:25
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), players(), integer(), executes().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
ExperienceCommand.register(commandDispatcher);

FillBiomeCommand

  • Full name: net.minecraft.server.commands.FillBiomeCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/FillBiomeCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.FillBiomeCommand#fill(ServerLevel,BlockPos,BlockPos,Holder<Biome>)

  • Origin: common
  • Source: net/minecraft/server/commands/FillBiomeCommand.java:106
  • Modifiers: public static
  • Return: Either<Integer, CommandSyntaxException>

คืออะไร

ดำเนินการ fill ตาม implementation ของ FillBiomeCommand

ทำงานยังไง

คืนค่า: fill(serverLevel, blockPos, blockPos2, holder, holderx -> true, supplier -> {}).

Parameters

  • ServerLevel serverLevel
  • BlockPos blockPos
  • BlockPos blockPos2
  • Holder<Biome> holder

ตัวอย่างใช้งาน

ServerLevel serverLevel = ...;
BlockPos blockPos = ...;
BlockPos blockPos2 = ...;
Holder<Biome> holder = ...;
Either<Integer, CommandSyntaxException> result = FillBiomeCommand.fill(serverLevel, blockPos, blockPos2, holder);

net.minecraft.server.commands.FillBiomeCommand#fill(ServerLevel,BlockPos,BlockPos,Holder<Biome>,Predicate<Holder<Biome>>,Consumer<Supplier<Component>>)

  • Origin: common
  • Source: net/minecraft/server/commands/FillBiomeCommand.java:110
  • Modifiers: public static
  • Return: Either<Integer, CommandSyntaxException>

คืออะไร

ดำเนินการ fill ตาม implementation ของ FillBiomeCommand

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: quantize(), fromCorners(), getXSpan(), getYSpan(), getZSpan(), getGameRules(), getInt(), right(). สร้างออบเจ็กต์: ArrayList<>, MutableInt. มีจุด return อย่างน้อย 3 จุด.

Parameters

  • ServerLevel serverLevel
  • BlockPos blockPos
  • BlockPos blockPos2
  • Holder<Biome> holder
  • Predicate<Holder<Biome>> predicate
  • Consumer<Supplier<Component>> consumer

ตัวอย่างใช้งาน

ServerLevel serverLevel = ...;
BlockPos blockPos = ...;
BlockPos blockPos2 = ...;
Holder<Biome> holder = ...;
Predicate<Holder<Biome>> predicate = ...;
Consumer<Supplier<Component>> consumer = ...;
Either<Integer, CommandSyntaxException> result = FillBiomeCommand.fill(serverLevel, blockPos, blockPos2, holder, predicate, consumer);

net.minecraft.server.commands.FillBiomeCommand#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/FillBiomeCommand.java:41
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), blockPos(), resource(), executes().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
FillBiomeCommand.register(commandDispatcher, commandBuildContext);

FillCommand

  • Full name: net.minecraft.server.commands.FillCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/FillCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.FillCommand#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/FillCommand.java:37
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), blockPos(), block(), executes().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
FillCommand.register(commandDispatcher, commandBuildContext);

ForceLoadCommand

  • Full name: net.minecraft.server.commands.ForceLoadCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/ForceLoadCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.ForceLoadCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/ForceLoadCommand.java:34
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), columnPos(), executes(), changeForceLoad().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
ForceLoadCommand.register(commandDispatcher);

FunctionCommand

  • Full name: net.minecraft.server.commands.FunctionCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/FunctionCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.FunctionCommand#modifySenderForExecution(CommandSourceStack)

  • Origin: common
  • Source: net/minecraft/server/commands/FunctionCommand.java:106
  • Modifiers: public static
  • Return: CommandSourceStack

คืออะไร

ดำเนินการ modifySenderForExecution ตาม implementation ของ FunctionCommand

ทำงานยังไง

เรียกต่อ: withSuppressedOutput(), withMaximumPermission(). คืนค่า: commandSourceStack.withSuppressedOutput().withMaximumPermission(2).

Parameters

  • CommandSourceStack commandSourceStack

ตัวอย่างใช้งาน

CommandSourceStack commandSourceStack = ...;
CommandSourceStack result = FunctionCommand.modifySenderForExecution(commandSourceStack);

net.minecraft.server.commands.FunctionCommand#queueFunctions(Collection<CommandFunction<T>>,CompoundTag,T,T,ExecutionControl<T>,FunctionCommand.Callbacks<T>,ChainModifiers)

  • Origin: common
  • Source: net/minecraft/server/commands/FunctionCommand.java:110
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ queueFunctions ตาม implementation ของ FunctionCommand

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: isReturn(), queueFunctionsAsReturn(), queueFunctionsNoReturn().

Parameters

  • Collection<CommandFunction<T>> collection
  • CompoundTag compoundTag
  • T executionCommandSource
  • T executionCommandSource2
  • ExecutionControl<T> executionControl
  • FunctionCommand.Callbacks<T> callbacks
  • ChainModifiers chainModifiers

Throws

  • CommandSyntaxException

ตัวอย่างใช้งาน

Collection<CommandFunction<T>> collection = ...;
CompoundTag compoundTag = ...;
T executionCommandSource = ...;
T executionCommandSource2 = ...;
ExecutionControl<T> executionControl = ...;
FunctionCommand.Callbacks<T> callbacks = ...;
ChainModifiers chainModifiers = ...;
FunctionCommand.queueFunctions(collection, compoundTag, executionCommandSource, executionCommandSource2, executionControl, callbacks, chainModifiers);

net.minecraft.server.commands.FunctionCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/FunctionCommand.java:62
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

มีการวนลูป. เรียกต่อ: literal(), wrap(), executes(), FunctionCustomExecutor(), arguments(), access(), getData(), then(). สร้างออบเจ็กต์: FunctionCommand.FunctionCustomExecutor. มีจุด return อย่างน้อย 4 จุด.

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
FunctionCommand.register(commandDispatcher);

FunctionCommand$Callbacks

  • Full name: net.minecraft.server.commands.FunctionCommand$Callbacks
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/FunctionCommand.java
  • Type: interface
  • Modifiers: public

net.minecraft.server.commands.FunctionCommand$Callbacks#signalResult(T,ResourceLocation,int)

  • Origin: common
  • Source: net/minecraft/server/commands/FunctionCommand.java:237
  • Modifiers: ``
  • Return: void

คืออะไร

ดำเนินการ signalResult ตาม implementation ของ FunctionCommand$Callbacks

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • T object
  • ResourceLocation resourceLocation
  • int i

ตัวอย่างใช้งาน

FunctionCommand.Callbacks instance = ...;
T object = ...;
ResourceLocation resourceLocation = ...;
instance.signalResult(object, resourceLocation, 0);

GameModeCommand

  • Full name: net.minecraft.server.commands.GameModeCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/GameModeCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.GameModeCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/GameModeCommand.java:19
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), gameMode(), executes(), setMode().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
GameModeCommand.register(commandDispatcher);

GameRuleCommand

  • Full name: net.minecraft.server.commands.GameRuleCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/GameRuleCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.GameRuleCommand#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/GameRuleCommand.java:13
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), enabledFeatures(), visitGameRuleTypes(), GameRuleTypeVisitor(), visit(), getId(). สร้างออบเจ็กต์: GameRules, GameRules.GameRuleTypeVisitor.

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
GameRuleCommand.register(commandDispatcher, commandBuildContext);

GiveCommand

  • Full name: net.minecraft.server.commands.GiveCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/GiveCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.GiveCommand#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/GiveCommand.java:23
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), players(), item(), executes().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
GiveCommand.register(commandDispatcher, commandBuildContext);

HelpCommand

  • Full name: net.minecraft.server.commands.HelpCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/HelpCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.HelpCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/HelpCommand.java:17
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: literal(), executes(), getSmartUsage(), getRoot(), getSource(), values(), sendSuccess(), size(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
HelpCommand.register(commandDispatcher);

ItemCommands

  • Full name: net.minecraft.server.commands.ItemCommands
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/ItemCommands.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.ItemCommands#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/ItemCommands.java:68
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), blockPos(), slot(), item().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
ItemCommands.register(commandDispatcher, commandBuildContext);

JfrCommand

  • Full name: net.minecraft.server.commands.JfrCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/JfrCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.JfrCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/JfrCommand.java:28
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), executes(), startJfr(), getSource(), stopJfr().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
JfrCommand.register(commandDispatcher);

KickCommand

  • Full name: net.minecraft.server.commands.KickCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/KickCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.KickCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/KickCommand.java:20
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), players(), executes(), kickPlayers().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
KickCommand.register(commandDispatcher);

KillCommand

  • Full name: net.minecraft.server.commands.KillCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/KillCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.KillCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/KillCommand.java:13
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), executes(), kill(), getSource(), of(), getEntityOrException().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
KillCommand.register(commandDispatcher);

ListPlayersCommand

  • Full name: net.minecraft.server.commands.ListPlayersCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/ListPlayersCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.ListPlayersCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/ListPlayersCommand.java:15
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), executes(), listPlayers(), getSource(), then(), listPlayersWithUuids().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
ListPlayersCommand.register(commandDispatcher);

LocateCommand

  • Full name: net.minecraft.server.commands.LocateCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/LocateCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.LocateCommand#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/LocateCommand.java:56
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), resourceOrTagKey(), executes(), locateStructure().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
LocateCommand.register(commandDispatcher, commandBuildContext);

net.minecraft.server.commands.LocateCommand#showLocateResult(CommandSourceStack,ResourceOrTagArgument.Result<?>,BlockPos,Pair<BlockPos, ? extends Holder<?>>,String,boolean,Duration)

  • Origin: common
  • Source: net/minecraft/server/commands/LocateCommand.java:136
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ showLocateResult ตาม implementation ของ LocateCommand

ทำงานยังไง

เรียกต่อ: unwrap(), map(), asPrintable(), getSecond(), getRegisteredName(). คืนค่า: showLocateResult(commandSourceStack, blockPos, pair, string, bl, string2, duration).

Parameters

  • CommandSourceStack commandSourceStack
  • ResourceOrTagArgument.Result<?> result
  • BlockPos blockPos
  • Pair<BlockPos, ? extends Holder<?>> pair
  • String string
  • boolean bl
  • Duration duration

ตัวอย่างใช้งาน

CommandSourceStack commandSourceStack = ...;
ResourceOrTagArgument.Result<?> result = ...;
BlockPos blockPos = ...;
Pair<BlockPos, ? extends Holder<?>> pair = ...;
Duration duration = ...;
int result = LocateCommand.showLocateResult(commandSourceStack, result, blockPos, pair, "value", true, duration);

net.minecraft.server.commands.LocateCommand#showLocateResult(CommandSourceStack,ResourceOrTagKeyArgument.Result<?>,BlockPos,Pair<BlockPos, ? extends Holder<?>>,String,boolean,Duration)

  • Origin: common
  • Source: net/minecraft/server/commands/LocateCommand.java:149
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ showLocateResult ตาม implementation ของ LocateCommand

ทำงานยังไง

เรียกต่อ: unwrap(), map(), location(), toString(), getSecond(), getRegisteredName(). คืนค่า: showLocateResult(commandSourceStack, blockPos, pair, string, bl, string2, duration).

Parameters

  • CommandSourceStack commandSourceStack
  • ResourceOrTagKeyArgument.Result<?> result
  • BlockPos blockPos
  • Pair<BlockPos, ? extends Holder<?>> pair
  • String string
  • boolean bl
  • Duration duration

ตัวอย่างใช้งาน

CommandSourceStack commandSourceStack = ...;
ResourceOrTagKeyArgument.Result<?> result = ...;
BlockPos blockPos = ...;
Pair<BlockPos, ? extends Holder<?>> pair = ...;
Duration duration = ...;
int result = LocateCommand.showLocateResult(commandSourceStack, result, blockPos, pair, "value", true, duration);

LookAt

  • Full name: net.minecraft.server.commands.LookAt
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/LookAt.java
  • Type: interface
  • Modifiers: public

net.minecraft.server.commands.LookAt#perform(CommandSourceStack,Entity)

  • Origin: common
  • Source: net/minecraft/server/commands/LookAt.java:11
  • Modifiers: ``
  • Return: void

คืออะไร

ดำเนินการ perform ตาม implementation ของ LookAt

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • CommandSourceStack commandSourceStack
  • Entity entity

ตัวอย่างใช้งาน

LookAt instance = ...;
CommandSourceStack commandSourceStack = ...;
Entity entity = ...;
instance.perform(commandSourceStack, entity);

LootCommand

  • Full name: net.minecraft.server.commands.LootCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/LootCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.LootCommand#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/LootCommand.java:63
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: addTargets(), literal(), requires(), hasPermission(), then(), argument(), lootTable(), suggests().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
LootCommand.register(commandDispatcher, commandBuildContext);

MsgCommand

  • Full name: net.minecraft.server.commands.MsgCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/MsgCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.MsgCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/MsgCommand.java:17
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: literal(), then(), argument(), players(), message(), executes(), getPlayers(), isEmpty(). คืนค่า: collection.size().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
MsgCommand.register(commandDispatcher);

OpCommand

  • Full name: net.minecraft.server.commands.OpCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/OpCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.OpCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/OpCommand.java:18
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), gameProfile(), suggests(), getSource().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
OpCommand.register(commandDispatcher);

PardonCommand

  • Full name: net.minecraft.server.commands.PardonCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/PardonCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.PardonCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/PardonCommand.java:18
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), gameProfile(), suggests(), suggest().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
PardonCommand.register(commandDispatcher);

PardonIpCommand

  • Full name: net.minecraft.server.commands.PardonIpCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/PardonIpCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.PardonIpCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/PardonIpCommand.java:18
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), word(), suggests(), suggest().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
PardonIpCommand.register(commandDispatcher);

ParticleCommand

  • Full name: net.minecraft.server.commands.ParticleCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/ParticleCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.ParticleCommand#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/ParticleCommand.java:24
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), particle(), executes(), sendParticles().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
ParticleCommand.register(commandDispatcher, commandBuildContext);

PerfCommand

  • Full name: net.minecraft.server.commands.PerfCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/PerfCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.PerfCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/PerfCommand.java:33
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), executes(), startProfilingDedicatedServer(), getSource(), stopProfilingDedicatedServer().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
PerfCommand.register(commandDispatcher);

PlaceCommand

  • Full name: net.minecraft.server.commands.PlaceCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/PlaceCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.PlaceCommand#placeFeature(CommandSourceStack,Holder.Reference<ConfiguredFeature<?, ?>>,BlockPos)

  • Origin: common
  • Source: net/minecraft/server/commands/PlaceCommand.java:234
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ placeFeature ตาม implementation ของ PlaceCommand

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getLevel(), value(), checkLoaded(), place(), getChunkSource(), getGenerator(), getRandom(), create(). สร้างออบเจ็กต์: ChunkPos. คืนค่า: 1.

Parameters

  • CommandSourceStack commandSourceStack
  • Holder.Reference<ConfiguredFeature<?, ?>> reference
  • BlockPos blockPos

Throws

  • CommandSyntaxException

ตัวอย่างใช้งาน

CommandSourceStack commandSourceStack = ...;
Holder.Reference<ConfiguredFeature<?, ?>> reference = ...;
BlockPos blockPos = ...;
int result = PlaceCommand.placeFeature(commandSourceStack, reference, blockPos);

net.minecraft.server.commands.PlaceCommand#placeJigsaw(CommandSourceStack,Holder<StructureTemplatePool>,ResourceLocation,int,BlockPos)

  • Origin: common
  • Source: net/minecraft/server/commands/PlaceCommand.java:250
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ placeJigsaw ตาม implementation ของ PlaceCommand

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getLevel(), checkLoaded(), generateJigsaw(), create(), sendSuccess(), translatable(), getX(), getY(). สร้างออบเจ็กต์: ChunkPos. คืนค่า: 1.

Parameters

  • CommandSourceStack commandSourceStack
  • Holder<StructureTemplatePool> holder
  • ResourceLocation resourceLocation
  • int i
  • BlockPos blockPos

Throws

  • CommandSyntaxException

ตัวอย่างใช้งาน

CommandSourceStack commandSourceStack = ...;
Holder<StructureTemplatePool> holder = ...;
ResourceLocation resourceLocation = ...;
BlockPos blockPos = ...;
int result = PlaceCommand.placeJigsaw(commandSourceStack, holder, resourceLocation, 0, blockPos);

net.minecraft.server.commands.PlaceCommand#placeStructure(CommandSourceStack,Holder.Reference<Structure>,BlockPos)

  • Origin: common
  • Source: net/minecraft/server/commands/PlaceCommand.java:264
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ placeStructure ตาม implementation ของ PlaceCommand

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getLevel(), value(), getChunkSource(), getGenerator(), generate(), dimension(), registryAccess(), getBiomeSource(). สร้างออบเจ็กต์: ChunkPos, BoundingBox. คืนค่า: 1.

Parameters

  • CommandSourceStack commandSourceStack
  • Holder.Reference<Structure> reference
  • BlockPos blockPos

Throws

  • CommandSyntaxException

ตัวอย่างใช้งาน

CommandSourceStack commandSourceStack = ...;
Holder.Reference<Structure> reference = ...;
BlockPos blockPos = ...;
int result = PlaceCommand.placeStructure(commandSourceStack, reference, blockPos);

net.minecraft.server.commands.PlaceCommand#placeTemplate(CommandSourceStack,ResourceLocation,BlockPos,Rotation,Mirror,float,int)

  • Origin: common
  • Source: net/minecraft/server/commands/PlaceCommand.java:310
  • Modifiers: public static
  • Return: int

คืออะไร

ดำเนินการ placeTemplate ตาม implementation ของ PlaceCommand

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: getLevel(), getStructureManager(), get(), create(), isEmpty(), checkLoaded(), offset(), getSize(). สร้างออบเจ็กต์: ChunkPos, StructurePlaceSettings, BlockRotProcessor. คืนค่า: 1.

Parameters

  • CommandSourceStack commandSourceStack
  • ResourceLocation resourceLocation
  • BlockPos blockPos
  • Rotation rotation
  • Mirror mirror
  • float f
  • int i

Throws

  • CommandSyntaxException

ตัวอย่างใช้งาน

CommandSourceStack commandSourceStack = ...;
ResourceLocation resourceLocation = ...;
BlockPos blockPos = ...;
Rotation rotation = ...;
Mirror mirror = ...;
int result = PlaceCommand.placeTemplate(commandSourceStack, resourceLocation, blockPos, rotation, mirror, 0.0F, 0);

net.minecraft.server.commands.PlaceCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/PlaceCommand.java:60
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), key(), executes(), placeFeature().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
PlaceCommand.register(commandDispatcher);

PlaySoundCommand

  • Full name: net.minecraft.server.commands.PlaySoundCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/PlaySoundCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.PlaySoundCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/PlaySoundCommand.java:31
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

มีการวนลูป. เรียกต่อ: argument(), id(), suggests(), executes(), playSound(), getSource(), getCallingPlayerAsCollection(), getPlayer().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
PlaySoundCommand.register(commandDispatcher);

PublishCommand

  • Full name: net.minecraft.server.commands.PublishCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/PublishCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.PublishCommand#getSuccessMessage(int)

  • Origin: common
  • Source: net/minecraft/server/commands/PublishCommand.java:74
  • Modifiers: public static
  • Return: MutableComponent

คืออะไร

อ่านค่า Success Message

ทำงานยังไง

เรียกต่อ: copyOnClickText(), valueOf(), translatable(). คืนค่า: Component.translatable("commands.publish.started", component).

Parameters

  • int i

ตัวอย่างใช้งาน

MutableComponent result = PublishCommand.getSuccessMessage(0);

net.minecraft.server.commands.PublishCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/PublishCommand.java:25
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), executes(), publish(), getSource(), getAvailablePort(), then().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
PublishCommand.register(commandDispatcher);

RaidCommand

  • Full name: net.minecraft.server.commands.RaidCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/RaidCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.RaidCommand#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/RaidCommand.java:29
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), integer(), executes(), start().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
RaidCommand.register(commandDispatcher, commandBuildContext);

RandomCommand

  • Full name: net.minecraft.server.commands.RandomCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/RandomCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.RandomCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/RandomCommand.java:36
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), then(), drawRandomValueTree(), requires(), hasPermission(), executes(), resetAllSequences(), getSource().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
RandomCommand.register(commandDispatcher);

RecipeCommand

  • Full name: net.minecraft.server.commands.RecipeCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/RecipeCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.RecipeCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/RecipeCommand.java:21
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), players(), key(), executes().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
RecipeCommand.register(commandDispatcher);

ReloadCommand

  • Full name: net.minecraft.server.commands.ReloadCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/ReloadCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.ReloadCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/ReloadCommand.java:40
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), executes(), getSource(), getServer(), getPackRepository(), getWorldData(). คืนค่า: 0.

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
ReloadCommand.register(commandDispatcher);

net.minecraft.server.commands.ReloadCommand#reloadPacks(Collection<String>,CommandSourceStack)

  • Origin: common
  • Source: net/minecraft/server/commands/ReloadCommand.java:18
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ reloadPacks ตาม implementation ของ ReloadCommand

ทำงานยังไง

เรียกต่อ: getServer(), reloadResources(), exceptionally(), warn(), sendFailure(), translatable(). คืนค่า: null.

Parameters

  • Collection<String> collection
  • CommandSourceStack commandSourceStack

ตัวอย่างใช้งาน

Collection<String> collection = ...;
CommandSourceStack commandSourceStack = ...;
ReloadCommand.reloadPacks(collection, commandSourceStack);

ReturnCommand

  • Full name: net.minecraft.server.commands.ReturnCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/ReturnCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.ReturnCommand#register(CommandDispatcher<T>)

  • Origin: common
  • Source: net/minecraft/server/commands/ReturnCommand.java:19
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), integer(), executes(), forward(). สร้างออบเจ็กต์: ReturnCommand.ReturnValueCustomExecutor<>, ReturnCommand.ReturnFailCustomExecutor<>, ReturnCommand.ReturnFromCommandCustomModifier<>.

Parameters

  • CommandDispatcher<T> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<T> commandDispatcher = ...;
ReturnCommand.register(commandDispatcher);

RideCommand

  • Full name: net.minecraft.server.commands.RideCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/RideCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.RideCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/RideCommand.java:35
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), entity(), executes(), mount().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
RideCommand.register(commandDispatcher);

RotateCommand

  • Full name: net.minecraft.server.commands.RotateCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/RotateCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.RotateCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/RotateCommand.java:16
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), entity(), rotation(), executes(). สร้างออบเจ็กต์: LookAt.LookAtEntity, LookAt.LookAtPosition.

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
RotateCommand.register(commandDispatcher);

SaveAllCommand

  • Full name: net.minecraft.server.commands.SaveAllCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/SaveAllCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.SaveAllCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/SaveAllCommand.java:14
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), executes(), saveAll(), getSource(), then().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
SaveAllCommand.register(commandDispatcher);

SaveOffCommand

  • Full name: net.minecraft.server.commands.SaveOffCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/SaveOffCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.SaveOffCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/SaveOffCommand.java:13
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: literal(), requires(), hasPermission(), executes(), getSource(), getServer(), getAllLevels(), create(). คืนค่า: 1.

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
SaveOffCommand.register(commandDispatcher);

SaveOnCommand

  • Full name: net.minecraft.server.commands.SaveOnCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/SaveOnCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.SaveOnCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/SaveOnCommand.java:13
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: literal(), requires(), hasPermission(), executes(), getSource(), getServer(), getAllLevels(), create(). คืนค่า: 1.

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
SaveOnCommand.register(commandDispatcher);

SayCommand

  • Full name: net.minecraft.server.commands.SayCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/SayCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.SayCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/SayCommand.java:11
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), message(), executes(), resolveChatMessage(). คืนค่า: 1.

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
SayCommand.register(commandDispatcher);

ScheduleCommand

  • Full name: net.minecraft.server.commands.ScheduleCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/ScheduleCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.ScheduleCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/ScheduleCommand.java:38
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), functions(), suggests(), time().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
ScheduleCommand.register(commandDispatcher);

ScoreboardCommand

  • Full name: net.minecraft.server.commands.ScoreboardCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/ScoreboardCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.ScoreboardCommand#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/ScoreboardCommand.java:68
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), executes(), listObjectives(), getSource(), argument().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
ScoreboardCommand.register(commandDispatcher, commandBuildContext);

ScoreboardCommand$NumberFormatCommandExecutor

  • Full name: net.minecraft.server.commands.ScoreboardCommand$NumberFormatCommandExecutor
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/ScoreboardCommand.java
  • Type: interface
  • Modifiers: public

net.minecraft.server.commands.ScoreboardCommand$NumberFormatCommandExecutor#run(CommandContext<CommandSourceStack>,NumberFormat)

  • Origin: common
  • Source: net/minecraft/server/commands/ScoreboardCommand.java:871
  • Modifiers: ``
  • Return: int

คืออะไร

สั่งทำงาน run

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • CommandContext<CommandSourceStack> commandContext
  • NumberFormat numberFormat

Throws

  • CommandSyntaxException

ตัวอย่างใช้งาน

ScoreboardCommand.NumberFormatCommandExecutor instance = ...;
CommandContext<CommandSourceStack> commandContext = ...;
NumberFormat numberFormat = ...;
int result = instance.run(commandContext, numberFormat);

SeedCommand

  • Full name: net.minecraft.server.commands.SeedCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/SeedCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.SeedCommand#register(CommandDispatcher<CommandSourceStack>,boolean)

  • Origin: common
  • Source: net/minecraft/server/commands/SeedCommand.java:10
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), executes(), getSource(), getLevel(), getSeed(), copyOnClickText(). คืนค่า: (int)l.

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • boolean bl

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
SeedCommand.register(commandDispatcher, true);

ServerPackCommand

  • Full name: net.minecraft.server.commands.ServerPackCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/ServerPackCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.ServerPackCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/ServerPackCommand.java:16
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), string(), uuid(), word().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
ServerPackCommand.register(commandDispatcher);

SetBlockCommand

  • Full name: net.minecraft.server.commands.SetBlockCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/SetBlockCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.SetBlockCommand#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/SetBlockCommand.java:25
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), blockPos(), block(), executes().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
SetBlockCommand.register(commandDispatcher, commandBuildContext);

SetBlockCommand$Filter

  • Full name: net.minecraft.server.commands.SetBlockCommand$Filter
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/SetBlockCommand.java
  • Type: interface
  • Modifiers: public

net.minecraft.server.commands.SetBlockCommand$Filter#filter(BoundingBox,BlockPos,BlockInput,ServerLevel)

  • Origin: common
  • Source: net/minecraft/server/commands/SetBlockCommand.java:111
  • Modifiers: ``
  • Return: BlockInput

คืออะไร

ดำเนินการ filter ตาม implementation ของ SetBlockCommand$Filter

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • BoundingBox boundingBox
  • BlockPos blockPos
  • BlockInput blockInput
  • ServerLevel serverLevel

ตัวอย่างใช้งาน

SetBlockCommand.Filter instance = ...;
BoundingBox boundingBox = ...;
BlockPos blockPos = ...;
BlockInput blockInput = ...;
ServerLevel serverLevel = ...;
BlockInput result = instance.filter(boundingBox, blockPos, blockInput, serverLevel);

SetPlayerIdleTimeoutCommand

  • Full name: net.minecraft.server.commands.SetPlayerIdleTimeoutCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/SetPlayerIdleTimeoutCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.SetPlayerIdleTimeoutCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/SetPlayerIdleTimeoutCommand.java:10
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), integer(), executes(), setIdleTimeout().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
SetPlayerIdleTimeoutCommand.register(commandDispatcher);

SetSpawnCommand

  • Full name: net.minecraft.server.commands.SetSpawnCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/SetSpawnCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.SetSpawnCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/SetSpawnCommand.java:18
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), executes(), setSpawn(), getSource(), singleton(), getPlayerOrException().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
SetSpawnCommand.register(commandDispatcher);

SetWorldSpawnCommand

  • Full name: net.minecraft.server.commands.SetWorldSpawnCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/SetWorldSpawnCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.SetWorldSpawnCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/SetWorldSpawnCommand.java:14
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), executes(), setSpawn(), getSource(), containing(), getPosition().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
SetWorldSpawnCommand.register(commandDispatcher);

SpawnArmorTrimsCommand

  • Full name: net.minecraft.server.commands.SpawnArmorTrimsCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/SpawnArmorTrimsCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.SpawnArmorTrimsCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/SpawnArmorTrimsCommand.java:74
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), executes(), spawnArmorTrims(), getSource(), getPlayerOrException().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
SpawnArmorTrimsCommand.register(commandDispatcher);

SpectateCommand

  • Full name: net.minecraft.server.commands.SpectateCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/SpectateCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.SpectateCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/SpectateCommand.java:22
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), executes(), spectate(), getSource(), getPlayerOrException(), then().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
SpectateCommand.register(commandDispatcher);

SpreadPlayersCommand

  • Full name: net.minecraft.server.commands.SpreadPlayersCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/SpreadPlayersCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.SpreadPlayersCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/SpreadPlayersCommand.java:46
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), vec2(), floatArg(), bool().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
SpreadPlayersCommand.register(commandDispatcher);

StopCommand

  • Full name: net.minecraft.server.commands.StopCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/StopCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.StopCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/StopCommand.java:9
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), executes(), getSource(), sendSuccess(), translatable(), getServer(). คืนค่า: 1.

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
StopCommand.register(commandDispatcher);

StopSoundCommand

  • Full name: net.minecraft.server.commands.StopSoundCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/StopSoundCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.StopSoundCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/StopSoundCommand.java:20
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

มีการวนลูป. เรียกต่อ: argument(), players(), executes(), stopSound(), getSource(), getPlayers(), then(), literal().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
StopSoundCommand.register(commandDispatcher);

SummonCommand

  • Full name: net.minecraft.server.commands.SummonCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/SummonCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.SummonCommand#createEntity(CommandSourceStack,Holder.Reference<EntityType<?>>,Vec3,CompoundTag,boolean)

  • Origin: common
  • Source: net/minecraft/server/commands/SummonCommand.java:75
  • Modifiers: public static
  • Return: Entity

คืออะไร

สร้าง Entity

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: containing(), isInSpawnableBounds(), create(), copy(), putString(), key(), location(), toString(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • CommandSourceStack commandSourceStack
  • Holder.Reference<EntityType<?>> reference
  • Vec3 vec3
  • CompoundTag compoundTag
  • boolean bl

Throws

  • CommandSyntaxException

ตัวอย่างใช้งาน

CommandSourceStack commandSourceStack = ...;
Holder.Reference<EntityType<?>> reference = ...;
Vec3 vec3 = ...;
CompoundTag compoundTag = ...;
Entity result = SummonCommand.createEntity(commandSourceStack, reference, vec3, compoundTag, true);

net.minecraft.server.commands.SummonCommand#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/SummonCommand.java:31
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), resource(), suggests(), executes(). สร้างออบเจ็กต์: CompoundTag.

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
SummonCommand.register(commandDispatcher, commandBuildContext);

TagCommand

  • Full name: net.minecraft.server.commands.TagCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/TagCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.TagCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/TagCommand.java:22
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), entities(), word(), executes().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
TagCommand.register(commandDispatcher);

TeamCommand

  • Full name: net.minecraft.server.commands.TeamCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/TeamCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.TeamCommand#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/TeamCommand.java:61
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), executes(), listTeams(), getSource(), argument().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
TeamCommand.register(commandDispatcher, commandBuildContext);

TeamMsgCommand

  • Full name: net.minecraft.server.commands.TeamMsgCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/TeamMsgCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.TeamMsgCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/TeamMsgCommand.java:28
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: literal(), then(), argument(), message(), executes(), getSource(), getEntityOrException(), getTeam(). คืนค่า: list.size().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
TeamMsgCommand.register(commandDispatcher);

TeleportCommand

  • Full name: net.minecraft.server.commands.TeleportCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/TeleportCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.TeleportCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/TeleportCommand.java:35
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), vec3(), executes(), teleportToPos(). สร้างออบเจ็กต์: LookAt.LookAtEntity, LookAt.LookAtPosition.

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
TeleportCommand.register(commandDispatcher);

TellRawCommand

  • Full name: net.minecraft.server.commands.TellRawCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/TellRawCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.TellRawCommand#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/TellRawCommand.java:13
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

มีการวนลูป. เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), players(), textComponent(), executes(). คืนค่า: i.

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
TellRawCommand.register(commandDispatcher, commandBuildContext);

TickCommand

  • Full name: net.minecraft.server.commands.TickCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/TickCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.TickCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/TickCommand.java:20
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), executes(), tickQuery(), getSource(), argument().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
TickCommand.register(commandDispatcher);

TimeCommand

  • Full name: net.minecraft.server.commands.TimeCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/TimeCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.TimeCommand#addTime(CommandSourceStack,int)

  • Origin: common
  • Source: net/minecraft/server/commands/TimeCommand.java:68
  • Modifiers: public static
  • Return: int

คืออะไร

เพิ่ม Time

ทำงานยังไง

มีการวนลูป. เรียกต่อ: getServer(), getAllLevels(), setDayTime(), getDayTime(), forceTimeSynchronization(), getLevel(), sendSuccess(), translatable(). คืนค่า: j.

Parameters

  • CommandSourceStack commandSourceStack
  • int i

ตัวอย่างใช้งาน

CommandSourceStack commandSourceStack = ...;
int result = TimeCommand.addTime(commandSourceStack, 0);

net.minecraft.server.commands.TimeCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/TimeCommand.java:12
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), executes(), setTime(), getSource(), argument().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
TimeCommand.register(commandDispatcher);

net.minecraft.server.commands.TimeCommand#setTime(CommandSourceStack,int)

  • Origin: common
  • Source: net/minecraft/server/commands/TimeCommand.java:58
  • Modifiers: public static
  • Return: int

คืออะไร

กำหนดค่า Time

ทำงานยังไง

มีการวนลูป. เรียกต่อ: getServer(), getAllLevels(), setDayTime(), forceTimeSynchronization(), sendSuccess(), translatable(), getDayTime(), getLevel(). คืนค่า: getDayTime(commandSourceStack.getLevel()).

Parameters

  • CommandSourceStack commandSourceStack
  • int i

ตัวอย่างใช้งาน

CommandSourceStack commandSourceStack = ...;
int result = TimeCommand.setTime(commandSourceStack, 0);

TitleCommand

  • Full name: net.minecraft.server.commands.TitleCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/TitleCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.TitleCommand#register(CommandDispatcher<CommandSourceStack>,CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/server/commands/TitleCommand.java:25
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), players(), executes(), clearTitle().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher
  • CommandBuildContext commandBuildContext

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
CommandBuildContext commandBuildContext = ...;
TitleCommand.register(commandDispatcher, commandBuildContext);

TransferCommand

  • Full name: net.minecraft.server.commands.TransferCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/TransferCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.TransferCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/TransferCommand.java:20
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), string(), executes(), transfer().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
TransferCommand.register(commandDispatcher);

TriggerCommand

  • Full name: net.minecraft.server.commands.TriggerCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/TriggerCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.TriggerCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/TriggerCommand.java:31
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), then(), argument(), objective(), suggests(), suggestObjectives(), getSource(), executes().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
TriggerCommand.register(commandDispatcher);

net.minecraft.server.commands.TriggerCommand#suggestObjectives(CommandSourceStack,SuggestionsBuilder)

  • Origin: common
  • Source: net/minecraft/server/commands/TriggerCommand.java:74
  • Modifiers: public static
  • Return: CompletableFuture<Suggestions>

คืออะไร

ดำเนินการ suggestObjectives ตาม implementation ของ TriggerCommand

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getEntity(), newArrayList(), getServer(), getScoreboard(), getObjectives(), getCriteria(), getPlayerScoreInfo(), isLocked(). คืนค่า: SharedSuggestionProvider.suggest(list, suggestionsBuilder).

Parameters

  • CommandSourceStack commandSourceStack
  • SuggestionsBuilder suggestionsBuilder

ตัวอย่างใช้งาน

CommandSourceStack commandSourceStack = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = TriggerCommand.suggestObjectives(commandSourceStack, suggestionsBuilder);

WardenSpawnTrackerCommand

  • Full name: net.minecraft.server.commands.WardenSpawnTrackerCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/WardenSpawnTrackerCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.WardenSpawnTrackerCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/WardenSpawnTrackerCommand.java:14
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), executes(), resetTracker(), getSource(), of().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
WardenSpawnTrackerCommand.register(commandDispatcher);

WeatherCommand

  • Full name: net.minecraft.server.commands.WeatherCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/WeatherCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.WeatherCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/WeatherCommand.java:15
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), executes(), setClear(), getSource(), argument().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
WeatherCommand.register(commandDispatcher);

WhitelistCommand

  • Full name: net.minecraft.server.commands.WhitelistCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/WhitelistCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.WhitelistCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/WhitelistCommand.java:29
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), executes(), enableWhitelist(), getSource(), disableWhitelist().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
WhitelistCommand.register(commandDispatcher);

WorldBorderCommand

  • Full name: net.minecraft.server.commands.WorldBorderCommand
  • Package: net.minecraft.server.commands
  • Source: commonnet/minecraft/server/commands/WorldBorderCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.server.commands.WorldBorderCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/server/commands/WorldBorderCommand.java:47
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: literal(), requires(), hasPermission(), then(), argument(), doubleArg(), executes(), setSize().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
WorldBorderCommand.register(commandDispatcher);