类 PlaySoundCommand
java.lang.Object
net.minecraft.server.commands.PlaySoundCommand
-
字段概要
字段修饰符和类型字段说明private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static Collection
<ServerPlayer> getCallingPlayerAsCollection
(ServerPlayer p_330601_) private static int
playSound
(CommandSourceStack p_138161_, Collection<ServerPlayer> p_138162_, ResourceLocation p_138163_, SoundSource p_138164_, Vec3 p_138165_, float p_138166_, float p_138167_, float p_138168_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_138157_) private static com.mojang.brigadier.builder.LiteralArgumentBuilder
<CommandSourceStack> source
(SoundSource p_138152_)
-
字段详细资料
-
ERROR_TOO_FAR
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TOO_FAR
-
-
构造器详细资料
-
PlaySoundCommand
public PlaySoundCommand()
-
-
方法详细资料
-
register
-
source
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> source(SoundSource p_138152_) -
getCallingPlayerAsCollection
private static Collection<ServerPlayer> getCallingPlayerAsCollection(@Nullable ServerPlayer p_330601_) -
playSound
private static int playSound(CommandSourceStack p_138161_, Collection<ServerPlayer> p_138162_, ResourceLocation p_138163_, SoundSource p_138164_, Vec3 p_138165_, float p_138166_, float p_138167_, float p_138168_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-