public class LifeOrbItem extends HeldItem
Constructor and Description |
---|
LifeOrbItem()
Initializes the held item.
|
Modifier and Type | Method and Description |
---|---|
void |
applyEffectAfterAllTargets(PixelmonWrapper attacker)
Triggers after a Pokemon attacks all of its targets.
|
void |
dealtDamage(PixelmonWrapper attacker,
PixelmonWrapper defender,
Attack attack,
DamageTypeEnum damageType)
Triggers when the holder deals damage.
|
double |
preProcessDamagingAttackUser(PixelmonWrapper attacker,
PixelmonWrapper target,
Attack attack,
double damage)
Triggers before the holder uses a damaging attack.
|
adjustCritStage, affectMultiturnMove, allowsIncomingAttack, allowsIncomingAttackMessage, applyEffectInDaycare, applyEffectOnContact, applyPostSwitchEffect, applyRepeatedEffect, applyRepeatedEffectAfterStatus, applySwitchInEffect, applySwitchOutEffect, canEatBerry, canUseItem, eatBerry, getEffectiveTypes, getHeldItemType, getItemHeld, hasNegativeEffect, interact, isBerry, isItemOfType, modifyDamageIncludeFixed, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyUser, modifyPriority, modifyStats, modifyWeight, onAttackUsed, onEndOfBattle, onGlobalStatusAdded, onMiss, onStartOfBattle, onStatDecrease, onStatIncrease, onStatModified, onStatusAdded, onTerrainSwitch, onWeatherSwitch, postProcessAttackUser, postProcessDamagingAttackTarget, postProcessDamagingAttackUser, preProcessDamagingAttackTarget, tookDamage
appendHoverText, causeTempt, fillItemCategory, getLocalizedName, getTooltipText, getTooltipText, getUseAnimation, hideFromSearches, isBookEnchantable, isDrink, isEdible, isEnchantable, isFoil, isSearchable, setDrink, setHasEffect, setTempt, useFromBag, useFromBag
allowdedIn, asItem, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, finishUsingItem, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getHarvestLevel, getId, getItemCategory, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTags, getToolTypes, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, is, isComplex, isCorrectToolForDrops, isFireResistant, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onUseTick, releaseUsing, shouldOverrideMultiplayerNbt, toString, use, 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, getArmorTexture, getAttributeModifiers, getBurnTime, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBar
public double preProcessDamagingAttackUser(PixelmonWrapper attacker, PixelmonWrapper target, Attack attack, double damage)
HeldItem
preProcessDamagingAttackUser
in class HeldItem
attacker
- The attack's user.target
- The attack's target.attack
- The attack.damage
- The damage to be dealt.public void dealtDamage(PixelmonWrapper attacker, PixelmonWrapper defender, Attack attack, DamageTypeEnum damageType)
HeldItem
dealtDamage
in class HeldItem
attacker
- The source of the damage.defender
- The target of the damage.attack
- The attack used by the attacker.damageType
- The type of damage that was dealt.public void applyEffectAfterAllTargets(PixelmonWrapper attacker)
HeldItem
applyEffectAfterAllTargets
in class HeldItem
attacker
- The move's user.