Package net.minecraft.item
Class HoeItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.HoeItem
public class HoeItem extends Item
- Mappings:
Namespace Name official zvintermediary net/minecraft/class_2053named net/minecraft/item/HoeItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.ToolMaterialType -
Field Summary
Fields Modifier and Type Field Description protected Item.ToolMaterialTypematerialFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors Constructor Description HoeItem(Item.ToolMaterialType material) -
Method Summary
Modifier and Type Method Description StringgetAsString()booleanisHandheld()Returns whether the item is supposed to look as handheld.protected booleanuse(ItemStack stack, PlayerEntity player, World world, BlockPos pos, BlockState state)booleanuse(ItemStack itemStack, PlayerEntity player, World world, BlockPos pos, Direction direction, float facingX, float facingY, float facingZ)Methods inherited from class net.minecraft.item.Item
appendItemStacks, appendTooltip, byRawId, canRepair, canUseOnEntity, fromBlock, getAttributeModifierMap, getDisplayColor, getDisplayName, getEnchantability, getFromId, getItemGroup, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMaxUseTime, getMeta, getMiningSpeedMultiplier, getRarity, getRawId, getRecipeRemainder, getStatusEffectString, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasStatusEffectString, hasSubTypes, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFood, isNetworkSynced, isUnbreakable, onBlockBroken, onCraft, onEntityHit, onFinishUse, onHit, onStartUse, onUseStopped, postProcessTag, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setStatusEffectString, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncTagToClient
-
Field Details
-
material
- Mappings:
Namespace Name Mixin selector official aLzv;a:Lzw$a;intermediary field_8627Lnet/minecraft/class_2053;field_8627:Lnet/minecraft/class_2054$class_2055;named materialLnet/minecraft/item/HoeItem;material:Lnet/minecraft/item/Item$ToolMaterialType;
-
-
Constructor Details
-
HoeItem
- Mappings:
Namespace Name Mixin selector official <init>Lzv;<init>(Lzw$a;)Vintermediary <init>Lnet/minecraft/class_2053;<init>(Lnet/minecraft/class_2054$class_2055;)Vnamed <init>Lnet/minecraft/item/HoeItem;<init>(Lnet/minecraft/item/Item$ToolMaterialType;)V
-
-
Method Details
-
use
public boolean use(ItemStack itemStack, PlayerEntity player, World world, BlockPos pos, Direction direction, float facingX, float facingY, float facingZ)- Overrides:
usein classItem- Mappings:
Namespace Name Mixin selector official aLzw;a(Lzx;Lwn;Ladm;Lcj;Lcq;FFF)Zintermediary method_8264Lnet/minecraft/class_2054;method_8264(Lnet/minecraft/class_2056;Lnet/minecraft/class_1963;Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;FFF)Znamed useLnet/minecraft/item/Item;use(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;FFF)Z
-
use
protected boolean use(ItemStack stack, PlayerEntity player, World world, BlockPos pos, BlockState state)- Mappings:
Namespace Name Mixin selector official aLzv;a(Lzx;Lwn;Ladm;Lcj;Lalz;)Zintermediary method_8244Lnet/minecraft/class_2053;method_8244(Lnet/minecraft/class_2056;Lnet/minecraft/class_1963;Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)Znamed useLnet/minecraft/item/HoeItem;use(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
-
isHandheld
Returns whether the item is supposed to look as handheld.- Overrides:
isHandheldin classItem- Mappings:
Namespace Name Mixin selector official w_Lzw;w_()Zintermediary method_8305Lnet/minecraft/class_2054;method_8305()Znamed isHandheldLnet/minecraft/item/Item;isHandheld()Z
-
getAsString
- Mappings:
Namespace Name Mixin selector official gLzv;g()Ljava/lang/String;intermediary method_8245Lnet/minecraft/class_2053;method_8245()Ljava/lang/String;named getAsStringLnet/minecraft/item/HoeItem;getAsString()Ljava/lang/String;
-