From 2843da6b2638c5bd03bbfb39da12967fa87c663e Mon Sep 17 00:00:00 2001 From: themode Date: Tue, 23 Feb 2021 15:11:21 +0100 Subject: [PATCH] Small comment cleanup --- .../net/minestom/server/entity/Player.java | 28 +++++++------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/src/main/java/net/minestom/server/entity/Player.java b/src/main/java/net/minestom/server/entity/Player.java index 8ec7d5d87..7dd3f7949 100644 --- a/src/main/java/net/minestom/server/entity/Player.java +++ b/src/main/java/net/minestom/server/entity/Player.java @@ -863,29 +863,12 @@ public class Player extends LivingEntity implements CommandSender { /** * Plays a sound from the {@link Sound} enum. * - * @param sound the sound to play - * @param soundCategory the sound category - * @param position the block position to use. - * @param volume the volume of the sound (1 is 100%) - * @param pitch the pitch of the sound, between 0.5 and 2.0 + * @see #playSound(Sound, SoundCategory, int, int, int, float, float) */ public void playSound(@NotNull Sound sound, @NotNull SoundCategory soundCategory, BlockPosition position, float volume, float pitch) { playSound(sound, soundCategory, position.getX(), position.getY(), position.getZ(), volume, pitch); } - /** - * Plays a sound from an identifier (represents a custom sound in a resource pack). - * - * @param identifier the identifier of the sound to play - * @param soundCategory the sound category - * @param position the block position to use. - * @param volume the volume of the sound (1 is 100%) - * @param pitch the pitch of the sound, between 0.5 and 2.0 - */ - public void playSound(@NotNull String identifier, @NotNull SoundCategory soundCategory, BlockPosition position, float volume, float pitch) { - playSound(identifier, soundCategory, position.getX(), position.getY(), position.getZ(), volume, pitch); - } - /** * Plays a sound from an identifier (represents a custom sound in a resource pack). * @@ -909,6 +892,15 @@ public class Player extends LivingEntity implements CommandSender { playerConnection.sendPacket(namedSoundEffectPacket); } + /** + * Plays a sound from an identifier (represents a custom sound in a resource pack). + * + * @see #playSound(String, SoundCategory, int, int, int, float, float) + */ + public void playSound(@NotNull String identifier, @NotNull SoundCategory soundCategory, BlockPosition position, float volume, float pitch) { + playSound(identifier, soundCategory, position.getX(), position.getY(), position.getZ(), volume, pitch); + } + /** * Plays a sound directly to the player (constant volume). *