Class ForgeRegionEvent.Rename

java.lang.Object
net.minecraftforge.eventbus.api.Event
de.z0rdak.yawp.api.events.region.ForgeRegionEvent
de.z0rdak.yawp.api.events.region.ForgeRegionEvent.Rename
Enclosing class:
ForgeRegionEvent

public static class ForgeRegionEvent.Rename extends ForgeRegionEvent
This event is fired whenever a new region is renamed. This event is cancelable. When this is event is canceled, the region will not be renamed.
  • Constructor Details

  • Method Details

    • asCommonEvent

      public static RegionEvent.Rename asCommonEvent(ForgeRegionEvent.Rename event)
    • getOldName

      public String getOldName()
    • getNewName

      public String getNewName()
    • setNewName

      public void setNewName(String newName)
      The name set here is not validated again. Be sure you validate the name before setting it.
      Otherwise, you may cause inconsistencies and break your whole region definition.
      Parameters:
      newName - The new name of the region - be sure to validate it before
      See Also: