add EffectsHelper
This commit is contained in:
16
src/main/java/ghast/EffectsHelper.java
Normal file
16
src/main/java/ghast/EffectsHelper.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package ghast;
|
||||
|
||||
import lombok.experimental.UtilityClass;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Sound;
|
||||
import org.bukkit.SoundCategory;
|
||||
|
||||
@UtilityClass
|
||||
@SuppressWarnings("unused")
|
||||
public class EffectsHelper {
|
||||
|
||||
public void playSound(Location location, Sound sound, float pitch) {
|
||||
location.getWorld().playSound(location, sound, SoundCategory.MASTER, 1.0f, pitch);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user