public class VehicleDamageEvent extends VehicleEvent implements Cancellable
Event.Result
vehicle
コンストラクタと説明 |
---|
VehicleDamageEvent(Vehicle vehicle,
Entity attacker,
double damage) |
VehicleDamageEvent(Vehicle vehicle,
Entity attacker,
int damage)
非推奨です。
|
修飾子とタイプ | メソッドと説明 |
---|---|
int |
_INVALID_getDamage()
非推奨です。
|
void |
_INVALID_setDamage(int damage)
非推奨です。
|
Entity |
getAttacker()
Gets the Entity that is attacking the vehicle
|
double |
getDamage()
Gets the damage done to the vehicle
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event.
|
void |
setDamage(double damage)
Sets the damage done to the vehicle
|
getVehicle
getEventName, isAsynchronous
@Deprecated public VehicleDamageEvent(Vehicle vehicle, Entity attacker, int damage)
public Entity getAttacker()
public double getDamage()
@Deprecated public int _INVALID_getDamage()
public void setDamage(double damage)
damage
- The damage@Deprecated public void _INVALID_setDamage(int damage)
damage
- the damagepublic 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.