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.EntityLivingUseItemEventpublic crafttweaker.api.entity.IEntityLivingBase getEntityLivingBase()
getEntityLivingBase in interface crafttweaker.api.event.ILivingEventpublic boolean isPlayer()
isPlayer in interface crafttweaker.api.event.EntityLivingUseItemEventpublic crafttweaker.api.player.IPlayer getPlayer()
getPlayer in interface crafttweaker.api.event.EntityLivingUseItemEventpublic int getDuration()
getDuration in interface crafttweaker.api.event.EntityLivingUseItemEventpublic void setDuration(int duration)
setDuration in interface crafttweaker.api.event.EntityLivingUseItemEventpublic boolean isCanceled()
isCanceled in interface crafttweaker.api.event.IEventCancelablepublic void setCanceled(boolean canceled)
setCanceled in interface crafttweaker.api.event.IEventCancelable