Package net.minecraft.item
Class ArmorItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.ArmorItem
- Mappings:
Namespace Name official yjintermediary 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 TypeFieldDescriptionprivate static final DispenserBehaviorprivate static final int[]static final String[]private final ArmorItem.Materialfinal intfinal intfinal intFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the item can be repaired via an anvil or crafting table.intintgetDisplayColor(ItemStack stack, int color) intReturns the enchantability of an Item.booleanonStartUse(ItemStack stack, World world, PlayerEntity player) voidremoveColor(ItemStack stack) voidMethods inherited from class net.minecraft.item.Item
appendItemStacks, appendTooltip, byRawId, canUseOnEntity, fromBlock, getAttributeModifierMap, getDisplayName, getFromId, getItemGroup, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMaxUseTime, getMeta, getMiningSpeedMultiplier, getRarity, getRawId, getRecipeRemainder, getStatusEffectString, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasStatusEffectString, hasSubTypes, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFood, isHandheld, isNetworkSynced, isUnbreakable, onBlockBroken, onCraft, onEntityHit, onFinishUse, onHit, onUseStopped, postProcessNbt, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setStatusEffectString, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncNbtToClient, use
-
Field Details
-
BASE_DURABILITY
private static final int[] BASE_DURABILITY- Mappings:
Namespace Name Mixin selector official kLyj;k:[Iintermediary field_4158Lnet/minecraft/class_1028;field_4158:[Inamed BASE_DURABILITYLnet/minecraft/item/ArmorItem;BASE_DURABILITY:[I
-
EMPTY
- Mappings:
Namespace Name Mixin selector official aLyj;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 lLyj;l:Lcr;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;
-
slot
public final int slot- Mappings:
Namespace Name Mixin selector official bLyj;b:Iintermediary field_4156Lnet/minecraft/class_1028;field_4156:Inamed slotLnet/minecraft/item/ArmorItem;slot:I
-
protection
public final int protection- Mappings:
Namespace Name Mixin selector official cLyj;c:Iintermediary field_4157Lnet/minecraft/class_1028;field_4157:Inamed protectionLnet/minecraft/item/ArmorItem;protection:I
-
materialId
public final int materialId- Mappings:
Namespace Name Mixin selector official dLyj;d:Iintermediary field_4160Lnet/minecraft/class_1028;field_4160:Inamed materialIdLnet/minecraft/item/ArmorItem;materialId:I
-
material
- Mappings:
Namespace Name Mixin selector official mLyj;m:Lyj$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
- Mappings:
Namespace Name Mixin selector official <init>Lyj;<init>(Lyj$a;II)Vintermediary <init>Lnet/minecraft/class_1028;<init>(Lnet/minecraft/class_1028$class_1029;II)Vnamed <init>Lnet/minecraft/item/ArmorItem;<init>(Lnet/minecraft/item/ArmorItem$Material;II)V
-
-
Method Details
-
getDisplayColor
- Overrides:
getDisplayColorin classItem- Mappings:
Namespace Name Mixin selector official aLzw;a(Lzx;I)Iintermediary method_3344Lnet/minecraft/class_1069;method_3344(Lnet/minecraft/class_1071;I)Inamed getDisplayColorLnet/minecraft/item/Item;getDisplayColor(Lnet/minecraft/item/ItemStack;I)I
-
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 bLzw;b()Iintermediary method_3362Lnet/minecraft/class_1069;method_3362()Inamed getEnchantabilityLnet/minecraft/item/Item;getEnchantability()I
-
getMaterial
- Mappings:
Namespace Name Mixin selector official x_Lyj;x_()Lyj$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 d_Lyj;d_(Lzx;)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 bLyj;b(Lzx;)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 cLyj;c(Lzx;)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 bLyj;b(Lzx;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 aLzw;a(Lzx;Lzx;)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
-
onStartUse
- Overrides:
onStartUsein classItem- Mappings:
Namespace Name Mixin selector official aLzw;a(Lzx;Ladm;Lwn;)Lzx;intermediary method_3358Lnet/minecraft/class_1069;method_3358(Lnet/minecraft/class_1071;Lnet/minecraft/class_1150;Lnet/minecraft/class_988;)Lnet/minecraft/class_1071;named onStartUseLnet/minecraft/item/Item;onStartUse(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
-