Class RandomIntProperty

java.lang.Object
dev.prozilla.pine.common.property.random.RandomProperty<Integer>
dev.prozilla.pine.common.property.random.RandomIntProperty
All Implemented Interfaces:
IntProperty, NonNullProperty<Integer>, Property<Integer>, Functor<Integer>
Direct Known Subclasses:
LocalRandomIntProperty

public class RandomIntProperty extends RandomProperty<Integer> implements IntProperty
A property with a randomized integer value.
  • Field Details

    • min

      protected final int min
    • max

      protected final int max
  • Constructor Details

    • RandomIntProperty

      public RandomIntProperty(Vector2i bounds)
    • RandomIntProperty

      public RandomIntProperty(int min, int max)
  • Method Details

    • get

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