Interface VersionedBooleanSetting

All Superinterfaces:
BooleanSetting, Setting

public interface VersionedBooleanSetting extends BooleanSetting
Boolean setting that can be enabled or disabled for specific protocol versions.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isActive(com.viaversion.viaversion.api.protocol.version.ProtocolVersion version)
    Checks if the setting is active for the given protocol version.
    boolean
    The value of the setting.
    com.viaversion.viaversion.api.protocol.version.ProtocolVersionRange
    The version range the setting is valid for.

    Methods inherited from interface BooleanSetting

    defaultValue, isActive, setActive

    Methods inherited from interface Setting

    name, read, write
  • Method Details

    • versionRange

      com.viaversion.viaversion.api.protocol.version.ProtocolVersionRange versionRange()
      The version range the setting is valid for.
      Returns:
      the version range
    • isActive

      boolean isActive(com.viaversion.viaversion.api.protocol.version.ProtocolVersion version)
      Checks if the setting is active for the given protocol version.
      Parameters:
      version - the protocol version
      Returns:
      true if the setting is active, false otherwise
    • value

      boolean value()
      The value of the setting.
      Returns:
      the value of the setting