Skip to content
ZERNYTH.

API reference / dev.zernyth.api.entity

Entity

public interface Entity

Members

  • long getId()
  • long getRuntimeId()
  • String getType()
  • boolean isValid()
  • boolean isDead()
  • Location getLocation()
  • boolean teleport(Location location)
  • void setRotation(float yaw, float pitch)
  • Velocity getVelocity()
  • String getName()
  • void setName(String name)
  • boolean isOnGround()
  • boolean isInWater()
  • boolean isInLava()
  • OptionalInt getHealth()
  • void setHealth(int health)
  • Optional<Player> asPlayer()
  • void remove()

    Rejects player entities; use Player.kick instead.