Class NeoForgeRegionEvent.Rename

java.lang.Object
net.neoforged.bus.api.Event
de.z0rdak.yawp.api.events.region.NeoForgeRegionEvent
de.z0rdak.yawp.api.events.region.NeoForgeRegionEvent.Rename
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Enclosing class:
NeoForgeRegionEvent

public static class NeoForgeRegionEvent.Rename extends NeoForgeRegionEvent
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(NeoForgeRegionEvent.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: