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 Object
  • Field Details

    • name

      public final String name
    • clazz

      public final Class<T> clazz
    • defaultValue

      public final T defaultValue
  • Constructor Details

    • MultipartProperty

      public MultipartProperty(String name, Class<T> clazz, T defaultValue)
  • Method Details

    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • combine

      public abstract T combine(List<T> values)
      Parameters:
      values - A non-empty list of property values.
      Returns:
      The combined value.