mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-10 02:17:41 +01:00
Small comment cleanup
This commit is contained in:
parent
ebed118ee2
commit
2843da6b26
@ -863,29 +863,12 @@ public class Player extends LivingEntity implements CommandSender {
|
|||||||
/**
|
/**
|
||||||
* Plays a sound from the {@link Sound} enum.
|
* Plays a sound from the {@link Sound} enum.
|
||||||
*
|
*
|
||||||
* @param sound the sound to play
|
* @see #playSound(Sound, SoundCategory, int, int, int, float, float)
|
||||||
* @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 Sound sound, @NotNull SoundCategory soundCategory, BlockPosition position, float volume, float pitch) {
|
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);
|
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).
|
* 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);
|
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).
|
* Plays a sound directly to the player (constant volume).
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user