public class EntityCombustByEntityEvent extends Object implements EntityCombustEvent
| Constructor and Description |
|---|
EntityCombustByEntityEvent(Entity combuster,
Entity combustee,
int duration) |
| Modifier and Type | Method and Description |
|---|---|
Entity |
getCombuster() |
int |
getDuration() |
Entity |
getEntity() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
void |
setDuration(int duration) |
public Entity getCombuster()
public int getDuration()
getDuration in interface EntityCombustEventpublic void setDuration(int duration)
setDuration in interface EntityCombustEventpublic Entity getEntity()
getEntity in interface EntityEventpublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.Copyright © 2017–2019 NukkitX. All rights reserved.