Class ManaweaveHelmItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.ArmorItem
vazkii.botania.common.item.equipment.armor.manasteel.ManasteelArmorItem
vazkii.botania.common.item.equipment.armor.manaweave.ManaweaveArmorItem
vazkii.botania.common.item.equipment.armor.manaweave.ManaweaveHelmItem
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement,net.minecraft.world.item.Equipable,net.minecraft.world.level.ItemLike,ManaProficiencyArmor,PhantomInkable,ManaDiscountArmor,CustomDamageItem
public class ManaweaveHelmItem
extends ManaweaveArmorItem
implements ManaDiscountArmor, ManaProficiencyArmor
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.ArmorItem
net.minecraft.world.item.ArmorItem.TypeNested classes/interfaces inherited from class net.minecraft.world.item.Item
net.minecraft.world.item.Item.Properties, net.minecraft.world.item.Item.TooltipContext -
Field Summary
Fields inherited from class vazkii.botania.common.item.equipment.armor.manasteel.ManasteelArmorItem
typeFields inherited from class net.minecraft.world.item.ArmorItem
DISPENSE_ITEM_BEHAVIOR, materialFields inherited from class net.minecraft.world.item.Item
ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTHFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetDiscount(net.minecraft.world.item.ItemStack stack, int slot, net.minecraft.world.entity.player.Player player, @Nullable net.minecraft.world.item.ItemStack tool) Gets the mana discount that this piece of armor provides for the specified tool.protected intbooleanshouldGiveProficiency(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.EquipmentSlot slot, net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack rod) Methods inherited from class vazkii.botania.common.item.equipment.armor.manaweave.ManaweaveArmorItem
addArmorSetDescription, addInformationAfterShift, canWalkOnPowderedSnow, getArmorSetName, getArmorSetStacks, getArmorTextureAfterInk, getDescriptionId, hasArmorSetItemMethods inherited from class vazkii.botania.common.item.equipment.armor.manasteel.ManasteelArmorItem
appendHoverText, damageItem, getArmorTexture, hasArmorSet, hasPhantomInk, inventoryTick, setPhantomInkMethods inherited from class net.minecraft.world.item.ArmorItem
dispenseArmor, getDefaultAttributeModifiers, getDefense, getEnchantmentValue, getEquipmentSlot, getEquipSound, getMaterial, getToughness, getType, isValidRepairItem, useMethods inherited from class net.minecraft.world.item.Item
asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainingItem, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getId, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, isBarVisible, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, requiredFeatures, toString, useOn, useOnRelease, verifyComponentsAfterLoadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.item.Equipable
swapWithEquipmentSlotMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabled
-
Constructor Details
-
ManaweaveHelmItem
public ManaweaveHelmItem(net.minecraft.world.item.Item.Properties props)
-
-
Method Details
-
getDiscount
public float getDiscount(net.minecraft.world.item.ItemStack stack, int slot, net.minecraft.world.entity.player.Player player, @Nullable @Nullable net.minecraft.world.item.ItemStack tool) Description copied from interface:ManaDiscountArmorGets the mana discount that this piece of armor provides for the specified tool. This is added together to create the full discount. Value is to be from 0.0 to 1.0. 0.1 is 10% discount, as an example. You can also return negative values to make tools cost more.- Specified by:
getDiscountin interfaceManaDiscountArmor
-
shouldGiveProficiency
public boolean shouldGiveProficiency(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.EquipmentSlot slot, net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack rod) - Specified by:
shouldGiveProficiencyin interfaceManaProficiencyArmor
-
getManaPerDamage
protected int getManaPerDamage()- Overrides:
getManaPerDamagein classManasteelArmorItem
-