Package net.minecraft
Class class_9530
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.ArmorItem
net.minecraft.class_9530
- All Implemented Interfaces:
Equipment,ItemConvertible,ToggleableFeature
- Mappings:
Namespace Name official cuzintermediary net/minecraft/class_9530named net/minecraft/class_9530
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.ArmorItem
ArmorItem.TypeNested classes/interfaces inherited from class net.minecraft.item.Item
Item.Settings -
Field Summary
FieldsFields inherited from class net.minecraft.item.ArmorItem
DISPENSER_BEHAVIOR, material, typeFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, DEFAULT_MAX_COUNT, ITEM_BAR_STEPS, MAX_MAX_COUNTFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
ConstructorsConstructorDescriptionclass_9530(RegistryEntry<ArmorMaterial> material, ArmorItem.Type type, Item.Settings settings) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidmethod_59036(ItemStack itemStack, World world, BlockPos blockPos, Inventory inventory) private static Optional<MutableText> method_59053(int int2, PlayerEntity playerEntity) use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.Methods inherited from class net.minecraft.item.ArmorItem
canRepair, dispenseArmor, getAttributeModifiers, getEnchantability, getEquipSound, getMaterial, getProtection, getSlotType, getToughness, getTypeMethods inherited from class net.minecraft.item.Item
asItem, byRawId, canBeNested, canMine, finishUsing, fromBlock, getBonusAttackDamage, getBreakSound, getComponents, getDefaultStack, getDrinkSound, getItemBarColor, getItemBarStep, getMaxCount, getMaxUseTime, getMiningSpeed, getName, getName, getOrCreateTranslationKey, getRawId, getRecipeRemainder, getRegistryEntry, getRequiredFeatures, getTooltipData, getTranslationKey, getTranslationKey, getUseAction, hasGlint, hasRecipeRemainder, inventoryTick, isCorrectForDrops, isEnchantable, isItemBarVisible, isNetworkSynced, isUsedOnRelease, method_59037, onClicked, onCraft, onCraftByPlayer, onItemEntityDestroyed, onStackClicked, onStoppedUsing, postHit, postMine, postProcessComponents, raycast, toString, usageTick, useOnBlock, useOnEntityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.item.Equipment
equipAndSwapMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
field_50701
- Mappings:
Namespace Name Mixin selector official jLcuz;j:Lyb;intermediary field_50701Lnet/minecraft/class_9530;field_50701:Lnet/minecraft/class_2583;named field_50701Lnet/minecraft/class_9530;field_50701:Lnet/minecraft/text/Style;
-
field_50702
private static final int field_50702- See Also:
- Mappings:
Namespace Name Mixin selector official kLcuz;k:Iintermediary field_50702Lnet/minecraft/class_9530;field_50702:Inamed field_50702Lnet/minecraft/class_9530;field_50702:I
-
-
Constructor Details
-
class_9530
public class_9530(RegistryEntry<ArmorMaterial> material, ArmorItem.Type type, Item.Settings settings) - Mappings:
Namespace Name Mixin selector official <init>Lcrt;<init>(Lja;Lcrt$a;Lcuc$a;)Vintermediary <init>Lnet/minecraft/class_1738;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_1738$class_8051;Lnet/minecraft/class_1792$class_1793;)Vnamed <init>Lnet/minecraft/item/ArmorItem;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/item/ArmorItem$Type;Lnet/minecraft/item/Item$Settings;)V
-
-
Method Details
-
appendTooltip
Called by the client to append tooltips to an item. Subclasses can override this and add custom tooltips totooltiplist.- Overrides:
appendTooltipin classItem- Parameters:
tooltip- the list of tooltips to show- Mappings:
Namespace Name Mixin selector official aLcuc;a(Lcuh;Ldca;Ljava/util/List;Lcwi;)Vintermediary method_7851Lnet/minecraft/class_1792;method_7851(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Ljava/util/List;Lnet/minecraft/class_1836;)Vnamed appendTooltipLnet/minecraft/item/Item;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Ljava/util/List;Lnet/minecraft/client/item/TooltipContext;)V
-
method_59036
- Overrides:
method_59036in classItem- Mappings:
Namespace Name Mixin selector official aLcuc;a(Lcuh;Ldca;Lir;Lbpt;)Vintermediary method_59036Lnet/minecraft/class_1792;method_59036(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1263;)Vnamed method_59036Lnet/minecraft/item/Item;method_59036(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/inventory/Inventory;)V
-
method_59053
- Mappings:
Namespace Name Mixin selector official aLcuz;a(ILcly;)Ljava/util/Optional;intermediary method_59053Lnet/minecraft/class_9530;method_59053(ILnet/minecraft/class_1657;)Ljava/util/Optional;named method_59053Lnet/minecraft/class_9530;method_59053(ILnet/minecraft/entity/player/PlayerEntity;)Ljava/util/Optional;
-
use
Called when the player uses (or starts using) the item. The use action, by default, is bound to the right mouse button. This method checks the player's hunger when the item is a food, and will pass in all other cases by default.If the item can be used for multiple ticks, then this will only be called when the player starts using it. After that,
Item.usageTick(net.minecraft.world.World, net.minecraft.entity.LivingEntity, net.minecraft.item.ItemStack, int)is called every tick until the player finishes using the item.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:
usein classArmorItem- 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 aLcuc;a(Ldca;Lcly;Lbpz;)Lbqb;intermediary method_7836Lnet/minecraft/class_1792;method_7836(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1271;named useLnet/minecraft/item/Item;use(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/TypedActionResult;
-