Class LivingEntityUseItemEvent
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
- Direct Known Subclasses:
LivingEntityUseItemEvent.Finish
,LivingEntityUseItemEvent.Start
,LivingEntityUseItemEvent.Stop
,LivingEntityUseItemEvent.Tick
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fired after an item has fully finished being used.static class
Fired when a player starts 'using' an item, typically when they hold right mouse.static class
Fired when a player stops using an item without the use duration timing out.static class
Fired every tick that a player is 'using' an item, seeLivingEntityUseItemEvent.Start
for info.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
ModifierConstructorDescriptionprivate
LivingEntityUseItemEvent(LivingEntity entity, ItemStack item, int duration)
-
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
-
item
-
duration
private int duration
-
-
Constructor Details
-
LivingEntityUseItemEvent
-
-
Method Details
-
getItem
-
getDuration
public int getDuration() -
setDuration
public void setDuration(int duration)
-