Class ManasteelArmorItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.ArmorItem
vazkii.botania.common.item.equipment.armor.manasteel.ManasteelArmorItem
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement,net.minecraft.world.item.Equipable,net.minecraft.world.level.ItemLike,PhantomInkable,CustomDamageItem
- Direct Known Subclasses:
ElementiumArmorItem,ManasteelHelmItem,ManaweaveArmorItem,TerrasteelArmorItem
public class ManasteelArmorItem
extends net.minecraft.world.item.ArmorItem
implements CustomDamageItem, PhantomInkable
-
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
FieldsFields 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
ConstructorsConstructorDescriptionManasteelArmorItem(net.minecraft.world.item.ArmorItem.Type type, net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> mat, net.minecraft.world.item.Item.Properties props) ManasteelArmorItem(net.minecraft.world.item.ArmorItem.Type type, net.minecraft.world.item.Item.Properties props) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArmorSetDescription(net.minecraft.world.item.ItemStack stack, List<net.minecraft.network.chat.Component> list) voidaddInformationAfterShift(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext context, List<net.minecraft.network.chat.Component> list, net.minecraft.world.item.TooltipFlag flags) voidappendHoverText(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext context, List<net.minecraft.network.chat.Component> list, net.minecraft.world.item.TooltipFlag flags) <T extends net.minecraft.world.entity.LivingEntity>
intdamageItem(net.minecraft.world.item.ItemStack stack, int amount, T entity, Consumer<net.minecraft.world.item.Item> breakCallback) net.minecraft.network.chat.MutableComponentnet.minecraft.world.item.ItemStack[]final net.minecraft.resources.ResourceLocationgetArmorTexture(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.EquipmentSlot slot, net.minecraft.world.item.ArmorMaterial.Layer layer, boolean innerModel) net.minecraft.resources.ResourceLocationgetArmorTextureAfterInk(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.EquipmentSlot slot) protected intbooleanhasArmorSet(net.minecraft.world.entity.player.Player player) booleanhasArmorSetItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.EquipmentSlot slot) booleanhasPhantomInk(net.minecraft.world.item.ItemStack stack) voidinventoryTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity entity, int slot, boolean selected) voidsetPhantomInk(net.minecraft.world.item.ItemStack stack, boolean ink) Methods 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, 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
-
Field Details
-
type
public final net.minecraft.world.item.ArmorItem.Type type
-
-
Constructor Details
-
ManasteelArmorItem
public ManasteelArmorItem(net.minecraft.world.item.ArmorItem.Type type, net.minecraft.world.item.Item.Properties props) -
ManasteelArmorItem
public ManasteelArmorItem(net.minecraft.world.item.ArmorItem.Type type, net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> mat, net.minecraft.world.item.Item.Properties props)
-
-
Method Details
-
inventoryTick
public void inventoryTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity entity, int slot, boolean selected) - Overrides:
inventoryTickin classnet.minecraft.world.item.Item
-
damageItem
public <T extends net.minecraft.world.entity.LivingEntity> int damageItem(net.minecraft.world.item.ItemStack stack, int amount, @Nullable T entity, Consumer<net.minecraft.world.item.Item> breakCallback) - Specified by:
damageItemin interfaceCustomDamageItem
-
getManaPerDamage
protected int getManaPerDamage() -
getArmorTexture
public final net.minecraft.resources.ResourceLocation getArmorTexture(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.EquipmentSlot slot, net.minecraft.world.item.ArmorMaterial.Layer layer, boolean innerModel) -
getArmorTextureAfterInk
public net.minecraft.resources.ResourceLocation getArmorTextureAfterInk(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.EquipmentSlot slot) -
appendHoverText
public void appendHoverText(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext context, List<net.minecraft.network.chat.Component> list, net.minecraft.world.item.TooltipFlag flags) - Overrides:
appendHoverTextin classnet.minecraft.world.item.Item
-
addInformationAfterShift
public void addInformationAfterShift(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext context, List<net.minecraft.network.chat.Component> list, net.minecraft.world.item.TooltipFlag flags) -
getArmorSetStacks
public net.minecraft.world.item.ItemStack[] getArmorSetStacks() -
hasArmorSet
public boolean hasArmorSet(net.minecraft.world.entity.player.Player player) -
hasArmorSetItem
public boolean hasArmorSetItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.EquipmentSlot slot) -
getArmorSetName
public net.minecraft.network.chat.MutableComponent getArmorSetName() -
addArmorSetDescription
public void addArmorSetDescription(net.minecraft.world.item.ItemStack stack, List<net.minecraft.network.chat.Component> list) -
hasPhantomInk
public boolean hasPhantomInk(net.minecraft.world.item.ItemStack stack) - Specified by:
hasPhantomInkin interfacePhantomInkable
-
setPhantomInk
public void setPhantomInk(net.minecraft.world.item.ItemStack stack, boolean ink) - Specified by:
setPhantomInkin interfacePhantomInkable
-