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
  • 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 class MultipartProperty<java.lang.Boolean>
      Parameters:
      values - A non-empty list of property values.
      Returns:
      The combined value.