Class ReadOnlyEvent

java.lang.Object
modelarium.entities.attributes.ReadOnlyAttribute<Event<?>>
modelarium.entities.attributes.events.ReadOnlyEvent

public final class ReadOnlyEvent extends ReadOnlyAttribute<Event<?>>
Provides a read-only view of an event attribute.
  • Method Details

    • toString

      public String toString()
      Returns the string representation of the event's triggered status.
      Overrides:
      toString in class Object
      Returns:
      the event's triggered status as a string
    • isTriggered

      public boolean isTriggered()
      Returns whether this event's trigger condition is currently met.
      Returns:
      true if the event is triggered, false otherwise