Class ObservableProperty.Builder<T>
java.lang.Object
io.github.cottonmc.cotton.gui.widget.data.ObservableProperty.Builder<T>
- Type Parameters:
T
- the contained value type
- Enclosing class:
ObservableProperty<T>
A builder for properties.
-
Method Details
-
nonnull
Disallows null values.- Returns:
- this builder
-
name
Sets the name of this property, which is used in debug messages. -
build
Builds the observable property.- Returns:
- the created property
-