Class RandomFloatProperty
java.lang.Object
dev.prozilla.pine.common.property.random.RandomProperty<Float>
dev.prozilla.pine.common.property.random.RandomFloatProperty
- All Implemented Interfaces:
FloatProperty,NonNullProperty<Float>,Property<Float>,Functor<Float>
- Direct Known Subclasses:
LocalRandomFloatProperty
A property with a randomized integer value.
-
Field Summary
FieldsFields inherited from class dev.prozilla.pine.common.property.random.RandomProperty
globalRandom -
Constructor Summary
ConstructorsConstructorDescriptionRandomFloatProperty(float min, float max) RandomFloatProperty(Vector2f bounds) -
Method Summary
Methods inherited from class dev.prozilla.pine.common.property.random.RandomProperty
getRandom, setGlobalSeed, setSeedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.prozilla.pine.common.property.FloatProperty
getValue, getValueOr, has, hasProperty, isZeroProperty, map, replaceNull, requireValueMethods inherited from interface dev.prozilla.pine.common.property.NonNullProperty
isNotNull, isNotNullPropertyMethods inherited from interface dev.prozilla.pine.common.property.Property
hasValue, hasValueProperty, isNull, map, snapshot, toStringProperty
-
Field Details
-
min
protected final float min -
max
protected final float max
-
-
Constructor Details
-
RandomFloatProperty
-
RandomFloatProperty
public RandomFloatProperty(float min, float max)
-
-
Method Details
-
get
public float get()Description copied from interface:FloatPropertyReturns the primitive value of this property.- Specified by:
getin interfaceFloatProperty- Returns:
- The primitive value of this property.
-