Interface FlagValue

All Superinterfaces:
org.spongepowered.api.data.persistence.DataSerializable
All Known Implementing Classes:
FlagValueImpl

@ConfigSerializable public interface FlagValue extends org.spongepowered.api.data.persistence.DataSerializable
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default org.spongepowered.api.util.Tristate
     
     
    default boolean
    equalsTo(String source, String target)
     
    Initiator of the event.
    Event target.
    boolean
    Value of the flag.
    static FlagValue
    of(boolean value, String source, String target)
     
    static FlagValue
    simple(boolean value)
     

    Methods inherited from interface org.spongepowered.api.data.persistence.DataSerializable

    contentVersion, toContainer
  • Method Details

    • builder

      static FlagValue.Builder builder()
    • simple

      static FlagValue simple(boolean value)
    • of

      static FlagValue of(boolean value, String source, String target)
    • getSource

      String getSource()
      Initiator of the event.
    • getTarget

      String getTarget()
      Event target.
    • getValue

      boolean getValue()
      Value of the flag.
    • asTristate

      default org.spongepowered.api.util.Tristate asTristate()
    • equalsTo

      default boolean equalsTo(String source, String target)