Class LifeOrbItem
java.lang.Object
net.minecraft.world.item.Item
com.pixelmonmod.pixelmon.items.PixelmonItem
com.pixelmonmod.pixelmon.items.HeldItem
com.pixelmonmod.pixelmon.items.heldItems.LifeOrbItem
- All Implemented Interfaces:
- ITranslatable,- net.minecraft.world.flag.FeatureElement,- net.minecraft.world.level.ItemLike,- net.neoforged.neoforge.common.extensions.IItemExtension
Increases move power by 30% but deals 10% hp in damage whenever an offensive move is used.
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.item.Itemnet.minecraft.world.item.Item.Properties, net.minecraft.world.item.Item.TooltipContext
- 
Field SummaryFields inherited from class com.pixelmonmod.pixelmon.items.PixelmonItembewlrFields inherited from class net.minecraft.world.item.ItemABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, canRepair, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTHFields inherited from interface net.minecraft.world.flag.FeatureElementFILTERED_REGISTRIES
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidapplyEffectAfterAllTargets(PixelmonWrapper attacker) Triggers after a Pokémon attacks all of its targets.voidpostProcessAttackUser(PixelmonWrapper attacker, PixelmonWrapper target, Attack attack) Triggers after the holder uses an attack.doublepreProcessDamagingAttackUser(PixelmonWrapper attacker, PixelmonWrapper target, Attack attack, double damage) Triggers before the holder uses a damaging attack.Methods inherited from class com.pixelmonmod.pixelmon.items.HeldItemadjustCritStage, affectMultiturnMove, allowsIncomingAttack, allowsIncomingAttackMessage, allowsStatChange, applyEffectAfterAllMoveEffects, applyEffectInDaycare, applyEffectOnContact, applyPostSwitchEffect, applyRepeatedEffect, applyRepeatedEffectAfterStatus, applyStartOfTurnEffect, applySwitchInEffect, applySwitchOutEffect, canEatBerry, canUseItem, dealtDamage, eatBerry, getHeldItemType, getItemHeld, getLocalizedName, getTranslationKey, hasNegativeEffect, ignoresKlutz, interact, isBerry, isItemOfType, modifyConfusionDamage, modifyDamageIncludeFixed, modifyEffectiveTypes, modifyMoveEffectChanceTarget, modifyMoveEffectChanceUser, modifyMoveEffects, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyUser, modifyPriority, modifyStats, modifyWeight, onAttackUsed, onChargingUpAttack, onEndOfBattle, onGlobalStatusAdded, onGlobalStatusRemoved, onItemLost, onMiss, onStartOfBattle, onStatDecrease, onStatIncrease, onStatModified, onStatusAdded, onStatusRemoved, onTerrainSwitch, onWeatherSwitch, postProcessDamagingAttackSubstitute, postProcessDamagingAttackTarget, postProcessDamagingAttackUser, preProcessDamagingAttackTarget, preventsEffectsOfWeather, tookDamageMethods inherited from class com.pixelmonmod.pixelmon.items.PixelmonItemappendHoverText, causeTempt, getTooltipText, getTooltipText, getUseAnimation, hideFromSearches, isBookEnchantable, isDrink, isEdible, isEnchantable, isFoil, isSearchable, setDrink, setHasEffect, setTempt, useFromBag, useFromBagMethods inherited from class net.minecraft.world.item.ItemasItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getId, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getTooltipImage, getUseDuration, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isRepairable, isValidRepairItem, mineBlock, modifyDefaultComponentsFrom, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, requiredFeatures, toString, use, useOn, useOnRelease, verifyComponentsAfterLoadMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElementisEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IItemExtensionapplyEnchantments, canBeHurtBy, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultAttributeModifiers, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, isPrimaryItemFor, makesPiglinsNeutral, onAnimalArmorTick, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onEntitySwing, onItemUseFirst, onLeftClickEntity, onStopUsing, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, supportsEnchantmentMethods inherited from interface com.pixelmonmod.pixelmon.api.util.ITranslatablegetTranslatedName
- 
Constructor Details- 
LifeOrbItempublic LifeOrbItem()Initializes the held item.
 
- 
- 
Method Details- 
preProcessDamagingAttackUserpublic double preProcessDamagingAttackUser(PixelmonWrapper attacker, PixelmonWrapper target, Attack attack, double damage) Description copied from class:HeldItemTriggers before the holder uses a damaging attack.- Overrides:
- preProcessDamagingAttackUserin class- HeldItem
- Parameters:
- attacker- The attack's user.
- target- The attack's target.
- attack- The attack.
- damage- The damage to be dealt.
- Returns:
- The modified damage.
 
- 
postProcessAttackUserDescription copied from class:HeldItemTriggers after the holder uses an attack.- Overrides:
- postProcessAttackUserin class- HeldItem
- Parameters:
- attacker- The attack's user.
- target- The attack's target.
- attack- The attack.
 
- 
applyEffectAfterAllTargetsDescription copied from class:HeldItemTriggers after a Pokémon attacks all of its targets.- Overrides:
- applyEffectAfterAllTargetsin class- HeldItem
- Parameters:
- attacker- The move's user.
 
 
-