Package net.minecraft
Class class_7430
java.lang.Object
net.minecraft.item.Item
net.minecraft.class_7430
- All Implemented Interfaces:
ItemConvertible
- Mappings:
Namespace Name official byb
intermediary net/minecraft/class_7430
named net/minecraft/class_7430
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.Settings
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
private static final int
private static final int
private static final int
private static final int
Fields 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 TypeMethodDescriptionvoid
appendStacks
(ItemGroup group, DefaultedList<ItemStack> stacks) Appends the stacks of this item shown in the item group to the list.void
appendTooltip
(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) int
getMaxUseTime
(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.getUseAction
(ItemStack stack) private static ItemStack
method_43558
(int int2) protected static int
method_43559
(AbstractRandom abstractRandom, boolean bool) static ItemStack
method_43560
(GoatEntity goatEntity) private static void
method_43561
(ItemStack itemStack, int int2) static void
method_43562
(ItemStack itemStack, AbstractRandom abstractRandom) private static void
method_43563
(World world, PlayerEntity playerEntity, SoundEvent soundEvent) private int
method_43564
(ItemStack itemStack) use
(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.Methods inherited from class net.minecraft.item.Item
asItem, byRawId, canBeNested, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDefaultStack, getDrinkSound, getEatSound, getEnchantability, getEquipSound, getFoodComponent, getGroup, getItemBarColor, getItemBarStep, getMaxCount, getMaxDamage, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getRegistryEntry, getTooltipData, getTranslationKey, getTranslationKey, hasGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEnchantable, isFireproof, isFood, isIn, isItemBarVisible, isNbtSynced, isNetworkSynced, isSuitableFor, isUsedOnRelease, onClicked, onCraft, onItemEntityDestroyed, onStackClicked, onStoppedUsing, postHit, postMine, postProcessNbt, raycast, toString, usageTick, useOnBlock, useOnEntity
-
Field Details
-
field_39053
private static final int field_39053- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lbyb;b:I
intermediary field_39053
Lnet/minecraft/class_7430;field_39053:I
named field_39053
Lnet/minecraft/class_7430;field_39053:I
-
field_39052
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbyb;a:Ljava/lang/String;
intermediary field_39052
Lnet/minecraft/class_7430;field_39052:Ljava/lang/String;
named field_39052
Lnet/minecraft/class_7430;field_39052:Ljava/lang/String;
-
field_39054
private static final int field_39054- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lbyb;c:I
intermediary field_39054
Lnet/minecraft/class_7430;field_39054:I
named field_39054
Lnet/minecraft/class_7430;field_39054:I
-
field_39055
private static final int field_39055- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lbyb;d:I
intermediary field_39055
Lnet/minecraft/class_7430;field_39055:I
named field_39055
Lnet/minecraft/class_7430;field_39055:I
-
field_39056
private static final int field_39056- See Also:
- Mappings:
Namespace Name Mixin selector official e
Lbyb;e:I
intermediary field_39056
Lnet/minecraft/class_7430;field_39056:I
named field_39056
Lnet/minecraft/class_7430;field_39056:I
-
-
Constructor Details
-
class_7430
- Mappings:
Namespace Name Mixin selector official <init>
Lbyh;<init>(Lbyh$a;)V
intermediary <init>
Lnet/minecraft/class_1792;<init>(Lnet/minecraft/class_1792$class_1793;)V
named <init>
Lnet/minecraft/item/Item;<init>(Lnet/minecraft/item/Item$Settings;)V
-
-
Method Details
-
appendTooltip
public void appendTooltip(ItemStack stack, @Nullable @Nullable World world, List<Text> tooltip, TooltipContext context) - Overrides:
appendTooltip
in classItem
- Mappings:
Namespace Name Mixin selector official a
Lbyh;a(Lbyl;Lcel;Ljava/util/List;Lbzz;)V
intermediary method_7851
Lnet/minecraft/class_1792;method_7851(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Ljava/util/List;Lnet/minecraft/class_1836;)V
named appendTooltip
Lnet/minecraft/item/Item;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Ljava/util/List;Lnet/minecraft/client/item/TooltipContext;)V
-
method_43558
- Mappings:
Namespace Name Mixin selector official a
Lbyb;a(I)Lbyl;
intermediary method_43558
Lnet/minecraft/class_7430;method_43558(I)Lnet/minecraft/class_1799;
named method_43558
Lnet/minecraft/class_7430;method_43558(I)Lnet/minecraft/item/ItemStack;
-
method_43560
- Mappings:
Namespace Name Mixin selector official a
Lbyb;a(Lbmm;)Lbyl;
intermediary method_43560
Lnet/minecraft/class_7430;method_43560(Lnet/minecraft/class_6053;)Lnet/minecraft/class_1799;
named method_43560
Lnet/minecraft/class_7430;method_43560(Lnet/minecraft/entity/passive/GoatEntity;)Lnet/minecraft/item/ItemStack;
-
method_43562
- Mappings:
Namespace Name Mixin selector official a
Lbyb;a(Lbyl;Lakt;)V
intermediary method_43562
Lnet/minecraft/class_7430;method_43562(Lnet/minecraft/class_1799;Lnet/minecraft/class_5819;)V
named method_43562
Lnet/minecraft/class_7430;method_43562(Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/random/AbstractRandom;)V
-
method_43561
- Mappings:
Namespace Name Mixin selector official a
Lbyb;a(Lbyl;I)V
intermediary method_43561
Lnet/minecraft/class_7430;method_43561(Lnet/minecraft/class_1799;I)V
named method_43561
Lnet/minecraft/class_7430;method_43561(Lnet/minecraft/item/ItemStack;I)V
-
appendStacks
Appends the stacks of this item shown in the item group to the list.- Overrides:
appendStacks
in classItem
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbyh;a(Lbwz;Lhb;)V
intermediary method_7850
Lnet/minecraft/class_1792;method_7850(Lnet/minecraft/class_1761;Lnet/minecraft/class_2371;)V
named appendStacks
Lnet/minecraft/item/Item;appendStacks(Lnet/minecraft/item/ItemGroup;Lnet/minecraft/util/collection/DefaultedList;)V
-
method_43559
- Mappings:
Namespace Name Mixin selector official a
Lbyb;a(Lakt;Z)I
intermediary method_43559
Lnet/minecraft/class_7430;method_43559(Lnet/minecraft/class_5819;Z)I
named method_43559
Lnet/minecraft/class_7430;method_43559(Lnet/minecraft/util/math/random/AbstractRandom;Z)I
-
use
Called when an item is used by a player. The use action, by default, is bound to the right mouse button.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using
world.isClient()
.- Overrides:
use
in classItem
- Parameters:
world
- the world the item was used inuser
- the player who used the itemhand
- the hand used- Returns:
- a typed action result that specifies whether using the item was successful. The action result contains the new item stack that the player's hand will be set to.
- Mappings:
Namespace Name Mixin selector official a
Lbyh;a(Lcel;Lbrs;Laya;)Layc;
intermediary method_7836
Lnet/minecraft/class_1792;method_7836(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1271;
named use
Lnet/minecraft/item/Item;use(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/TypedActionResult;
-
getMaxUseTime
Returns the maximum use (right-click) time of this item, in ticks. Once a player has used an item for said number of ticks, they stop using it, andItem.finishUsing(net.minecraft.item.ItemStack, net.minecraft.world.World, net.minecraft.entity.LivingEntity)
is called.- Overrides:
getMaxUseTime
in classItem
- Returns:
- the maximum use (right-click) time of this item, in ticks
- Mappings:
Namespace Name Mixin selector official b
Lbyh;b(Lbyl;)I
intermediary method_7881
Lnet/minecraft/class_1792;method_7881(Lnet/minecraft/class_1799;)I
named getMaxUseTime
Lnet/minecraft/item/Item;getMaxUseTime(Lnet/minecraft/item/ItemStack;)I
-
method_43564
- Mappings:
Namespace Name Mixin selector official d
Lbyb;d(Lbyl;)I
intermediary method_43564
Lnet/minecraft/class_7430;method_43564(Lnet/minecraft/class_1799;)I
named method_43564
Lnet/minecraft/class_7430;method_43564(Lnet/minecraft/item/ItemStack;)I
-
getUseAction
- Overrides:
getUseAction
in classItem
- Mappings:
Namespace Name Mixin selector official c
Lbyh;c(Lbyl;)Lcab;
intermediary method_7853
Lnet/minecraft/class_1792;method_7853(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1839;
named getUseAction
Lnet/minecraft/item/Item;getUseAction(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/util/UseAction;
-
method_43563
- Mappings:
Namespace Name Mixin selector official a
Lbyb;a(Lcel;Lbrs;Laih;)V
intermediary method_43563
Lnet/minecraft/class_7430;method_43563(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_3414;)V
named method_43563
Lnet/minecraft/class_7430;method_43563(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/sound/SoundEvent;)V
-