Interface AddEntityPacketView

All Superinterfaces:
PacketView

public interface AddEntityPacketView extends PacketView
Lazy copy-on-write view of a clientbound entity spawn.
  • Method Details

    • entityId

      int entityId()
      Returns:
      native entity ID
    • entityUuid

      UUID entityUuid()
      Returns:
      native entity UUID
    • entityType

      NativeValue entityType()
      Returns:
      lazy native entity-type handle
    • x

      double x()
      Returns:
      X position
    • y

      double y()
      Returns:
      Y position
    • z

      double z()
      Returns:
      Z position
    • pitch

      float pitch()
      Returns:
      pitch in degrees
    • yaw

      float yaw()
      Returns:
      yaw in degrees
    • headYaw

      float headYaw()
      Returns:
      head yaw in degrees
    • data

      int data()
      Returns:
      native entity data value
    • velocityX

      double velocityX()
      Returns:
      X velocity
    • velocityY

      double velocityY()
      Returns:
      Y velocity
    • velocityZ

      double velocityZ()
      Returns:
      Z velocity
    • entityId

      void entityId(int entityId)
      Parameters:
      entityId - replacement entity ID
    • position

      void position(double x, double y, double z)
      Parameters:
      x - X position
      y - Y position
      z - Z position
    • rotation

      void rotation(float pitch, float yaw, float headYaw)
      Parameters:
      pitch - pitch in degrees
      yaw - yaw in degrees
      headYaw - head yaw in degrees
    • data

      void data(int data)
      Parameters:
      data - replacement native entity data
    • velocity

      void velocity(double x, double y, double z)
      Parameters:
      x - X velocity
      y - Y velocity
      z - Z velocity