use of org.bukkit.EntityAnimation in project Glowstone by GlowstoneMC.
the class GlowLivingEntity method playAnimation.
public void playAnimation(@NotNull EntityAnimation animation) {
EntityAnimationMessage message = new EntityAnimationMessage(getEntityId(), animation.ordinal());
getWorld().getRawPlayers().stream().filter(observer -> observer != this && observer.canSeeEntity(this)).forEach(observer -> observer.getSession().send(message));
}
Aggregations