类 PlaySoundCommand
java.lang.Object
net.minecraft.server.commands.PlaySoundCommand
-
字段概要
字段修饰符和类型字段说明private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static int
playSound
(CommandSourceStack pSource, Collection<ServerPlayer> pTargets, ResourceLocation pSound, SoundSource pCategory, Vec3 pPos, float pVolume, float pPitch, float pMinVolume) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher) private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack>
source
(SoundSource pCategory)
-
字段详细资料
-
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 pCategory) -
playSound
private static int playSound(CommandSourceStack pSource, Collection<ServerPlayer> pTargets, ResourceLocation pSound, SoundSource pCategory, Vec3 pPos, float pVolume, float pPitch, float pMinVolume) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-