Class MultipartProperty.PreferedBooleanProperty
java.lang.Object
alexiil.mc.lib.multipart.api.property.MultipartProperty<java.lang.Boolean>
alexiil.mc.lib.multipart.api.property.MultipartProperty.PreferedBooleanProperty
- Enclosing class:
- MultipartProperty<T>
public static class MultipartProperty.PreferedBooleanProperty extends MultipartProperty<java.lang.Boolean>
A property where the value will combine up to whatever is opposite to the
MultipartProperty.defaultValue
-
Nested Class Summary
Nested classes/interfaces inherited from class alexiil.mc.lib.multipart.api.property.MultipartProperty
MultipartProperty.IntegerBoundProperty, MultipartProperty.PreferedBooleanProperty
-
Field Summary
Fields inherited from class alexiil.mc.lib.multipart.api.property.MultipartProperty
clazz, defaultValue, name
-
Constructor Summary
Constructors Constructor Description PreferedBooleanProperty(java.lang.String name, java.lang.Boolean defaultValue)
-
Method Summary
Modifier and Type Method Description java.lang.Boolean
combine(java.util.List<java.lang.Boolean> values)
Methods inherited from class alexiil.mc.lib.multipart.api.property.MultipartProperty
equals, hashCode, toString
-
Constructor Details
-
PreferedBooleanProperty
public PreferedBooleanProperty(java.lang.String name, java.lang.Boolean defaultValue)
-
-
Method Details
-
combine
public java.lang.Boolean combine(java.util.List<java.lang.Boolean> values)- Specified by:
combine
in classMultipartProperty<java.lang.Boolean>
- Parameters:
values
- A non-empty list of property values.- Returns:
- The combined value.
-