Class StoredFloatProperty

java.lang.Object
dev.prozilla.pine.common.property.storage.StoredProperty<Float>
dev.prozilla.pine.common.property.storage.StoredFloatProperty
All Implemented Interfaces:
Destructible, FloatProperty, MutableFloatProperty, MutableObjectProperty<Float>, MutableProperty<Float>, NonNullProperty<Float>, Property<Float>, Functor<Float>

public class StoredFloatProperty extends StoredProperty<Float> implements MutableFloatProperty
  • Constructor Details

    • StoredFloatProperty

      public StoredFloatProperty(Storage storage, String key)
  • Method Details

    • set

      public boolean set(float value)
      Description copied from interface: MutableFloatProperty
      Sets the value of this property.
      Specified by:
      set in interface MutableFloatProperty
      Parameters:
      value - The new value
      Returns:
      true if the value was changed.
    • getValue

      public Float getValue()
      Description copied from interface: Property
      Returns the value of this property.
      Specified by:
      getValue in interface FloatProperty
      Specified by:
      getValue in interface Property<Float>
      Specified by:
      getValue in class StoredProperty<Float>
      Returns:
      The value of this property.
    • get

      public float get()
      Description copied from interface: FloatProperty
      Returns the primitive value of this property.
      Specified by:
      get in interface FloatProperty
      Returns:
      The primitive value of this property.