public class ItemArmor extends Item
| Modifier and Type | Class and Description |
|---|---|
static class |
ItemArmor.ArmorMaterial |
Item.ToolMaterial| Modifier and Type | Field and Description |
|---|---|
int |
armorType |
int |
damageReduceAmount |
static java.lang.String[] |
EMPTY_SLOT_NAMES |
int |
renderIndex |
bFull3D, canRepair, delegate, hasSubtypes, itemModifierUUID, itemRand, itemRegistry, maxStackSize| Constructor and Description |
|---|
ItemArmor(ItemArmor.ArmorMaterial material,
int renderIndex,
int armorType) |
| Modifier and Type | Method and Description |
|---|---|
ItemArmor.ArmorMaterial |
getArmorMaterial() |
int |
getColor(ItemStack stack) |
int |
getColorFromItemStack(ItemStack stack,
int renderPass) |
boolean |
getIsRepairable(ItemStack toRepair,
ItemStack repair) |
int |
getItemEnchantability() |
boolean |
hasColor(ItemStack stack) |
ItemStack |
onItemRightClick(ItemStack itemStackIn,
World worldIn,
EntityPlayer playerIn) |
void |
removeColor(ItemStack stack) |
void |
setColor(ItemStack stack,
int color) |
addInformation, canHarvestBlock, canHarvestBlock, canItemEditBlocks, createEntity, doesSneakBypassUse, getArmorModel, getArmorTexture, getAttributeModifiers, getByNameOrId, getChestGenBase, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getDamage, getDigSpeed, getDurabilityForDisplay, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getIdFromItem, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMetadata, getMetadata, getModel, getMovingObjectPositionFromPlayer, getPotionEffect, getRarity, getShareTag, getSmeltingExperience, getStrVsBlock, getSubItems, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasEffect, hitEntity, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isFull3D, isItemTool, isMap, isPotionIngredient, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onItemUse, onItemUseFinish, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, registerItemBlock, registerItems, renderHelmetOverlay, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setPotionEffect, setUnlocalizedName, shouldRotateAroundWhenRendering, showDurabilityBar, updateItemStackNBTpublic static final java.lang.String[] EMPTY_SLOT_NAMES
public final int armorType
public final int damageReduceAmount
public final int renderIndex
public ItemArmor(ItemArmor.ArmorMaterial material, int renderIndex, int armorType)
public int getColorFromItemStack(ItemStack stack, int renderPass)
getColorFromItemStack in class Itempublic int getItemEnchantability()
getItemEnchantability in class Itempublic ItemArmor.ArmorMaterial getArmorMaterial()
public boolean hasColor(ItemStack stack)
public int getColor(ItemStack stack)
public void removeColor(ItemStack stack)
public void setColor(ItemStack stack, int color)
public boolean getIsRepairable(ItemStack toRepair, ItemStack repair)
getIsRepairable in class Itempublic ItemStack onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn)
onItemRightClick in class Item