Cancellable
public class CauldronLevelChangeEvent extends BlockEvent implements Cancellable
Modifier and Type | Class | Description |
---|---|---|
static class |
CauldronLevelChangeEvent.ChangeReason |
Event.Result
block
Constructor | Description |
---|---|
CauldronLevelChangeEvent(@NotNull Block block,
@Nullable Entity entity,
@NotNull CauldronLevelChangeEvent.ChangeReason reason,
int oldLevel,
int newLevel) |
Modifier and Type | Method | Description |
---|---|---|
@Nullable Entity |
getEntity() |
Get entity which did this.
|
static @NotNull HandlerList |
getHandlerList() |
|
@NotNull HandlerList |
getHandlers() |
|
int |
getNewLevel() |
|
int |
getOldLevel() |
|
@NotNull CauldronLevelChangeEvent.ChangeReason |
getReason() |
|
boolean |
isCancelled() |
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancelled) |
Sets the cancellation state of this event.
|
void |
setNewLevel(int newLevel) |
getBlock
getEventName, isAsynchronous
public CauldronLevelChangeEvent(@NotNull @NotNull Block block, @Nullable @Nullable Entity entity, @NotNull @NotNull CauldronLevelChangeEvent.ChangeReason reason, int oldLevel, int newLevel)
@Nullable public @Nullable Entity getEntity()
@NotNull public @NotNull CauldronLevelChangeEvent.ChangeReason getReason()
public int getOldLevel()
public int getNewLevel()
public void setNewLevel(int newLevel)
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancelled)
Cancellable
setCancelled
in interface Cancellable
cancelled
- true if you wish to cancel this event@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2020. All rights reserved.