EntityListener

public class EntityListener implements Listener

Properties

Link copied to clipboard
public final static EntityListener INSTANCE

Functions

Link copied to clipboard
public final Unit onCreatureSpawnEvent(CreatureSpawnEvent event)

检测生物蛋的模块

Link copied to clipboard
public final Unit onEntityDamageByEntityEvent(EntityDamageByEntityEvent event)

禁止被实体攻击

Link copied to clipboard
public final Unit onEntityDamageEvent(EntityDamageEvent event)

禁止受伤

Link copied to clipboard
public final Unit onEntityDeathEvent(EntityDeathEvent event)

实体死亡

Link copied to clipboard
public final Unit onEntityTargetEvent(EntityTargetEvent event)
Link copied to clipboard
public final Unit onPlayerInteractAtEntityEvent(PlayerInteractAtEntityEvent event)

禁止交互

Link copied to clipboard
public final Unit onPlayerInteractEvent(PlayerInteractEvent event)

检测生物蛋的模块