类 LevelEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.level.LevelEvent
直接已知子类:
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.

  • 嵌套类概要

    嵌套类
    修饰符和类型
    说明
    static class 
    This event fires whenever a ServerLevel is initialized for the first time and a spawn position needs to be chosen.
    static class 
    This event is fired whenever a level loads.
    static class 
    Fired when building a list of all possible entities that can spawn at the specified location.
    static class 
    This event fires whenever a level is saved.
    static class 
    This event is fired whenever a level unloads.

    从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private final LevelAccessor
     
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    返回 the level this event is affecting。

    从类继承的方法 net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • getLevel

      public LevelAccessor getLevel()
      返回 the level this event is affecting。
      返回:
      the level this event is affecting