Package net.minecraft.item
Class FishingRodItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.FishingRodItem
- Mappings:
Namespace Name official adiintermediary net/minecraft/class_1063named net/minecraft/item/FishingRodItem
-
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.booleanisEnchantable(ItemStack stack) Returns whether the current item can have enchantments.booleanReturns whether the item is supposed to look as handheld.method_11373(ItemStack itemStack, World world, PlayerEntity playerEntity, Hand hand) booleanMethods inherited from class net.minecraft.item.Item
addProperty, appendItemStacks, appendTooltip, byRawId, canRepair, fromBlock, getBlockBreakingSpeed, getDisplayName, getFromId, getItemGroup, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMaxUseTime, getMeta, getProperty, getRarity, getRawId, getRecipeRemainder, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasProperties, hasSubTypes, inventoryTick, isDamageable, isFood, isNetworkSynced, isUnbreakable, method_3346, method_3353, method_3355, method_3356, method_3359, method_3367, method_6326, onCraft, onEntityHit, onHit, postProcessNbt, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setTranslationKey, setUnbreakable, setup, shouldSyncNbtToClient
-
Constructor Details
-
FishingRodItem
public FishingRodItem()- 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
-
isHandheld
Returns whether the item is supposed to look as handheld.- Overrides:
isHandheldin classItem- Mappings:
Namespace Name Mixin selector official A_Lado;A_()Zintermediary method_3372Lnet/minecraft/class_1069;method_3372()Znamed isHandheldLnet/minecraft/item/Item;isHandheld()Z
-
shouldRotate
- Overrides:
shouldRotatein classItem- Mappings:
Namespace Name Mixin selector official C_Lado;C_()Zintermediary method_3390Lnet/minecraft/class_1069;method_3390()Znamed shouldRotateLnet/minecraft/item/Item;shouldRotate()Z
-
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;
-
isEnchantable
Returns whether the current item can have enchantments. It does this by verifying that the item's maximum stack size is 1 and the item can break.- Overrides:
isEnchantablein classItem- Mappings:
Namespace Name Mixin selector official g_Lado;g_(Ladq;)Zintermediary method_3385Lnet/minecraft/class_1069;method_3385(Lnet/minecraft/class_1071;)Znamed isEnchantableLnet/minecraft/item/Item;isEnchantable(Lnet/minecraft/item/ItemStack;)Z
-
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
-