Class LivingExperienceDropEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
net.minecraftforge.event.entity.living.LivingExperienceDropEvent
Event for when an entity drops experience on its death, can be used to change
the amount of experience points dropped or completely prevent dropping of experience
by canceling the event.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent, LivingEvent.LivingVisibilityEvent
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLivingExperienceDropEvent(LivingEntity entity, Player attackingPlayer, int originalExperience)
-
Method Summary
Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntityLiving
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
attackingPlayer
-
originalExperiencePoints
private final int originalExperiencePoints -
droppedExperiencePoints
private int droppedExperiencePoints
-
-
Constructor Details
-
LivingExperienceDropEvent
public LivingExperienceDropEvent(LivingEntity entity, Player attackingPlayer, int originalExperience)
-
-
Method Details
-
getDroppedExperience
public int getDroppedExperience() -
setDroppedExperience
public void setDroppedExperience(int droppedExperience) -
getAttackingPlayer
-
getOriginalExperience
public int getOriginalExperience()
-