public class EntityTargetLivingEntityEvent extends EntityTargetEvent
LivingEntity
and can only target
LivingEntity's.EntityTargetEvent.TargetReason
Event.Result
entity
コンストラクタと説明 |
---|
EntityTargetLivingEntityEvent(Entity entity,
LivingEntity target,
EntityTargetEvent.TargetReason reason) |
修飾子とタイプ | メソッドと説明 |
---|---|
LivingEntity |
getTarget()
Get the entity that this is targeting.
|
void |
setTarget(Entity target)
Set the Entity that you want the mob to target.
|
getHandlerList, getHandlers, getReason, isCancelled, setCancelled
getEntity, getEntityType
getEventName, isAsynchronous
public EntityTargetLivingEntityEvent(Entity entity, LivingEntity target, EntityTargetEvent.TargetReason reason)
public LivingEntity getTarget()
EntityTargetEvent
This will be null in the case that the event is called when the mob forgets its target.
getTarget
クラス内 EntityTargetEvent
public void setTarget(Entity target)
It is possible to be null, null will cause the entity to be target-less.
Must be a LivingEntity, or null.
setTarget
クラス内 EntityTargetEvent
target
- The entity to targetCopyright © 2016. All rights reserved.