public class PotionCollideEvent extends Object implements PotionEvent, Cancellable
| Constructor and Description |
|---|
PotionCollideEvent(Potion potion,
Potion thrownPotion) |
| Modifier and Type | Method and Description |
|---|---|
Potion |
getPotion() |
Potion |
getThrownPotion() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
void |
setPotion(Potion potion) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelpublic Potion getThrownPotion()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.public Potion getPotion()
getPotion in interface PotionEventpublic void setPotion(Potion potion)
setPotion in interface PotionEventCopyright © 2017–2020 NukkitX. All rights reserved.