Interface VersionedBooleanSetting
- All Superinterfaces:
BooleanSetting, Setting
Boolean setting that can be enabled or disabled for specific protocol versions.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisActive(com.viaversion.viaversion.api.protocol.version.ProtocolVersion version) Checks if the setting is active for the given protocol version.booleanvalue()The value of the setting.com.viaversion.viaversion.api.protocol.version.ProtocolVersionRangeThe version range the setting is valid for.Methods inherited from interface BooleanSetting
defaultValue, isActive, setActive
-
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
-