Package net.minecraft.item
Class BowItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BowItem
- Mappings:
Namespace Name official achintermediary net/minecraft/class_1033named net/minecraft/item/BowItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.ToolMaterialType -
Field Summary
Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, ATTACK_SPEED_MODIFIER, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the enchantability of an Item.intgetMaxUseTime(ItemStack stack) getUseAction(ItemStack stack) Returns the UseAction for an item when the item is used.private ItemStackmethod_11362(PlayerEntity playerEntity) static floatmethod_11363(int int2) protected booleanmethod_11364(ItemStack itemStack) method_11373(ItemStack itemStack, World world, PlayerEntity playerEntity, Hand hand) voidmethod_3359(ItemStack stack, World world, LivingEntity entity, int int2) Methods inherited from class net.minecraft.item.Item
addProperty, appendItemStacks, appendTooltip, byRawId, canRepair, fromBlock, getBlockBreakingSpeed, getDisplayName, getFromId, getItemGroup, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMeta, getProperty, getRarity, getRawId, getRecipeRemainder, getTranslationKey, getTranslationKey, hasEnchantmentGlint, hasProperties, hasSubTypes, inventoryTick, isDamageable, isEnchantable, isFood, isHandheld, isNetworkSynced, isUnbreakable, method_3346, method_3353, method_3355, method_3356, method_3367, method_6326, onCraft, onEntityHit, onHit, postProcessNbt, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncNbtToClient
-
Constructor Details
-
BowItem
public BowItem()- Mappings:
Namespace Name Mixin selector official <init>Lado;<init>()Vintermediary <init>Lnet/minecraft/class_1069;<init>()Vnamed <init>Lnet/minecraft/item/Item;<init>()V
-
-
Method Details
-
method_11362
- Mappings:
Namespace Name Mixin selector official aLach;a(Lzj;)Ladq;intermediary method_11362Lnet/minecraft/class_1033;method_11362(Lnet/minecraft/class_988;)Lnet/minecraft/class_1071;named method_11362Lnet/minecraft/item/BowItem;method_11362(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
-
method_11364
- Mappings:
Namespace Name Mixin selector official h_Lach;h_(Ladq;)Zintermediary method_11364Lnet/minecraft/class_1033;method_11364(Lnet/minecraft/class_1071;)Znamed method_11364Lnet/minecraft/item/BowItem;method_11364(Lnet/minecraft/item/ItemStack;)Z
-
method_3359
- Overrides:
method_3359in classItem- Mappings:
Namespace Name Mixin selector official aLado;a(Ladq;Laht;Lsa;I)Vintermediary method_3359Lnet/minecraft/class_1069;method_3359(Lnet/minecraft/class_1071;Lnet/minecraft/class_1150;Lnet/minecraft/class_1699;I)Vnamed method_3359Lnet/minecraft/item/Item;method_3359(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;I)V
-
method_11363
public static float method_11363(int int2) - Mappings:
Namespace Name Mixin selector official bLach;b(I)Fintermediary method_11363Lnet/minecraft/class_1033;method_11363(I)Fnamed method_11363Lnet/minecraft/item/BowItem;method_11363(I)F
-
getMaxUseTime
- Overrides:
getMaxUseTimein classItem- Mappings:
Namespace Name Mixin selector official eLado;e(Ladq;)Iintermediary method_3350Lnet/minecraft/class_1069;method_3350(Lnet/minecraft/class_1071;)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:
- Mappings:
Namespace Name Mixin selector official fLado;f(Ladq;)Lafa;intermediary method_3366Lnet/minecraft/class_1069;method_3366(Lnet/minecraft/class_1071;)Lnet/minecraft/class_1099;named getUseActionLnet/minecraft/item/Item;getUseAction(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/util/UseAction;
-
method_11373
public TypedActionResult<ItemStack> method_11373(ItemStack itemStack, World world, PlayerEntity playerEntity, Hand hand) - Overrides:
method_11373in classItem- Mappings:
Namespace Name Mixin selector official aLado;a(Ladq;Laht;Lzj;Lqm;)Lqp;intermediary method_11373Lnet/minecraft/class_1069;method_11373(Lnet/minecraft/class_1071;Lnet/minecraft/class_1150;Lnet/minecraft/class_988;Lnet/minecraft/class_2961;)Lnet/minecraft/class_2963;named method_11373Lnet/minecraft/item/Item;method_11373(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/TypedActionResult;
-
getEnchantability
public int getEnchantability()Returns the enchantability of an Item. Used by tools and armor- Overrides:
getEnchantabilityin classItem- Returns:
- Enchantability
- See Also:
- Mappings:
Namespace Name Mixin selector official cLado;c()Iintermediary method_3362Lnet/minecraft/class_1069;method_3362()Inamed getEnchantabilityLnet/minecraft/item/Item;getEnchantability()I
-