Package com.comphenix.packetwrapper
Class WrapperPlayServerEntityTeleport
java.lang.Object
com.comphenix.packetwrapper.AbstractPacket
com.comphenix.packetwrapper.WrapperPlayServerEntityTeleport
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWrapperPlayServerEntityTeleport(com.comphenix.protocol.events.PacketContainer packet) -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.entity.EntitygetEntity(com.comphenix.protocol.events.PacketEvent event)Retrieve the entity.org.bukkit.entity.EntitygetEntity(org.bukkit.World world)Retrieve the entity.intRetrieve entity ID.booleanfloatgetPitch()Retrieve the pitch of the current entity.doublegetX()doublegetY()floatgetYaw()Retrieve the yaw of the current entity.doublegetZ()voidsetEntityID(int value)Set entity ID.voidsetOnGround(boolean value)voidsetPitch(float value)Set the pitch of the current entity.voidsetX(double value)voidsetY(double value)voidsetYaw(float value)Set the yaw of the current entity.voidsetZ(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)
-