Package com.comphenix.packetwrapper
Class WrapperPlayServerEntityTeleport
java.lang.Object
com.comphenix.packetwrapper.AbstractPacket
com.comphenix.packetwrapper.WrapperPlayServerEntityTeleport
-
Field Summary
-
Constructor Summary
ConstructorDescriptionWrapperPlayServerEntityTeleport(com.comphenix.protocol.events.PacketContainer packet)
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.entity.Entity
getEntity(com.comphenix.protocol.events.PacketEvent event)
Retrieve the entity.org.bukkit.entity.Entity
getEntity(org.bukkit.World world)
Retrieve the entity.int
Retrieve entity ID.boolean
float
getPitch()
Retrieve the pitch of the current entity.double
getX()
double
getY()
float
getYaw()
Retrieve the yaw of the current entity.double
getZ()
void
setEntityID(int value)
Set entity ID.void
setOnGround(boolean value)
void
setPitch(float value)
Set the pitch of the current entity.void
setX(double value)
void
setY(double value)
void
setYaw(float value)
Set the yaw of the current entity.void
setZ(double value)
Methods inherited from class com.comphenix.packetwrapper.AbstractPacket
broadcastPacket, getHandle, receivePacket, recievePacket, sendPacket
-
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)
-