public class ItemBow extends Item
Item.Properties
ATTACK_DAMAGE_MODIFIER, ATTACK_SPEED_MODIFIER, BLOCK_TO_ITEM, canRepair, group, properties, random
delegate
Constructor and Description |
---|
ItemBow(Item.Properties builder) |
Modifier and Type | Method and Description |
---|---|
EntityArrow |
customizeArrow(EntityArrow arrow) |
protected ItemStack |
findAmmo(EntityPlayer player) |
static float |
getArrowVelocity(int charge) |
int |
getItemEnchantability() |
EnumAction |
getUseAction(ItemStack stack) |
int |
getUseDuration(ItemStack stack) |
protected boolean |
isArrow(ItemStack stack) |
ActionResult<ItemStack> |
onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
void |
onPlayerStoppedUsing(ItemStack stack,
World worldIn,
EntityLivingBase entityLiving,
int timeLeft) |
addInformation, addPropertyOverride, asItem, canHarvestBlock, canPlayerBreakBlockWhileHolding, fillItemGroup, getAttributeModifiers, getContainerItem, getDefaultInstance, getDefaultTranslationKey, getDestroySpeed, getDisplayName, getGroup, getHarvestLevel, getIdFromItem, getIsRepairable, getItemById, getItemFromBlock, getMaxDamage, getMaxStackSize, getName, getPropertyGetter, getRarity, getShareTag, getTileEntityItemStackRenderer, getToolTypes, getTranslationKey, getTranslationKey, hasContainerItem, hasCustomProperties, hasEffect, hitEntity, inventoryTick, isComplex, isDamageable, isEnchantable, isIn, isInGroup, isRepairable, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemUse, onItemUseFinish, rayTrace, register, registerItems, updateItemStackNBT
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canEquip, canHarvestBlock, createEntity, doesSneakBypassUse, getAnimationParameters, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getHorseArmorType, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isBeaconPayment, isBookEnchantable, isDamaged, isShield, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBar
public ItemBow(Item.Properties builder)
protected ItemStack findAmmo(EntityPlayer player)
protected boolean isArrow(ItemStack stack)
public void onPlayerStoppedUsing(ItemStack stack, World worldIn, EntityLivingBase entityLiving, int timeLeft)
onPlayerStoppedUsing
in class Item
public static float getArrowVelocity(int charge)
public int getUseDuration(ItemStack stack)
getUseDuration
in class Item
public EnumAction getUseAction(ItemStack stack)
getUseAction
in class Item
public ActionResult<ItemStack> onItemRightClick(World worldIn, EntityPlayer playerIn, EnumHand handIn)
onItemRightClick
in class Item
public int getItemEnchantability()
getItemEnchantability
in class Item
public EntityArrow customizeArrow(EntityArrow arrow)