Class WrapperPlayServerLookAt
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerLookAt
Send by server to client to rotate the client player to face the given location or entity.
-
Nested Class Summary
Nested Classes -
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 valuesWrapperPlayServerLookAt
(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet -
Method Summary
Modifier and TypeMethodDescriptionboolean
Retrieves the value of field 'atEntity'int
Retrieves the value of field 'entity'Retrieves the value of field 'fromAnchor'com.comphenix.protocol.events.InternalStructure
Deprecated.Retrieves the value of field 'toAnchor'com.comphenix.protocol.events.InternalStructure
Deprecated.UsegetToAnchor()
insteaddouble
getX()
Retrieves the value of field 'x'double
getY()
Retrieves the value of field 'y'double
getZ()
Retrieves the value of field 'z'void
setAtEntity
(boolean value) Sets the value of field 'atEntity'void
setEntity
(int value) Sets the value of field 'entity'void
Sets the value of field 'fromAnchor'void
setFromAnchorInternal
(com.comphenix.protocol.events.InternalStructure value) Deprecated.UsesetFromAnchor(Anchor)
insteadvoid
Sets the value of field 'toAnchor'void
setToAnchorInternal
(com.comphenix.protocol.events.InternalStructure value) Deprecated.UsesetToAnchor(Anchor)
insteadvoid
setX
(double value) Sets the value of field 'x'void
setY
(double value) Sets the value of field 'y'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
-
WrapperPlayServerLookAt
public WrapperPlayServerLookAt()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerLookAt
public WrapperPlayServerLookAt(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet- Parameters:
packet
- the packet to wrap
-
-
Method Details
-
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'
-
getEntity
public int getEntity()Retrieves the value of field 'entity'- Returns:
- 'entity'
-
setEntity
public void setEntity(int value) Sets the value of field 'entity'- Parameters:
value
- New value for field 'entity'
-
getFromAnchorInternal
Deprecated.UsegetFromAnchor()
insteadRetrieves the value of field 'fromAnchor'- Returns:
- 'fromAnchor'
-
setFromAnchorInternal
@Deprecated public void setFromAnchorInternal(com.comphenix.protocol.events.InternalStructure value) Deprecated.UsesetFromAnchor(Anchor)
insteadSets the value of field 'fromAnchor' ProtocolLib currently does not provide a wrapper for this type. Access to this type is only provided by an InternalStructure- Parameters:
value
- New value for field 'fromAnchor'
-
getToAnchorInternal
Deprecated.UsegetToAnchor()
insteadRetrieves the value of field 'toAnchor' ProtocolLib currently does not provide a wrapper for this type. Access to this type is only provided by an InternalStructure- Returns:
- 'toAnchor'
-
setToAnchorInternal
Deprecated.UsesetToAnchor(Anchor)
insteadSets the value of field 'toAnchor' ProtocolLib currently does not provide a wrapper for this type. Access to this type is only provided by an InternalStructure- Parameters:
value
- New value for field 'toAnchor'
-
getFromAnchor
Retrieves the value of field 'fromAnchor'- Returns:
- 'fromAnchor'
-
setFromAnchor
Sets the value of field 'fromAnchor'- Parameters:
value
- New value for field 'fromAnchor'
-
getToAnchor
Retrieves the value of field 'toAnchor'- Returns:
- 'toAnchor'
-
setToAnchor
Sets the value of field 'toAnchor'- Parameters:
value
- New value for field 'toAnchor'
-
getAtEntity
public boolean getAtEntity()Retrieves the value of field 'atEntity'- Returns:
- 'atEntity'
-
setAtEntity
public void setAtEntity(boolean value) Sets the value of field 'atEntity'- Parameters:
value
- New value for field 'atEntity'
-
getFromAnchor()
instead