public class ItemMinecart extends Item
Item.ToolMaterial
Modifier and Type | Field and Description |
---|---|
private static IBehaviorDispenseItem |
dispenserMinecartBehavior |
private EntityMinecart.EnumMinecartType |
minecartType |
bFull3D, hasSubtypes, itemModifierUUID, itemRand, itemRegistry, maxStackSize
Constructor and Description |
---|
ItemMinecart(EntityMinecart.EnumMinecartType type) |
Modifier and Type | Method and Description |
---|---|
boolean |
onItemUse(ItemStack stack,
EntityPlayer playerIn,
World worldIn,
BlockPos pos,
EnumFacing side,
float hitX,
float hitY,
float hitZ)
Called when a Block is right-clicked with this Item
|
addInformation, canHarvestBlock, canItemEditBlocks, getByNameOrId, getColorFromItemStack, getContainerItem, getCreativeTab, getHasSubtypes, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxItemUseDuration, getMetadata, getMovingObjectPositionFromPlayer, getPotionEffect, getRarity, getShareTag, getStrVsBlock, getSubItems, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasEffect, hitEntity, isDamageable, isFull3D, isItemTool, isMap, isPotionIngredient, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemRightClick, onItemUseFinish, onPlayerStoppedUsing, onUpdate, registerItemBlock, registerItems, setContainerItem, setCreativeTab, setFull3D, setHasSubtypes, setMaxDamage, setMaxStackSize, setPotionEffect, setUnlocalizedName, shouldRotateAroundWhenRendering, updateItemStackNBT
private static final IBehaviorDispenseItem dispenserMinecartBehavior
private final EntityMinecart.EnumMinecartType minecartType
public ItemMinecart(EntityMinecart.EnumMinecartType type)
public boolean onItemUse(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ)