mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-21 15:41:38 +01:00
Add playSound with position to Player (#1676)
This commit is contained in:
parent
84846f663b
commit
8eb089bf3e
@ -705,6 +705,10 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
this.playSound(sound, this.position.x(), this.position.y(), this.position.z());
|
||||
}
|
||||
|
||||
public void playSound(@NotNull Sound sound, @NotNull Point point) {
|
||||
sendPacket(AdventurePacketConvertor.createSoundPacket(sound, point.x(), point.y(), point.z()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void playSound(@NotNull Sound sound, double x, double y, double z) {
|
||||
sendPacket(AdventurePacketConvertor.createSoundPacket(sound, x, y, z));
|
||||
|
Loading…
Reference in New Issue
Block a user