Class EnvironmentAttributeSupplier<V>
java.lang.Object
dev.wyck.wrapper.environment.attribute.EnvironmentAttributeSupplier<V>
- Type Parameters:
V- the type of the attribute value
- All Implemented Interfaces:
Keyed
- Direct Known Subclasses:
FriendlyColorSupplier
@NullMarked
@AsOf("2.1.0")
public sealed class EnvironmentAttributeSupplier<V>
extends Object
implements Keyed
permits FriendlyColorSupplier
A supplier for WrappedEnvironmentAttribute instances.
- Since:
- 1.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionEnvironmentAttributeSupplier(EnvironmentAttribute<V> environmentAttribute) Creates a new WrappedEnvironmentAttributeSupplier with the given WrappedEnvironmentAttribute. -
Method Summary
-
Constructor Details
-
EnvironmentAttributeSupplier
Creates a new WrappedEnvironmentAttributeSupplier with the given WrappedEnvironmentAttribute.- Parameters:
environmentAttribute- the WrappedEnvironmentAttribute to supply
-
-
Method Details
-
get
Gets the WrappedEnvironmentAttribute from the supplier.- Returns:
- the WrappedEnvironmentAttribute
-
unbox
Unboxes the value into a WrappedEnvironmentAttribute.- Parameters:
value- the value to unbox- Returns:
- the WrappedEnvironmentAttribute
- Since:
- 2.1.0
-
key
Gets the key of the attribute.
-