infinity-craft/src/main/java/anvil/infinity/helpers/SoundHelper.java

13 lines
385 B
Java
Raw Normal View History

2019-05-13 11:24:02 +02:00
package anvil.infinity.helpers;
2019-05-08 20:20:27 +02:00
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.SoundEvent;
public class SoundHelper {
public static void playSoundAtEntity(EntityLivingBase entity, SoundEvent sound) {
entity.world.playSound(entity.getPosition().getX(), entity.getPosition().getY(), entity.getPosition().getZ(), sound, null, 5, 0, true);
}
}