public class ExpBottleEvent extends ProjectileHitEvent
Event.Resultentity| Constructor and Description | 
|---|
ExpBottleEvent(@NotNull ThrownExpBottle bottle,
              int exp)  | 
| Modifier and Type | Method and Description | 
|---|---|
@NotNull ThrownExpBottle | 
getEntity()
Returns the Entity involved in this event 
 | 
int | 
getExperience()
This method retrieves the amount of experience to be created. 
 | 
static @NotNull HandlerList | 
getHandlerList()  | 
@NotNull HandlerList | 
getHandlers()  | 
boolean | 
getShowEffect()
This method indicates if the particle effect should be shown. 
 | 
void | 
setExperience(int exp)
This method sets the amount of experience to be created. 
 | 
void | 
setShowEffect(boolean showEffect)
This method sets if the particle effect will be shown. 
 | 
getHitBlock, getHitBlockFace, getHitEntity, isCancelled, setCancelledgetEntityTypecallEvent, getEventName, isAsynchronouspublic ExpBottleEvent(@NotNull @NotNull ThrownExpBottle bottle, int exp)
@NotNull public @NotNull ThrownExpBottle getEntity()
EntityEventgetEntity in class ProjectileHitEventpublic boolean getShowEffect()
public void setShowEffect(boolean showEffect)
This does not change the experience created.
showEffect - true indicates the effect will be shown, false
     indicates no effect will be shownpublic int getExperience()
The number indicates a total amount to be divided into orbs.
public void setExperience(int exp)
The number indicates a total amount to be divided into orbs.
exp - the total amount of experience to be created@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class ProjectileHitEvent@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2022. All rights reserved.