Changed sound playing to effect dispatching, since these seem more like more like encompassing effect than mere sounds.
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
25
paper-api/src/main/java/org/bukkit/Effect.java
Normal file
25
paper-api/src/main/java/org/bukkit/Effect.java
Normal file
@ -0,0 +1,25 @@
|
||||
package org.bukkit;
|
||||
|
||||
/**
|
||||
* A list of effects that the server is able to send to players.
|
||||
*/
|
||||
public enum Effect {
|
||||
BOW_FIRE(1002),
|
||||
CLICK1(1001),
|
||||
CLICK2(1000),
|
||||
DOOR_TOGGLE(1003),
|
||||
EXTINGUISH(1004),
|
||||
RECORD_PLAY(1005),
|
||||
SMOKE(2000),
|
||||
STEP_SOUND(2001);
|
||||
|
||||
private final int id;
|
||||
|
||||
Effect(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return this.id;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user