Interface TeleportEntityPacketView

All Superinterfaces:
PacketView

public interface TeleportEntityPacketView extends PacketView
Lazy copy-on-write view of a clientbound entity teleport.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    boolean
     
    float
     
    void
    position(double x, double y, double z)
    Replaces the absolute teleport position.
    double
    x()
     
    double
    y()
     
    float
    yaw()
     
    double
    z()
     

    Methods inherited from interface devs.beer.nativepackets.api.PacketView

    isModified, nativeHandle, type
  • Method Details

    • entityId

      int entityId()
      Returns:
      native entity ID
    • x

      double x()
      Returns:
      X position
    • y

      double y()
      Returns:
      Y position
    • z

      double z()
      Returns:
      Z position
    • yaw

      float yaw()
      Returns:
      yaw in degrees
    • pitch

      float pitch()
      Returns:
      pitch in degrees
    • onGround

      boolean onGround()
      Returns:
      whether the entity is on the ground
    • position

      void position(double x, double y, double z)
      Replaces the absolute teleport position.