public class EntityCombustByBlockEvent extends Object implements EntityCombustEvent
| Constructor and Description |
|---|
EntityCombustByBlockEvent(Block combuster,
Entity combustee,
int duration) |
| Modifier and Type | Method and Description |
|---|---|
Block |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelpublic Block 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.