Class WrapperPlayServerCamera
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerCamera
Sent by the server to the client to instruct the client to render from the entity identified by the provided id
perspective.
-
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 valuesWrapperPlayServerCamera
(com.comphenix.protocol.events.PacketContainer packet) -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the id of the entity to spectatevoid
setCameraId
(int value) Sets the entity id of the entity to spectateMethods 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
-
WrapperPlayServerCamera
public WrapperPlayServerCamera()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerCamera
public WrapperPlayServerCamera(com.comphenix.protocol.events.PacketContainer packet)
-
-
Method Details
-
getCameraId
public int getCameraId()Gets the id of the entity to spectate- Returns:
- 'cameraId'
-
setCameraId
public void setCameraId(int value) Sets the entity id of the entity to spectate- Parameters:
value
- New value for field 'cameraId'
-