Class WrapperPlayServerCamera

java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerCamera

public class WrapperPlayServerCamera extends AbstractPacket
Sent by the server to the client to instruct the client to render from the entity identified by the provided id perspective.
  • Field Details

    • TYPE

      public static final com.comphenix.protocol.PacketType TYPE
      The 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'