java.lang.Object
org.polyfrost.oneconfig.api.event.v1.events.WorldEvent
All Implemented Interfaces:
Event
Direct Known Subclasses:
WorldEvent.Load, WorldEvent.Unload

public abstract class WorldEvent extends Object implements Event
  • Method Details

    • getWorld

      public <T> T getWorld()
      Due to differences across Minecraft versions, this is a Duck method, meaning that it will return the expected type for that minecraft version.
      • For modern forge, this will be a ClientLevel.
      • For fabric invalid input: '&' forge pre-1.17, this will be a ClientWorld.
    • component1

      public Object component1()