public class ArmorItem extends Item
Item.Properties| Modifier and Type | Field and Description |
|---|---|
private static java.util.UUID[] |
ARMOR_MODIFIERS |
protected int |
damageReduceAmount |
static IDispenseItemBehavior |
DISPENSER_BEHAVIOR |
protected IArmorMaterial |
material |
protected EquipmentSlotType |
slot |
protected float |
toughness |
ATTACK_DAMAGE_MODIFIER, ATTACK_SPEED_MODIFIER, BLOCK_TO_ITEM, canRepair, group, properties, randomdelegate| Constructor and Description |
|---|
ArmorItem(IArmorMaterial materialIn,
EquipmentSlotType slot,
Item.Properties builder) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
func_226626_a_(IBlockSource p_226626_0_,
ItemStack p_226626_1_) |
IArmorMaterial |
getArmorMaterial() |
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
getAttributeModifiers(EquipmentSlotType equipmentSlot) |
int |
getDamageReduceAmount() |
EquipmentSlotType |
getEquipmentSlot() |
boolean |
getIsRepairable(ItemStack toRepair,
ItemStack repair) |
int |
getItemEnchantability() |
float |
getToughness() |
ActionResult<ItemStack> |
onItemRightClick(World worldIn,
PlayerEntity playerIn,
Hand handIn) |
addInformation, addPropertyOverride, asItem, canHarvestBlock, canPlayerBreakBlockWhileHolding, fillItemGroup, getContainerItem, getDefaultInstance, getDefaultTranslationKey, getDestroySpeed, getDisplayName, getDrinkSound, getEatSound, getFood, getGroup, getHarvestLevel, getIdFromItem, getItemById, getItemFromBlock, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getPropertyGetter, getRarity, getTags, getToolTypes, getTranslationKey, getTranslationKey, getUseAction, getUseDuration, hasContainerItem, hasCustomProperties, hasEffect, hitEntity, inventoryTick, isComplex, isCrossbow, isDamageable, isEnchantable, isFood, isIn, isInGroup, isRepairable, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemUse, onItemUseFinish, onPlayerStoppedUsing, onUse, rayTrace, shouldSyncTag, toString, updateItemStackNBTgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAnimationParameters, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isBeaconPayment, isBookEnchantable, isDamaged, isShield, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBarprivate static final java.util.UUID[] ARMOR_MODIFIERS
public static final IDispenseItemBehavior DISPENSER_BEHAVIOR
protected final EquipmentSlotType slot
protected final int damageReduceAmount
protected final float toughness
protected final IArmorMaterial material
public ArmorItem(IArmorMaterial materialIn, EquipmentSlotType slot, Item.Properties builder)
public static boolean func_226626_a_(IBlockSource p_226626_0_, ItemStack p_226626_1_)
public EquipmentSlotType getEquipmentSlot()
public int getItemEnchantability()
getItemEnchantability in class Itempublic IArmorMaterial getArmorMaterial()
public boolean getIsRepairable(ItemStack toRepair, ItemStack repair)
getIsRepairable in class Itempublic ActionResult<ItemStack> onItemRightClick(World worldIn, PlayerEntity playerIn, Hand handIn)
onItemRightClick in class Itempublic com.google.common.collect.Multimap<java.lang.String,AttributeModifier> getAttributeModifiers(EquipmentSlotType equipmentSlot)
getAttributeModifiers in class Itempublic int getDamageReduceAmount()
public float getToughness()