mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-08 16:12:18 -07:00
added playSound methods to the World interface and a utility method to Location
By: sunkid <sunkid@iminurnetz.com>
This commit is contained in:
25
paper-api/src/main/java/org/bukkit/Sound.java
Normal file
25
paper-api/src/main/java/org/bukkit/Sound.java
Normal file
@@ -0,0 +1,25 @@
|
||||
package org.bukkit;
|
||||
|
||||
/**
|
||||
* A list of sounds that the server is able to send to players.
|
||||
*/
|
||||
public enum Sound {
|
||||
BOW_FIRE(1002),
|
||||
CLICK1(1001),
|
||||
CLICK2(1000),
|
||||
DOOR_SOUND(1003),
|
||||
EXTINGUISH(1004),
|
||||
RECORD_PLAY(1005),
|
||||
SMOKE(2000),
|
||||
STEP_SOUND(2001);
|
||||
private final int soundIdentifier;
|
||||
|
||||
Sound(int soundIdentifier) {
|
||||
this.soundIdentifier = soundIdentifier;
|
||||
}
|
||||
|
||||
public int getSoundIdentifier() {
|
||||
return this.soundIdentifier;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user