Class WorldEvent
java.lang.Object
org.polyfrost.oneconfig.api.event.v1.events.WorldEvent
- All Implemented Interfaces:
Event
- Direct Known Subclasses:
WorldEvent.Load,WorldEvent.Unload
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classNested classes/interfaces inherited from interface org.polyfrost.oneconfig.api.event.v1.events.Event
Event.Cancellable -
Method Summary
Modifier and TypeMethodDescription<T> TgetWorld()Due to differences across Minecraft versions, this is a Duck method, meaning that it will return the expected type for that minecraft version.
-
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
-