Package net.minecraft.item
Class BowItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BowItem
public class BowItem extends Item
- Mappings:
Namespace Name official ytintermediary net/minecraft/class_2023named net/minecraft/item/BowItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.ToolMaterialType -
Field Summary
Fields Modifier and Type Field Description static String[]field_8550Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors Constructor Description BowItem() -
Method Summary
Modifier and Type Method Description intgetEnchantability()Returns the enchantability of an Item.intgetMaxUseTime(ItemStack stack)UseActiongetUseAction(ItemStack stack)Returns the UseAction for an item when the item is used.ItemStackonFinishUse(ItemStack stack, World world, PlayerEntity player)ItemStackonStartUse(ItemStack stack, World world, PlayerEntity player)voidonUseStopped(ItemStack stack, World world, PlayerEntity player, int remainingTicks)Methods inherited from class net.minecraft.item.Item
appendItemStacks, appendTooltip, byRawId, canRepair, canUseOnEntity, fromBlock, getAttributeModifierMap, getDisplayColor, getDisplayName, getFromId, getItemGroup, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMeta, getMiningSpeedMultiplier, getRarity, getRawId, getRecipeRemainder, getStatusEffectString, getTranslationKey, getTranslationKey, hasEnchantmentGlint, hasStatusEffectString, hasSubTypes, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFood, isHandheld, isNetworkSynced, isUnbreakable, onBlockBroken, onCraft, onEntityHit, onHit, postProcessTag, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setStatusEffectString, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncTagToClient, use
-
Field Details
-
field_8550
- Mappings:
Namespace Name Mixin selector official aLyt;a:[Ljava/lang/String;intermediary field_8550Lnet/minecraft/class_2023;field_8550:[Ljava/lang/String;named field_8550Lnet/minecraft/item/BowItem;field_8550:[Ljava/lang/String;
-
-
Constructor Details
-
BowItem
public BowItem()- Mappings:
Namespace Name Mixin selector official <init>Lzw;<init>()Vintermediary <init>Lnet/minecraft/class_2054;<init>()Vnamed <init>Lnet/minecraft/item/Item;<init>()V
-
-
Method Details
-
onUseStopped
- Overrides:
onUseStoppedin classItem- Mappings:
Namespace Name Mixin selector official aLzw;a(Lzx;Ladm;Lwn;I)Vintermediary method_8261Lnet/minecraft/class_2054;method_8261(Lnet/minecraft/class_2056;Lnet/minecraft/class_99;Lnet/minecraft/class_1963;I)Vnamed onUseStoppedLnet/minecraft/item/Item;onUseStopped(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;I)V
-
onFinishUse
- Overrides:
onFinishUsein classItem- Mappings:
Namespace Name Mixin selector official bLzw;b(Lzx;Ladm;Lwn;)Lzx;intermediary method_8273Lnet/minecraft/class_2054;method_8273(Lnet/minecraft/class_2056;Lnet/minecraft/class_99;Lnet/minecraft/class_1963;)Lnet/minecraft/class_2056;named onFinishUseLnet/minecraft/item/Item;onFinishUse(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
-
getMaxUseTime
- Overrides:
getMaxUseTimein classItem- Mappings:
Namespace Name Mixin selector official dLzw;d(Lzx;)Iintermediary method_8281Lnet/minecraft/class_2054;method_8281(Lnet/minecraft/class_2056;)Inamed getMaxUseTimeLnet/minecraft/item/Item;getMaxUseTime(Lnet/minecraft/item/ItemStack;)I
-
getUseAction
Returns the UseAction for an item when the item is used. Used by food, potions, bows, etc.- Overrides:
getUseActionin classItem- Parameters:
stack- The ItemStack that was used- See Also:
BowItem,PotionItem- Mappings:
Namespace Name Mixin selector official eLzw;e(Lzx;)Laba;intermediary method_8285Lnet/minecraft/class_2054;method_8285(Lnet/minecraft/class_2056;)Lnet/minecraft/class_30;named getUseActionLnet/minecraft/item/Item;getUseAction(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/util/UseAction;
-
onStartUse
- Overrides:
onStartUsein classItem- Mappings:
Namespace Name Mixin selector official aLzw;a(Lzx;Ladm;Lwn;)Lzx;intermediary method_8260Lnet/minecraft/class_2054;method_8260(Lnet/minecraft/class_2056;Lnet/minecraft/class_99;Lnet/minecraft/class_1963;)Lnet/minecraft/class_2056;named onStartUseLnet/minecraft/item/Item;onStartUse(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
-
getEnchantability
public int getEnchantability()Returns the enchantability of an Item. Used by tools and armor- Overrides:
getEnchantabilityin classItem- Returns:
- Enchantability
- See Also:
ToolItem,ArmorItem- Mappings:
Namespace Name Mixin selector official bLzw;b()Iintermediary method_8269Lnet/minecraft/class_2054;method_8269()Inamed getEnchantabilityLnet/minecraft/item/Item;getEnchantability()I
-