Package net.minecraftforge.event.level
Class LevelEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.level.LevelEvent
- Direct Known Subclasses:
- ChunkEvent,- LevelEvent.CreateSpawnPosition,- LevelEvent.Load,- LevelEvent.PotentialSpawns,- LevelEvent.Save,- LevelEvent.Unload,- SaplingGrowTreeEvent,- SleepFinishedTimeEvent
public class LevelEvent
extends net.minecraftforge.eventbus.api.Event
This event is fired whenever an event involving a 
LevelAccessor occurs.
 All children of this event are fired on the main Forge event bus.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classThis event fires whenever aServerLevelis initialized for the first time and a spawn position needs to be chosen.static classThis event is fired whenever a level loads.static classFired when building a list of all possible entities that can spawn at the specified location.static classThis event fires whenever a level is saved.static classThis event is fired whenever a level unloads.Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Field Details- 
level
 
- 
- 
Constructor Details- 
LevelEvent
 
- 
- 
Method Details- 
getLevelReturns the level this event is affecting.- Returns:
- the level this event is affecting
 
 
-