public class ItemArmor extends Item
Item.Properties
Modifier and Type | Field and Description |
---|---|
protected EntityEquipmentSlot |
armorType |
protected int |
damageReduceAmount |
static IBehaviorDispenseItem |
DISPENSER_BEHAVIOR |
protected IArmorMaterial |
material |
protected float |
toughness |
ATTACK_DAMAGE_MODIFIER, ATTACK_SPEED_MODIFIER, BLOCK_TO_ITEM, canRepair, group, properties, random
delegate
Constructor and Description |
---|
ItemArmor(IArmorMaterial materialIn,
EntityEquipmentSlot slots,
Item.Properties builder) |
Modifier and Type | Method and Description |
---|---|
static ItemStack |
dispenseArmor(IBlockSource blockSource,
ItemStack stack) |
IArmorMaterial |
getArmorMaterial() |
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
getAttributeModifiers(EntityEquipmentSlot equipmentSlot) |
int |
getDamageReduceAmount() |
EntityEquipmentSlot |
getEquipmentSlot() |
boolean |
getIsRepairable(ItemStack toRepair,
ItemStack repair) |
int |
getItemEnchantability() |
float |
getToughness() |
ActionResult<ItemStack> |
onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
addInformation, addPropertyOverride, asItem, canHarvestBlock, canPlayerBreakBlockWhileHolding, fillItemGroup, getContainerItem, getDefaultInstance, getDefaultTranslationKey, getDestroySpeed, getDisplayName, getGroup, getHarvestLevel, getIdFromItem, getItemById, getItemFromBlock, getMaxDamage, getMaxStackSize, getName, getPropertyGetter, getRarity, getShareTag, getTileEntityItemStackRenderer, getToolTypes, getTranslationKey, getTranslationKey, getUseAction, getUseDuration, hasContainerItem, hasCustomProperties, hasEffect, hitEntity, inventoryTick, isComplex, isDamageable, isEnchantable, isIn, isInGroup, isRepairable, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemUse, onItemUseFinish, onPlayerStoppedUsing, rayTrace, register, registerItems, updateItemStackNBT
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canEquip, canHarvestBlock, createEntity, doesSneakBypassUse, getAnimationParameters, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getHorseArmorType, 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, showDurabilityBar
public static final IBehaviorDispenseItem DISPENSER_BEHAVIOR
protected final EntityEquipmentSlot armorType
protected final int damageReduceAmount
protected final float toughness
protected final IArmorMaterial material
public ItemArmor(IArmorMaterial materialIn, EntityEquipmentSlot slots, Item.Properties builder)
public static ItemStack dispenseArmor(IBlockSource blockSource, ItemStack stack)
public EntityEquipmentSlot getEquipmentSlot()
public int getItemEnchantability()
getItemEnchantability
in class Item
public IArmorMaterial getArmorMaterial()
public boolean getIsRepairable(ItemStack toRepair, ItemStack repair)
getIsRepairable
in class Item
public ActionResult<ItemStack> onItemRightClick(World worldIn, EntityPlayer playerIn, EnumHand handIn)
onItemRightClick
in class Item
public com.google.common.collect.Multimap<java.lang.String,AttributeModifier> getAttributeModifiers(EntityEquipmentSlot equipmentSlot)
getAttributeModifiers
in class Item
public int getDamageReduceAmount()
public float getToughness()