Class CameraInstructionPacket

java.lang.Object
cn.nukkit.utils.BinaryStream
cn.nukkit.network.protocol.DataPacket
cn.nukkit.network.protocol.CameraInstructionPacket
All Implemented Interfaces:
Cloneable

@Since("1.19.70-r1") @PowerNukkitXOnly public class CameraInstructionPacket extends DataPacket
  • Constructor Details

    • CameraInstructionPacket

      public CameraInstructionPacket()
  • Method Details

    • pid

      @Deprecated public byte pid()
      Deprecated.
      Specified by:
      pid in class DataPacket
    • packetId

      @Nonnegative @Since("1.19.70-r1") public int packetId()
      Overrides:
      packetId in class DataPacket
      Returns:
      The id of the packet
    • decode

      public void decode()
      Specified by:
      decode in class DataPacket
    • encode

      public void encode()
      Specified by:
      encode in class DataPacket
    • setInstruction

      @Since("1.20.0-r2") public void setInstruction(CameraInstruction instruction)
    • writeEase

      protected void writeEase(Ease ease)
    • writeTimeData

      protected void writeTimeData(Time time)
    • writeColor

      protected void writeColor(Color color)
    • getSetInstruction

      public SetInstruction getSetInstruction()
    • getFadeInstruction

      public FadeInstruction getFadeInstruction()
    • getClearInstruction

      public ClearInstruction getClearInstruction()
    • setSetInstruction

      public void setSetInstruction(SetInstruction setInstruction)
    • setFadeInstruction

      public void setFadeInstruction(FadeInstruction fadeInstruction)
    • setClearInstruction

      public void setClearInstruction(ClearInstruction clearInstruction)