Class RegionEvent.UpdateArea

java.lang.Object
de.z0rdak.yawp.api.events.region.RegionEvent
de.z0rdak.yawp.api.events.region.RegionEvent.UpdateArea
Enclosing class:
RegionEvent

public static final class RegionEvent.UpdateArea extends RegionEvent
This event is fired whenever a new area is created. This event is cancelable. Canceling this event will prevent the area from being updated.
  • Constructor Details

  • Method Details

    • markedArea

      public IMarkableArea markedArea()
    • setMarkedArea

      public void setMarkedArea(IMarkableArea markedArea)
      The area set here is not validated again. Be sure you validate the area before setting it.
      Otherwise, you may cause inconsistencies and break your whole region definition.
      Parameters:
      markedArea - The new area of the region - be sure to validate it before