Class LivingEntityUseItemEvent.Finish
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
net.minecraftforge.event.entity.living.LivingEntityUseItemEvent
net.minecraftforge.event.entity.living.LivingEntityUseItemEvent.Finish
- Enclosing class:
LivingEntityUseItemEvent
Fired after an item has fully finished being used.
The item has been notified that it was used, and the item/result stacks reflect after that state.
This means that when this is fired for a Potion, the potion effect has already been applied.
LivingEntityUseItemEvent.item
is a copy of the item BEFORE it was used.
If you wish to cancel those effects, you should cancel one of the above events.
The result item stack is the stack that is placed in the player's inventory in replacement of the stack that is currently being used.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEntityUseItemEvent
LivingEntityUseItemEvent.Finish, LivingEntityUseItemEvent.Start, LivingEntityUseItemEvent.Stop, LivingEntityUseItemEvent.Tick
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingTickEvent, LivingEvent.LivingVisibilityEvent
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing
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
ConstructorDescriptionFinish
(LivingEntity entity, @NotNull ItemStack item, int duration, @NotNull ItemStack result) -
Method Summary
Modifier and TypeMethodDescription@NotNull ItemStack
void
setResultStack
(@NotNull ItemStack result) Methods inherited from class net.minecraftforge.event.entity.living.LivingEntityUseItemEvent
getDuration, getItem, setDuration
Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntity
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
result
-
-
Constructor Details
-
Finish
public Finish(LivingEntity entity, @NotNull @NotNull ItemStack item, int duration, @NotNull @NotNull ItemStack result)
-
-
Method Details
-
getResultStack
-
setResultStack
-