Class WrapperPlayServerEntityTeleport

java.lang.Object
com.comphenix.packetwrapper.AbstractPacket
com.comphenix.packetwrapper.WrapperPlayServerEntityTeleport

public class WrapperPlayServerEntityTeleport extends AbstractPacket
  • Field Details

    • TYPE

      public static final com.comphenix.protocol.PacketType TYPE
  • Constructor Details

    • WrapperPlayServerEntityTeleport

      public WrapperPlayServerEntityTeleport()
    • WrapperPlayServerEntityTeleport

      public WrapperPlayServerEntityTeleport(com.comphenix.protocol.events.PacketContainer packet)
  • Method Details

    • getEntityID

      public int getEntityID()
      Retrieve entity ID.
      Returns:
      The current EID
    • setEntityID

      public void setEntityID(int value)
      Set entity ID.
      Parameters:
      value - - new value.
    • getEntity

      public org.bukkit.entity.Entity getEntity(org.bukkit.World world)
      Retrieve the entity.
      Parameters:
      world - - the current world of the entity.
      Returns:
      The entity.
    • getEntity

      public org.bukkit.entity.Entity getEntity(com.comphenix.protocol.events.PacketEvent event)
      Retrieve the entity.
      Parameters:
      event - - the packet event.
      Returns:
      The entity.
    • getX

      public double getX()
    • setX

      public void setX(double value)
    • getY

      public double getY()
    • setY

      public void setY(double value)
    • getZ

      public double getZ()
    • setZ

      public void setZ(double value)
    • getYaw

      public float getYaw()
      Retrieve the yaw of the current entity.
      Returns:
      The current Yaw
    • setYaw

      public void setYaw(float value)
      Set the yaw of the current entity.
      Parameters:
      value - - new yaw.
    • getPitch

      public float getPitch()
      Retrieve the pitch of the current entity.
      Returns:
      The current pitch
    • setPitch

      public void setPitch(float value)
      Set the pitch of the current entity.
      Parameters:
      value - - new pitch.
    • getOnGround

      public boolean getOnGround()
    • setOnGround

      public void setOnGround(boolean value)