Class WrapperPlayServerEntityTeleport
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerEntityTeleport
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.comphenix.protocol.PacketType
The packet type that is wrapped by this wrapper.Fields inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
handle
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new wrapper and initialize it with a packet handle with default valuesWrapperPlayServerEntityTeleport
(com.comphenix.protocol.events.PacketContainer packet) -
Method Summary
Modifier and TypeMethodDescriptionint
getId()
Retrieves the value of field 'id'boolean
Retrieves the value of field 'onGround'double
getX()
Retrieves the value of field 'x'byte
getXRot()
Retrieves the value of field 'xRot'double
getY()
Retrieves the value of field 'y'byte
getYRot()
Retrieves the value of field 'yRot'double
getZ()
Retrieves the value of field 'z'void
setId
(int value) Sets the value of field 'id'void
setOnGround
(boolean value) Sets the value of field 'onGround'void
setX
(double value) Sets the value of field 'x'void
setXRot
(byte value) Sets the value of field 'xRot'void
setY
(double value) Sets the value of field 'y'void
setYRot
(byte value) Sets the value of field 'yRot'void
setZ
(double value) Sets the value of field 'z'Methods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket
-
Field Details
-
TYPE
public static final com.comphenix.protocol.PacketType TYPEThe packet type that is wrapped by this wrapper.
-
-
Constructor Details
-
WrapperPlayServerEntityTeleport
public WrapperPlayServerEntityTeleport()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerEntityTeleport
public WrapperPlayServerEntityTeleport(com.comphenix.protocol.events.PacketContainer packet)
-
-
Method Details
-
getId
public int getId()Retrieves the value of field 'id'- Returns:
- 'id'
-
setId
public void setId(int value) Sets the value of field 'id'- Parameters:
value
- New value for field 'id'
-
getX
public double getX()Retrieves the value of field 'x'- Returns:
- 'x'
-
setX
public void setX(double value) Sets the value of field 'x'- Parameters:
value
- New value for field 'x'
-
getY
public double getY()Retrieves the value of field 'y'- Returns:
- 'y'
-
setY
public void setY(double value) Sets the value of field 'y'- Parameters:
value
- New value for field 'y'
-
getZ
public double getZ()Retrieves the value of field 'z'- Returns:
- 'z'
-
setZ
public void setZ(double value) Sets the value of field 'z'- Parameters:
value
- New value for field 'z'
-
getYRot
public byte getYRot()Retrieves the value of field 'yRot'- Returns:
- 'yRot'
-
setYRot
public void setYRot(byte value) Sets the value of field 'yRot'- Parameters:
value
- New value for field 'yRot'
-
getXRot
public byte getXRot()Retrieves the value of field 'xRot'- Returns:
- 'xRot'
-
setXRot
public void setXRot(byte value) Sets the value of field 'xRot'- Parameters:
value
- New value for field 'xRot'
-
getOnGround
public boolean getOnGround()Retrieves the value of field 'onGround'- Returns:
- 'onGround'
-
setOnGround
public void setOnGround(boolean value) Sets the value of field 'onGround'- Parameters:
value
- New value for field 'onGround'
-