Package net.minecraft.item
Class ArmorItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.ArmorItem
- Mappings:
Namespace Name official adpintermediary 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_13649(World world, PlayerEntity player, Hand hand) method_6326(EquipmentSlot equipmentSlot) voidremoveColor(ItemStack stack) voidMethods inherited from class net.minecraft.item.Item
addProperty, appendTooltip, byRawId, fromBlock, getBlockBreakingSpeed, getDefaultStack, 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_13648, method_3346, method_3353, method_3356, method_3359, method_3367, onCraft, onEntityHit, onHit, postProcessNbt, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncNbtToClient, use
-
Field Details
-
BASE_DURABILITY
private static final int[] BASE_DURABILITY- Mappings:
Namespace Name Mixin selector official nLadp;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 oLadp;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 aLadp;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 bLadp;b:Lcw;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 cLadp;c:Lss;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 dLadp;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 eLadp;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 fLadp;f:Iintermediary field_4160Lnet/minecraft/class_1028;field_4160:Inamed materialIdLnet/minecraft/item/ArmorItem;materialId:I
-
material
- Mappings:
Namespace Name Mixin selector official pLadp;p:Ladp$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 aLadp;a(Lcp;Lafj;)Lafj;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 D_Ladp;D_()Lss;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 cLafh;c()Iintermediary method_3362Lnet/minecraft/class_1069;method_3362()Inamed getEnchantabilityLnet/minecraft/item/Item;getEnchantability()I
-
getMaterial
- Mappings:
Namespace Name Mixin selector official dLadp;d()Ladp$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_Ladp;e_(Lafj;)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 cLadp;c(Lafj;)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 dLadp;d(Lafj;)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 aLadp;a(Lafj;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 aLafh;a(Lafj;Lafj;)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_13649
- Overrides:
method_13649in classItem- Mappings:
Namespace Name Mixin selector official aLafh;a(Lajs;Laay;Lri;)Lrl;intermediary method_13649Lnet/minecraft/class_1069;method_13649(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;Lnet/minecraft/class_2961;)Lnet/minecraft/class_2963;named method_13649Lnet/minecraft/item/Item;method_13649(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 aLafh;a(Lss;)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;
-