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 class
MultipartProperty.IntegerBoundProperty
static class
MultipartProperty.PreferedBooleanProperty
A 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>
clazz
T
defaultValue
java.lang.String
name
-
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:
equals
in classjava.lang.Object
-
hashCode
public final int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toString
public final java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
combine
- Parameters:
values
- A non-empty list of property values.- Returns:
- The combined value.
-