Class MultipartProperty<T>
java.lang.Object
alexiil.mc.lib.multipart.api.property.MultipartProperty<T>
- Direct Known Subclasses:
MultipartProperty.IntegerBoundProperty,MultipartProperty.PreferedBooleanProperty
public abstract class MultipartProperty<T>
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMultipartProperty.IntegerBoundPropertystatic classMultipartProperty.PreferedBooleanPropertyA property where the value will combine up to whatever is opposite to thedefaultValue -
Field Summary
Fields Modifier and Type Field Description java.lang.Class<T>clazzTdefaultValuejava.lang.Stringname -
Constructor Summary
Constructors Constructor Description MultipartProperty(java.lang.String name, java.lang.Class<T> clazz, T defaultValue) -
Method Summary
-
Field Details
-
name
public final java.lang.String name -
clazz
-
defaultValue
-
-
Constructor Details
-
Method Details
-
equals
public final boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public final int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public final java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
combine
- Parameters:
values- A non-empty list of property values.- Returns:
- The combined value.
-