public class ArmorItem extends Item implements IArmorVanishable
Item.Properties
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
Modifier and Type | Field and Description |
---|---|
private static java.util.UUID[] |
ARMOR_MODIFIER_UUID_PER_SLOT |
private com.google.common.collect.Multimap<Attribute,AttributeModifier> |
defaultModifiers |
private int |
defense |
static IDispenseItemBehavior |
DISPENSE_ITEM_BEHAVIOR |
protected float |
knockbackResistance |
protected IArmorMaterial |
material |
protected EquipmentSlotType |
slot |
private float |
toughness |
BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, category, random
delegate
Constructor and Description |
---|
ArmorItem(IArmorMaterial p_i48534_1_,
EquipmentSlotType p_i48534_2_,
Item.Properties p_i48534_3_) |
Modifier and Type | Method and Description |
---|---|
static boolean |
dispenseArmor(IBlockSource p_226626_0_,
ItemStack p_226626_1_) |
com.google.common.collect.Multimap<Attribute,AttributeModifier> |
getDefaultAttributeModifiers(EquipmentSlotType p_111205_1_) |
int |
getDefense() |
int |
getEnchantmentValue() |
IArmorMaterial |
getMaterial() |
EquipmentSlotType |
getSlot() |
float |
getToughness() |
boolean |
isValidRepairItem(ItemStack p_82789_1_,
ItemStack p_82789_2_) |
ActionResult<ItemStack> |
use(World p_77659_1_,
PlayerEntity p_77659_2_,
Hand p_77659_3_) |
allowdedIn, appendHoverText, asItem, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, fillItemCategory, finishUsingItem, getCraftingRemainingItem, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getFoodProperties, getHarvestLevel, getId, getItemCategory, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTags, getToolTypes, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, is, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, mineBlock, onCraftedBy, onUseTick, releaseUsing, shouldOverrideMultiplayerNbt, toString, useOn, useOnRelease, verifyTagAfterLoad
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBar
private static final java.util.UUID[] ARMOR_MODIFIER_UUID_PER_SLOT
public static final IDispenseItemBehavior DISPENSE_ITEM_BEHAVIOR
protected final EquipmentSlotType slot
private final int defense
private final float toughness
protected final float knockbackResistance
protected final IArmorMaterial material
private final com.google.common.collect.Multimap<Attribute,AttributeModifier> defaultModifiers
public ArmorItem(IArmorMaterial p_i48534_1_, EquipmentSlotType p_i48534_2_, Item.Properties p_i48534_3_)
public static boolean dispenseArmor(IBlockSource p_226626_0_, ItemStack p_226626_1_)
public EquipmentSlotType getSlot()
public int getEnchantmentValue()
getEnchantmentValue
in class Item
public IArmorMaterial getMaterial()
public boolean isValidRepairItem(ItemStack p_82789_1_, ItemStack p_82789_2_)
isValidRepairItem
in class Item
public ActionResult<ItemStack> use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
public com.google.common.collect.Multimap<Attribute,AttributeModifier> getDefaultAttributeModifiers(EquipmentSlotType p_111205_1_)
getDefaultAttributeModifiers
in class Item
public int getDefense()
public float getToughness()