public abstract class ItemHorseArmor
extends net.minecraft.item.Item
| Constructor and Description |
|---|
ItemHorseArmor() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
getArmorTexture(net.minecraft.entity.passive.EntityHorse horse,
net.minecraft.item.ItemStack stack)
Used to provide a resource path for the armor's texture.
|
abstract int |
getArmorValue(net.minecraft.entity.passive.EntityHorse horse,
net.minecraft.item.ItemStack stack)
Used to calculate the amount of protection this item should provide the horse with.
|
abstract boolean |
onHorseDamaged(net.minecraft.entity.passive.EntityHorse horse,
net.minecraft.item.ItemStack stack,
net.minecraft.util.DamageSource source,
float damage)
Called when a horse wearing this piece of armor has been hurt.
|
abstract void |
onHorseRendered(net.minecraft.entity.passive.EntityHorse horse,
net.minecraft.item.ItemStack armorStack,
net.minecraftforge.client.event.RenderLivingEvent event,
byte flag)
Allows for special rendering code to be done, when a horse is rendered with this piece
of armor on.
|
abstract void |
onHorseUpdate(net.minecraft.entity.passive.EntityHorse horse,
net.minecraft.item.ItemStack stack)
Called every time an EntityHorse updates while wearing this piece of armor.
|
addInformation, canHarvestBlock, canItemEditBlocks, createEntity, doesContainerItemLeaveCraftingGrid, doesSneakBypassUse, func_150893_a, func_150897_b, getArmorModel, getArmorTexture, getAttributeModifiers, getChestGenBase, getColorFromItemStack, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getDamage, getDigSpeed, getDisplayDamage, getDurabilityForDisplay, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getIcon, getIcon, getIconFromDamage, getIconFromDamageForRenderPass, getIconIndex, getIconString, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMetadata, getMovingObjectPositionFromPlayer, getPotionEffect, getRarity, getRenderPasses, getShareTag, getSmeltingExperience, getSpriteNumber, getSubItems, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasEffect, hasEffect, hitEntity, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isFull3D, isItemTool, isMap, isPotionIngredient, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEaten, onEntityItemUpdate, onEntitySwing, onItemRightClick, onItemUse, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, registerIcons, registerItems, renderHelmetOverlay, requiresMultipleRenderPasses, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setPotionEffect, setTextureName, setUnlocalizedName, shouldRotateAroundWhenRendering, showDurabilityBarpublic abstract int getArmorValue(net.minecraft.entity.passive.EntityHorse horse,
net.minecraft.item.ItemStack stack)
horse: - An instance of the horse which is currently wearing this piece of armor.stack: - An instance of the ItemStack currently in the horse's armor slot.public abstract void onHorseUpdate(net.minecraft.entity.passive.EntityHorse horse,
net.minecraft.item.ItemStack stack)
horse: - An instance of the horse which is currently wearing this piece of armor.stack: - An instance of the ItemStack currently in the horse's armor slot.public abstract boolean onHorseDamaged(net.minecraft.entity.passive.EntityHorse horse,
net.minecraft.item.ItemStack stack,
net.minecraft.util.DamageSource source,
float damage)
horse: - An instance of the horse which is currently wearing this piece of armor.stack: - An instance of the ItemStack currently in the horse's armor slot.source: - The DamageSource which caused the horse to be hurt.damage: - The amount of damage that the horse received.public abstract java.lang.String getArmorTexture(net.minecraft.entity.passive.EntityHorse horse,
net.minecraft.item.ItemStack stack)
horse: - An instance of the horse which is currently wearing this piece of armor.stack: - An instance of the ItemStack currently in the horse's armor slot.public abstract void onHorseRendered(net.minecraft.entity.passive.EntityHorse horse,
net.minecraft.item.ItemStack armorStack,
net.minecraftforge.client.event.RenderLivingEvent event,
byte flag)
horse: - An instance of the EntityHorse that is wearing the armor.armorStack: - An instance of the ItemStack which is in the armor slot.event: - Access to the RenderLivingEvent being called.flag: - A convenient flag which can be used to easily switch between the different
render events. 0:pre 1:post 2:special-pre 3:special-post