Package net.minecraft.item
Class RangedWeaponItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.RangedWeaponItem
- All Implemented Interfaces:
ItemConvertible,ToggleableFeature
- Direct Known Subclasses:
BowItem,CrossbowItem
- Mappings:
Namespace Name official crzintermediary net/minecraft/class_1811named net/minecraft/item/RangedWeaponItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.Settings -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, DEFAULT_MAX_COUNT, DEFAULT_MAX_USE_TIME, ITEM_BAR_STEPSFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the enchantability of an item.static ItemStackgetHeldProjectile(LivingEntity entity, Predicate<ItemStack> predicate) abstract intgetRange()protected ProjectileEntitymethod_57344(World world, LivingEntity livingEntity, ItemStack itemStack, ItemStack itemStack2, boolean bool) protected intmethod_57345(ItemStack itemStack) method_57390(ItemStack itemStack, ItemStack itemStack2, LivingEntity livingEntity) protected static ItemStackmethod_57391(ItemStack itemStack, ItemStack itemStack2, LivingEntity livingEntity, boolean bool) protected static booleanmethod_57392(ItemStack itemStack, ItemStack itemStack2, boolean bool) protected voidmethod_57393(World world, LivingEntity livingEntity, Hand hand, ItemStack itemStack, List<ItemStack> list, float float2, float float3, boolean bool, @Nullable LivingEntity livingEntity2) protected abstract voidshoot(LivingEntity livingEntity, ProjectileEntity projectileEntity, int int2, float float2, float float3, float float4, @Nullable LivingEntity livingEntity2) Methods inherited from class net.minecraft.item.Item
appendTooltip, asItem, byRawId, canBeNested, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDefaultStack, getDrinkSound, getEatSound, getFoodComponent, getItemBarColor, getItemBarStep, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getRegistryEntry, getRequiredFeatures, getTooltipData, getTranslationKey, getTranslationKey, getUseAction, hasGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEnchantable, isFireproof, isFood, isItemBarVisible, isNetworkSynced, isSuitableFor, isUsedOnRelease, method_57336, method_57347, onClicked, onCraft, onCraftByPlayer, onItemEntityDestroyed, onStackClicked, onStoppedUsing, postHit, postMine, postProcessNbt, raycast, toString, usageTick, use, useOnBlock, useOnEntityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
BOW_PROJECTILES
- Mappings:
Namespace Name Mixin selector official cLcrz;c:Ljava/util/function/Predicate;intermediary field_18281Lnet/minecraft/class_1811;field_18281:Ljava/util/function/Predicate;named BOW_PROJECTILESLnet/minecraft/item/RangedWeaponItem;BOW_PROJECTILES:Ljava/util/function/Predicate;
-
CROSSBOW_HELD_PROJECTILES
- Mappings:
Namespace Name Mixin selector official jLcrz;j:Ljava/util/function/Predicate;intermediary field_18282Lnet/minecraft/class_1811;field_18282:Ljava/util/function/Predicate;named CROSSBOW_HELD_PROJECTILESLnet/minecraft/item/RangedWeaponItem;CROSSBOW_HELD_PROJECTILES:Ljava/util/function/Predicate;
-
-
Constructor Details
-
RangedWeaponItem
- Mappings:
Namespace Name Mixin selector official <init>Lcre;<init>(Lcre$a;)Vintermediary <init>Lnet/minecraft/class_1792;<init>(Lnet/minecraft/class_1792$class_1793;)Vnamed <init>Lnet/minecraft/item/Item;<init>(Lnet/minecraft/item/Item$Settings;)V
-
-
Method Details
-
getHeldProjectiles
- Mappings:
Namespace Name Mixin selector official dLcrz;d()Ljava/util/function/Predicate;intermediary method_20310Lnet/minecraft/class_1811;method_20310()Ljava/util/function/Predicate;named getHeldProjectilesLnet/minecraft/item/RangedWeaponItem;getHeldProjectiles()Ljava/util/function/Predicate;
-
getProjectiles
- Mappings:
Namespace Name Mixin selector official bLcrz;b()Ljava/util/function/Predicate;intermediary method_19268Lnet/minecraft/class_1811;method_19268()Ljava/util/function/Predicate;named getProjectilesLnet/minecraft/item/RangedWeaponItem;getProjectiles()Ljava/util/function/Predicate;
-
getHeldProjectile
- Mappings:
Namespace Name Mixin selector official aLcrz;a(Lbqo;Ljava/util/function/Predicate;)Lcrj;intermediary method_18815Lnet/minecraft/class_1811;method_18815(Lnet/minecraft/class_1309;Ljava/util/function/Predicate;)Lnet/minecraft/class_1799;named getHeldProjectileLnet/minecraft/item/RangedWeaponItem;getHeldProjectile(Lnet/minecraft/entity/LivingEntity;Ljava/util/function/Predicate;)Lnet/minecraft/item/ItemStack;
-
getEnchantability
public int getEnchantability()Gets the enchantability of an item. This specifies the ability of an item to receive enchantments when enchanted using an enchanting table. As the value increases, the amount and level of enchantments applied increase.If the value of this method is 0, the item cannot be enchanted using an enchanting table.
- Overrides:
getEnchantabilityin classItem- Mappings:
Namespace Name Mixin selector official gLcre;g()Iintermediary method_7837Lnet/minecraft/class_1792;method_7837()Inamed getEnchantabilityLnet/minecraft/item/Item;getEnchantability()I
-
getRange
public abstract int getRange()- Mappings:
Namespace Name Mixin selector official cLcrz;c()Iintermediary method_24792Lnet/minecraft/class_1811;method_24792()Inamed getRangeLnet/minecraft/item/RangedWeaponItem;getRange()I
-
method_57393
protected void method_57393(World world, LivingEntity livingEntity, Hand hand, ItemStack itemStack, List<ItemStack> list, float float2, float float3, boolean bool, @Nullable @Nullable LivingEntity livingEntity2) - Mappings:
Namespace Name Mixin selector official aLcrz;a(Lcyx;Lbqo;Lbnz;Lcrj;Ljava/util/List;FFZLbqo;)Vintermediary method_57393Lnet/minecraft/class_1811;method_57393(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;Ljava/util/List;FFZLnet/minecraft/class_1309;)Vnamed method_57393Lnet/minecraft/item/RangedWeaponItem;method_57393(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/item/ItemStack;Ljava/util/List;FFZLnet/minecraft/entity/LivingEntity;)V
-
method_57345
- Mappings:
Namespace Name Mixin selector official kLcrz;k(Lcrj;)Iintermediary method_57345Lnet/minecraft/class_1811;method_57345(Lnet/minecraft/class_1799;)Inamed method_57345Lnet/minecraft/item/RangedWeaponItem;method_57345(Lnet/minecraft/item/ItemStack;)I
-
shoot
protected abstract void shoot(LivingEntity livingEntity, ProjectileEntity projectileEntity, int int2, float float2, float float3, float float4, @Nullable @Nullable LivingEntity livingEntity2) - Mappings:
Namespace Name Mixin selector official aLcrz;a(Lbqo;Lckl;IFFFLbqo;)Vintermediary method_7763Lnet/minecraft/class_1811;method_7763(Lnet/minecraft/class_1309;Lnet/minecraft/class_1676;IFFFLnet/minecraft/class_1309;)Vnamed shootLnet/minecraft/item/RangedWeaponItem;shoot(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/projectile/ProjectileEntity;IFFFLnet/minecraft/entity/LivingEntity;)V
-
method_57344
protected ProjectileEntity method_57344(World world, LivingEntity livingEntity, ItemStack itemStack, ItemStack itemStack2, boolean bool) - Mappings:
Namespace Name Mixin selector official aLcrz;a(Lcyx;Lbqo;Lcrj;Lcrj;Z)Lckl;intermediary method_57344Lnet/minecraft/class_1811;method_57344(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Z)Lnet/minecraft/class_1676;named method_57344Lnet/minecraft/item/RangedWeaponItem;method_57344(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Z)Lnet/minecraft/entity/projectile/ProjectileEntity;
-
method_57392
- Mappings:
Namespace Name Mixin selector official aLcrz;a(Lcrj;Lcrj;Z)Zintermediary method_57392Lnet/minecraft/class_1811;method_57392(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Z)Znamed method_57392Lnet/minecraft/item/RangedWeaponItem;method_57392(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Z)Z
-
method_57390
protected static List<ItemStack> method_57390(ItemStack itemStack, ItemStack itemStack2, LivingEntity livingEntity) - Mappings:
Namespace Name Mixin selector official aLcrz;a(Lcrj;Lcrj;Lbqo;)Ljava/util/List;intermediary method_57390Lnet/minecraft/class_1811;method_57390(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Lnet/minecraft/class_1309;)Ljava/util/List;named method_57390Lnet/minecraft/item/RangedWeaponItem;method_57390(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;)Ljava/util/List;
-
method_57391
protected static ItemStack method_57391(ItemStack itemStack, ItemStack itemStack2, LivingEntity livingEntity, boolean bool) - Mappings:
Namespace Name Mixin selector official aLcrz;a(Lcrj;Lcrj;Lbqo;Z)Lcrj;intermediary method_57391Lnet/minecraft/class_1811;method_57391(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Lnet/minecraft/class_1309;Z)Lnet/minecraft/class_1799;named method_57391Lnet/minecraft/item/RangedWeaponItem;method_57391(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;Z)Lnet/minecraft/item/ItemStack;
-