public class EntityShootBowEvent extends EntityEvent implements Cancellable
Event.Result
entity
コンストラクタと説明 |
---|
EntityShootBowEvent(LivingEntity shooter,
ItemStack bow,
Projectile projectile,
float force) |
修飾子とタイプ | メソッドと説明 |
---|---|
ItemStack |
getBow()
Gets the bow ItemStack used to fire the arrow.
|
LivingEntity |
getEntity()
Returns the Entity involved in this event
|
float |
getForce()
Gets the force the arrow was launched with
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
Entity |
getProjectile()
Gets the projectile which will be launched by this event
|
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event.
|
void |
setProjectile(Entity projectile)
Replaces the projectile which will be launched
|
getEntityType
getEventName, isAsynchronous
public EntityShootBowEvent(LivingEntity shooter, ItemStack bow, Projectile projectile, float force)
public LivingEntity getEntity()
EntityEvent
getEntity
クラス内 EntityEvent
public ItemStack getBow()
public Entity getProjectile()
public void setProjectile(Entity projectile)
projectile
- the new projectilepublic float getForce()
public boolean isCancelled()
Cancellable
isCancelled
インタフェース内 Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
インタフェース内 Cancellable
cancel
- true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers
クラス内 Event
public static HandlerList getHandlerList()
Copyright © 2016. All rights reserved.