类 EntityEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
直接已知子类:
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityJoinLevelEvent, EntityLeaveLevelEvent, EntityMobGriefingEvent, EntityMountEvent, EntityStruckByLightningEvent, EntityTeleportEvent, EntityTravelToDimensionEvent, ItemEvent, LivingEvent, MobSpawnEvent, ProjectileImpactEvent, ZombieEvent

public class EntityEvent extends net.minecraftforge.eventbus.api.Event
EntityEvent is fired when an event involving any Entity occurs.
If a method utilizes this Event as its parameter, the method will receive every child event of this class.

entity contains the entity that caused this event to occur.

All children of this event are fired on the MinecraftForge.EVENT_BUS.
  • 嵌套类概要

    嵌套类
    修饰符和类型
    说明
    static class 
    This event is fired on server and client after an Entity has entered a different section.
    static class 
    EntityConstructing is fired when an Entity is being created.

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

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

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

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

    修饰符和类型
    方法
    说明
     

    从类继承的方法 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
  • 字段详细资料

    • entity

      private final Entity entity
  • 构造器详细资料

    • EntityEvent

      public EntityEvent(Entity entity)
  • 方法详细资料

    • getEntity

      public Entity getEntity()