public class MCEntityLivingUseItemEvent
extends java.lang.Object
implements crafttweaker.api.event.EntityLivingUseItemEvent
Modifier and Type | Class and Description |
---|---|
static class |
MCEntityLivingUseItemEvent.Finish |
static class |
MCEntityLivingUseItemEvent.Start |
static class |
MCEntityLivingUseItemEvent.Stop |
static class |
MCEntityLivingUseItemEvent.Tick |
Constructor and Description |
---|
MCEntityLivingUseItemEvent(net.minecraftforge.event.entity.living.LivingEntityUseItemEvent event) |
Modifier and Type | Method and Description |
---|---|
int |
getDuration() |
crafttweaker.api.entity.IEntityLivingBase |
getEntityLivingBase() |
crafttweaker.api.item.IItemStack |
getItem() |
crafttweaker.api.player.IPlayer |
getPlayer() |
boolean |
isCanceled() |
boolean |
isPlayer() |
void |
setCanceled(boolean canceled) |
void |
setDuration(int duration) |
public MCEntityLivingUseItemEvent(net.minecraftforge.event.entity.living.LivingEntityUseItemEvent event)
public crafttweaker.api.item.IItemStack getItem()
getItem
in interface crafttweaker.api.event.EntityLivingUseItemEvent
public crafttweaker.api.entity.IEntityLivingBase getEntityLivingBase()
getEntityLivingBase
in interface crafttweaker.api.event.ILivingEvent
public boolean isPlayer()
isPlayer
in interface crafttweaker.api.event.EntityLivingUseItemEvent
public crafttweaker.api.player.IPlayer getPlayer()
getPlayer
in interface crafttweaker.api.event.EntityLivingUseItemEvent
public int getDuration()
getDuration
in interface crafttweaker.api.event.EntityLivingUseItemEvent
public void setDuration(int duration)
setDuration
in interface crafttweaker.api.event.EntityLivingUseItemEvent
public boolean isCanceled()
isCanceled
in interface crafttweaker.api.event.IEventCancelable
public void setCanceled(boolean canceled)
setCanceled
in interface crafttweaker.api.event.IEventCancelable