Package net.minecraft.item
Class ArmorItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.ArmorItem
- Mappings:
Namespace Name official abwintermediary net/minecraft/class_1028named net/minecraft/item/ArmorItem
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.item.Item
Item.ToolMaterialType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DispenserBehaviorprivate static final int[]static final String[]final EquipmentSlotfinal floatprivate static final UUID[]private final ArmorItem.Materialfinal intfinal intFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, ATTACK_SPEED_MODIFIER, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
ConstructorsConstructorDescriptionArmorItem(ArmorItem.Material material, int int2, EquipmentSlot equipmentSlot) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the item can be repaired via an anvil or crafting table.intintReturns the enchantability of an Item.booleanstatic ItemStackmethod_11353(BlockPointer blockPointer, ItemStack itemStack) method_11373(ItemStack itemStack, World world, PlayerEntity playerEntity, Hand hand) method_6326(EquipmentSlot equipmentSlot) voidremoveColor(ItemStack stack) voidMethods inherited from class net.minecraft.item.Item
addProperty, appendItemStacks, appendTooltip, byRawId, fromBlock, getBlockBreakingSpeed, getDisplayName, getFromId, getItemGroup, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMaxUseTime, getMeta, getProperty, getRarity, getRawId, getRecipeRemainder, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasProperties, hasSubTypes, inventoryTick, isDamageable, isEnchantable, isFood, isHandheld, isNetworkSynced, isUnbreakable, method_3346, method_3353, method_3355, method_3356, method_3359, method_3367, onCraft, onEntityHit, onHit, postProcessNbt, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncNbtToClient
-
Field Details
-
BASE_DURABILITY
private static final int[] BASE_DURABILITY- Mappings:
Namespace Name Mixin selector official nLabw;n:[Iintermediary field_4158Lnet/minecraft/class_1028;field_4158:[Inamed BASE_DURABILITYLnet/minecraft/item/ArmorItem;BASE_DURABILITY:[I
-
field_12277
- Mappings:
Namespace Name Mixin selector official oLabw;o:[Ljava/util/UUID;intermediary field_12277Lnet/minecraft/class_1028;field_12277:[Ljava/util/UUID;named field_12277Lnet/minecraft/item/ArmorItem;field_12277:[Ljava/util/UUID;
-
EMPTY
- Mappings:
Namespace Name Mixin selector official aLabw;a:[Ljava/lang/String;intermediary field_6163Lnet/minecraft/class_1028;field_6163:[Ljava/lang/String;named EMPTYLnet/minecraft/item/ArmorItem;EMPTY:[Ljava/lang/String;
-
ARMOR_DISPENSER_BEHAVIOR
- Mappings:
Namespace Name Mixin selector official bLabw;b:Lct;intermediary field_6165Lnet/minecraft/class_1028;field_6165:Lnet/minecraft/class_1348;named ARMOR_DISPENSER_BEHAVIORLnet/minecraft/item/ArmorItem;ARMOR_DISPENSER_BEHAVIOR:Lnet/minecraft/block/dispenser/DispenserBehavior;
-
field_12275
- Mappings:
Namespace Name Mixin selector official cLabw;c:Lrw;intermediary field_12275Lnet/minecraft/class_1028;field_12275:Lnet/minecraft/class_2968;named field_12275Lnet/minecraft/item/ArmorItem;field_12275:Lnet/minecraft/entity/EquipmentSlot;
-
protection
public final int protection- Mappings:
Namespace Name Mixin selector official dLabw;d:Iintermediary field_4157Lnet/minecraft/class_1028;field_4157:Inamed protectionLnet/minecraft/item/ArmorItem;protection:I
-
field_12276
public final float field_12276- Mappings:
Namespace Name Mixin selector official eLabw;e:Fintermediary field_12276Lnet/minecraft/class_1028;field_12276:Fnamed field_12276Lnet/minecraft/item/ArmorItem;field_12276:F
-
materialId
public final int materialId- Mappings:
Namespace Name Mixin selector official fLabw;f:Iintermediary field_4160Lnet/minecraft/class_1028;field_4160:Inamed materialIdLnet/minecraft/item/ArmorItem;materialId:I
-
material
- Mappings:
Namespace Name Mixin selector official pLabw;p:Labw$a;intermediary field_4159Lnet/minecraft/class_1028;field_4159:Lnet/minecraft/class_1028$class_1029;named materialLnet/minecraft/item/ArmorItem;material:Lnet/minecraft/item/ArmorItem$Material;
-
-
Constructor Details
-
ArmorItem
-
-
Method Details
-
method_11353
- Mappings:
Namespace Name Mixin selector official aLabw;a(Lcm;Ladq;)Ladq;intermediary method_11353Lnet/minecraft/class_1028;method_11353(Lnet/minecraft/class_1332;Lnet/minecraft/class_1071;)Lnet/minecraft/class_1071;named method_11353Lnet/minecraft/item/ArmorItem;method_11353(Lnet/minecraft/util/math/BlockPointer;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
-
method_11352
- Mappings:
Namespace Name Mixin selector official B_Labw;B_()Lrw;intermediary method_11352Lnet/minecraft/class_1028;method_11352()Lnet/minecraft/class_2968;named method_11352Lnet/minecraft/item/ArmorItem;method_11352()Lnet/minecraft/entity/EquipmentSlot;
-
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
-
getMaterial
- Mappings:
Namespace Name Mixin selector official dLabw;d()Labw$a;intermediary method_4602Lnet/minecraft/class_1028;method_4602()Lnet/minecraft/class_1028$class_1029;named getMaterialLnet/minecraft/item/ArmorItem;getMaterial()Lnet/minecraft/item/ArmorItem$Material;
-
hasColor
- Mappings:
Namespace Name Mixin selector official e_Labw;e_(Ladq;)Zintermediary method_4598Lnet/minecraft/class_1028;method_4598(Lnet/minecraft/class_1071;)Znamed hasColorLnet/minecraft/item/ArmorItem;hasColor(Lnet/minecraft/item/ItemStack;)Z
-
getColor
- Mappings:
Namespace Name Mixin selector official bLabw;b(Ladq;)Iintermediary method_4599Lnet/minecraft/class_1028;method_4599(Lnet/minecraft/class_1071;)Inamed getColorLnet/minecraft/item/ArmorItem;getColor(Lnet/minecraft/item/ItemStack;)I
-
removeColor
- Mappings:
Namespace Name Mixin selector official cLabw;c(Ladq;)Vintermediary method_4601Lnet/minecraft/class_1028;method_4601(Lnet/minecraft/class_1071;)Vnamed removeColorLnet/minecraft/item/ArmorItem;removeColor(Lnet/minecraft/item/ItemStack;)V
-
setColor
- Mappings:
Namespace Name Mixin selector official aLabw;a(Ladq;I)Vintermediary method_4600Lnet/minecraft/class_1028;method_4600(Lnet/minecraft/class_1071;I)Vnamed setColorLnet/minecraft/item/ArmorItem;setColor(Lnet/minecraft/item/ItemStack;I)V
-
canRepair
Returns whether the item can be repaired via an anvil or crafting table.- Overrides:
canRepairin classItem- Mappings:
Namespace Name Mixin selector official aLado;a(Ladq;Ladq;)Zintermediary method_4615Lnet/minecraft/class_1069;method_4615(Lnet/minecraft/class_1071;Lnet/minecraft/class_1071;)Znamed canRepairLnet/minecraft/item/Item;canRepair(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)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;
-
method_6326
- Overrides:
method_6326in classItem- Mappings:
Namespace Name Mixin selector official aLado;a(Lrw;)Lcom/google/common/collect/Multimap;intermediary method_6326Lnet/minecraft/class_1069;method_6326(Lnet/minecraft/class_2968;)Lcom/google/common/collect/Multimap;named method_6326Lnet/minecraft/item/Item;method_6326(Lnet/minecraft/entity/EquipmentSlot;)Lcom/google/common/collect/Multimap;
-