Package net.minecraft.item
Class RangedWeaponItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.RangedWeaponItem
- All Implemented Interfaces:
ItemConvertible
- Direct Known Subclasses:
BowItem,CrossbowItem
- Mappings:
Namespace Name official capintermediary 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, field_30888, field_30889, group -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the enchantability of an item.static ItemStackgetHeldProjectile(LivingEntity entity, Predicate<ItemStack> predicate) abstract intgetRange()Methods inherited from class net.minecraft.item.Item
appendStacks, appendTooltip, asItem, byRawId, canBeNested, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDefaultStack, getDrinkSound, getEatSound, getEquipSound, getFoodComponent, getGroup, getItemBarColor, getItemBarStep, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getRegistryEntry, getTooltipData, getTranslationKey, getTranslationKey, getUseAction, hasGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEnchantable, isFireproof, isFood, isIn, isItemBarVisible, isNbtSynced, isNetworkSynced, isSuitableFor, isUsedOnRelease, onClicked, onCraft, onItemEntityDestroyed, onStackClicked, onStoppedUsing, postHit, postMine, postProcessNbt, raycast, toString, usageTick, use, useOnBlock, useOnEntity
-
Field Details
-
BOW_PROJECTILES
- Mappings:
Namespace Name Mixin selector official cLcap;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 dLcap;d: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>Lbzw;<init>(Lbzw$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 eLcap;e()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 bLcap;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 aLcap;a(Lbbf;Ljava/util/function/Predicate;)Lcaa;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 cLbzw;c()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 dLcap;d()Iintermediary method_24792Lnet/minecraft/class_1811;method_24792()Inamed getRangeLnet/minecraft/item/RangedWeaponItem;getRange()I
-