public interface ChangeEntityExperienceEvent extends TargetEntityEvent, Cancellable
Modifier and Type | Method and Description |
---|---|
static ChangeEntityExperienceEvent |
createChangeEntityExperienceEvent(Cause cause,
int originalExperience,
int experience,
Entity targetEntity)
Deprecated.
|
default int |
getExperience()
Deprecated.
Use
getFinalData() instead, which provides more
information about the experience. |
ExperienceHolderData |
getFinalData()
Gets the experience after an event has been processed.
|
ImmutableExperienceHolderData |
getOriginalData()
Gets the original values for the experience unmodified by event changes.
|
default int |
getOriginalExperience()
Deprecated.
Use
getOriginalData() instead, which provides more
information about the experience. |
default void |
setExperience(int experience)
Deprecated.
Modify the value returned by
getFinalData()
instead, which provides more information about the experience. |
getTargetEntity
getCause, getContext, getSource
isCancelled, setCancelled
@Deprecated default int getOriginalExperience()
getOriginalData()
instead, which provides more
information about the experience.ImmutableExperienceHolderData getOriginalData()
@Deprecated default int getExperience()
getFinalData()
instead, which provides more
information about the experience.@Deprecated default void setExperience(int experience)
getFinalData()
instead, which provides more information about the experience.experience
- The experienceExperienceHolderData getFinalData()
@Deprecated static ChangeEntityExperienceEvent createChangeEntityExperienceEvent(Cause cause, int originalExperience, int experience, Entity targetEntity)
SpongeEventFactory.createChangeEntityExperienceEvent(Cause, ImmutableExperienceHolderData, ExperienceHolderData, Entity)
cause
- The cause to useoriginalExperience
- The original experience amountexperience
- New experience amounttargetEntity
- The target entity