public class GenericArmor
extends net.minecraft.item.ArmorItem
Modifier and Type | Field and Description |
---|---|
IArmorEffect |
effect
The evolution stone effect on the armor.
|
IItemAttributeModifier |
itemAttributeModifier
The attribute on the armor.
|
net.minecraft.item.IArmorMaterial |
material
The material this armor is made of
|
DISPENSE_ITEM_BEHAVIOR, knockbackResistance, slot
Constructor and Description |
---|
GenericArmor(net.minecraft.item.IArmorMaterial material,
net.minecraft.inventory.EquipmentSlotType armorType)
Initializes the armor piece.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getArmorTexture(net.minecraft.item.ItemStack stack,
net.minecraft.entity.Entity entity,
net.minecraft.inventory.EquipmentSlotType slot,
java.lang.String type) |
com.google.common.collect.Multimap<net.minecraft.entity.ai.attributes.Attribute,net.minecraft.entity.ai.attributes.AttributeModifier> |
getAttributeModifiers(net.minecraft.inventory.EquipmentSlotType slot,
net.minecraft.item.ItemStack stack) |
java.lang.String |
getDescriptionId() |
void |
onArmorTick(net.minecraft.item.ItemStack stack,
net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player) |
GenericArmor |
setEffect(IArmorEffect effect)
Sets the armor's effect.
|
GenericArmor |
setItemAttributeModifiers(IItemAttributeModifier modifier)
Sets the armor's attributes.
|
dispenseArmor, getDefaultAttributeModifiers, getDefense, getEnchantmentValue, getMaterial, getSlot, getToughness, isValidRepairItem, use
allowdedIn, appendHoverText, asItem, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, fillItemCategory, finishUsingItem, getCraftingRemainingItem, getDefaultInstance, getDescription, 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, 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, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBar
public IArmorEffect effect
public IItemAttributeModifier itemAttributeModifier
public final net.minecraft.item.IArmorMaterial material
public GenericArmor(net.minecraft.item.IArmorMaterial material, net.minecraft.inventory.EquipmentSlotType armorType)
material
- The armor's material.armorType
- The armor's slot type.public GenericArmor setEffect(IArmorEffect effect)
effect
- The armor's effect.public GenericArmor setItemAttributeModifiers(IItemAttributeModifier modifier)
modifier
- The armor's attributes.public com.google.common.collect.Multimap<net.minecraft.entity.ai.attributes.Attribute,net.minecraft.entity.ai.attributes.AttributeModifier> getAttributeModifiers(net.minecraft.inventory.EquipmentSlotType slot, net.minecraft.item.ItemStack stack)
public void onArmorTick(net.minecraft.item.ItemStack stack, net.minecraft.world.World world, net.minecraft.entity.player.PlayerEntity player)
public java.lang.String getDescriptionId()
getDescriptionId
in class net.minecraft.item.Item
@Nullable public java.lang.String getArmorTexture(net.minecraft.item.ItemStack stack, net.minecraft.entity.Entity entity, net.minecraft.inventory.EquipmentSlotType slot, java.lang.String type)