Package org.empirewar.orbis.flag
Class RegistryRegionFlag<T>
java.lang.Object
org.empirewar.orbis.flag.RegionFlag<T>
org.empirewar.orbis.flag.RegistryRegionFlag<T>
- Type Parameters:
T- the type this flag has
- All Implemented Interfaces:
net.kyori.adventure.key.Keyed
This base class is immutable and is stored in the
OrbisRegistries.FLAGS registry.
A flag may be converted to a mutable representation by using asMutable() or asGrouped() as required.
The provided Supplier of RegistryRegionFlag will be used to copy a value into the mutable representation.- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.empirewar.orbis.flag.RegionFlag
codec, key -
Method Summary
Modifier and TypeMethodDescriptionGets a grouped mutable representation of this flag.Gets a mutable representation of this flag.static <T> RegistryRegionFlag.Builder<T> builder()Gets the class of the default value of this flag.Gets the description of this flag.
-
Method Details
-
defaultValueType
Gets the class of the default value of this flag.- Returns:
- class of the default value
-
asMutable
Gets a mutable representation of this flag.- Returns:
- mutable representation
-
asGrouped
Gets a grouped mutable representation of this flag.- Returns:
- grouped mutable representation
-
description
Gets the description of this flag.This description is displayed as a tooltip when hovering over the flag name in chat or command suggestions.
- Returns:
- the description
-
builder
-