use of net.glowstone.net.message.play.entity.EntityAnimationMessage 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));
}
use of net.glowstone.net.message.play.entity.EntityAnimationMessage in project Glowstone by GlowstoneMC.
the class GlowPlayer method playAnimationToSelf.
public void playAnimationToSelf(EntityAnimation animation) {
EntityAnimationMessage message = new EntityAnimationMessage(getEntityId(), animation.ordinal());
getSession().send(message);
}
Aggregations