Class SetPacket

java.lang.Object
dev.koifysh.archipelago.network.APPacket
dev.koifysh.archipelago.network.client.SetPacket

public class SetPacket extends APPacket
  • Field Details

    • key

      @SerializedName("key") public String key
      The key to manipulate. Can never start with "_read".
    • defaultValue

      @SerializedName("default") public Object defaultValue
      The default value to use in case the key has no value on the server.
    • want_reply

      @SerializedName("want_reply") public boolean want_reply
      If true, the server will send a SetReplyEvent response back to the client.
    • operations

      @SerializedName("operations") public ArrayList<dev.koifysh.archipelago.network.client.SetPacket.DataStorageOperation> operations
      Operations to apply to the value on the server, multiple operations can be present, and they will be executed in order of appearance.
  • Constructor Details

    • SetPacket

      public SetPacket(String key, Object defaultValue)
  • Method Details

    • addDataStorageOperation

      public void addDataStorageOperation(SetPacket.Operation operation, Object value)
      adds a SetPacket.DataStorageOperation to be performed to the value on the server, these are applied in the order that you add them.
      Parameters:
      operation - SetPacket.Operation to apply
      value - a `value` for use with the SetPacket.Operation
    • getRequestID

      public int getRequestID()