Class SerializedVariable

java.lang.Object
ch.njol.skript.variables.SerializedVariable

public class SerializedVariable extends Object
An instance of a serialized variable, contains the variable name and the serialized value.
  • Field Details

    • name

      public final String name
      The name of the variable.
    • value

      public final @Nullable SerializedVariable.Value value
      The serialized value of the variable.

      A value of null indicates the variable will be deleted.

  • Constructor Details

    • SerializedVariable

      public SerializedVariable(String name, @Nullable SerializedVariable.Value value)
      Creates a new serialized variable with the given name and value.
      Parameters:
      name - the given name.
      value - the given value, or null to indicate a deletion.