Cancellable
public class ExperienceOrbMergeEvent extends EntityEvent implements Cancellable
Event.Result
entity
Constructor | Description |
---|---|
ExperienceOrbMergeEvent(@NotNull ExperienceOrb mergeTarget,
@NotNull ExperienceOrb mergeSource) |
Modifier and Type | Method | Description |
---|---|---|
static @NotNull HandlerList |
getHandlerList() |
|
@NotNull HandlerList |
getHandlers() |
|
@NotNull ExperienceOrb |
getMergeSource() |
|
@NotNull ExperienceOrb |
getMergeTarget() |
|
boolean |
isCancelled() |
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel) |
Sets the cancellation state of this event.
|
getEntity, getEntityType
callEvent, getEventName, isAsynchronous
public ExperienceOrbMergeEvent(@NotNull @NotNull ExperienceOrb mergeTarget, @NotNull @NotNull ExperienceOrb mergeSource)
@NotNull public @NotNull ExperienceOrb getMergeTarget()
@NotNull public @NotNull ExperienceOrb getMergeSource()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static @NotNull HandlerList getHandlerList()
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this event, and prevent the orbs from mergingCopyright © 2020. All rights reserved.