public class ExperienceOrbMergeEvent extends EntityEvent implements Cancellable
Event.Result
entity
Constructor and Description |
---|
ExperienceOrbMergeEvent(ExperienceOrb mergeTarget,
ExperienceOrb mergeSource) |
Modifier and Type | Method and Description |
---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
ExperienceOrb |
getMergeSource() |
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 ExperienceOrb mergeTarget, @NotNull ExperienceOrb mergeSource)
@NotNull public ExperienceOrb getMergeTarget()
@NotNull public ExperienceOrb getMergeSource()
@NotNull public HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static 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 © 2022. All rights reserved.