public class ArmorItem extends Item
Item.Properties
修飾子とタイプ | フィールドと説明 |
---|---|
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, random
delegate
コンストラクタと説明 |
---|
ArmorItem(IArmorMaterial materialIn,
EquipmentSlotType slot,
Item.Properties builder) |
修飾子とタイプ | メソッドと説明 |
---|---|
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)
Gets a map of item attribute modifiers, used by ItemSword to increase hit damage.
|
int |
getDamageReduceAmount() |
EquipmentSlotType |
getEquipmentSlot()
Gets the equipment slot of this armor piece (formerly known as armor type)
|
boolean |
getIsRepairable(ItemStack toRepair,
ItemStack repair)
Return whether this item is repairable in an anvil.
|
int |
getItemEnchantability()
Return the enchantability factor of the item, most of the time is based on material.
|
float |
getToughness() |
ActionResult<ItemStack> |
onItemRightClick(World worldIn,
PlayerEntity playerIn,
Hand handIn)
Called to trigger the item's "innate" right click behavior.
|
addInformation, addPropertyOverride, asItem, canHarvestBlock, canPlayerBreakBlockWhileHolding, fillItemGroup, func_219972_a, func_225519_S__, func_225520_U__, getContainerItem, getDefaultInstance, getDefaultTranslationKey, getDestroySpeed, getDisplayName, 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, rayTrace, shouldSyncTag, toString, updateItemStackNBT
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, 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, showDurabilityBar
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
クラス内 Item
public IArmorMaterial getArmorMaterial()
public boolean getIsRepairable(ItemStack toRepair, ItemStack repair)
getIsRepairable
クラス内 Item
public ActionResult<ItemStack> onItemRightClick(World worldIn, PlayerEntity playerIn, Hand handIn)
Item.onItemUse(net.minecraft.item.ItemUseContext)
.onItemRightClick
クラス内 Item
public com.google.common.collect.Multimap<java.lang.String,AttributeModifier> getAttributeModifiers(EquipmentSlotType equipmentSlot)
getAttributeModifiers
クラス内 Item
public int getDamageReduceAmount()
public float getToughness()