Class MirrorHerbItem
java.lang.Object
net.minecraft.world.item.Item
com.pixelmonmod.pixelmon.items.PixelmonItem
com.pixelmonmod.pixelmon.items.HeldItem
com.pixelmonmod.pixelmon.items.heldItems.MirrorHerbItem
- All Implemented Interfaces:
ITranslatable,net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.ItemLike,net.minecraftforge.common.extensions.IForgeItem
Copies an opponent's stat increases once.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.Item
net.minecraft.world.item.Item.Properties -
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.items.PixelmonItem
bewlrFields inherited from class net.minecraft.world.item.Item
BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZEFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyEffectInDaycare(Pokemon pokemon, Pokemon partner) Triggers when a Pokémon is put in a daycare with another Pokémon.voidonStatIncrease(PixelmonWrapper pw, PixelmonWrapper affected, int amount, BattleStatsType stat) Triggers when a Pokémon's stat is increased.voidonStatModified(PixelmonWrapper holder, PixelmonWrapper affected) Triggers when a Pokémon's stats are modified.Methods inherited from class com.pixelmonmod.pixelmon.items.HeldItem
adjustCritStage, affectMultiturnMove, allowsIncomingAttack, allowsIncomingAttackMessage, allowsStatChange, applyEffectAfterAllMoveEffects, applyEffectAfterAllTargets, 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, onEndOfBattle, onGlobalStatusAdded, onMiss, onStartOfBattle, onStatDecrease, onStatusAdded, onTerrainSwitch, onWeatherSwitch, postProcessAttackUser, postProcessDamagingAttackTarget, postProcessDamagingAttackUser, preProcessDamagingAttackTarget, preProcessDamagingAttackUser, tookDamageMethods inherited from class com.pixelmonmod.pixelmon.items.PixelmonItem
appendHoverText, causeTempt, getTooltipText, getTooltipText, getUseAnimation, hideFromSearches, initializeClient, isBookEnchantable, isDrink, isEdible, isEnchantable, isFoil, isSearchable, setDrink, setHasEffect, setTempt, useFromBag, useFromBagMethods inherited from class net.minecraft.world.item.Item
asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getRenderPropertiesInternal, getTooltipImage, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isFireResistant, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, use, useOn, useOnRelease, verifyTagAfterLoadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface net.minecraftforge.common.extensions.IForgeItem
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultTooltipHideFlags, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getShareTag, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, initCapabilities, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onInventoryTick, onItemUseFirst, onLeftClickEntity, onStopUsing, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimationMethods inherited from interface com.pixelmonmod.pixelmon.api.util.ITranslatable
getTranslatedName
-
Constructor Details
-
MirrorHerbItem
public MirrorHerbItem()Initializes the held item.
-
-
Method Details
-
onStatIncrease
public void onStatIncrease(PixelmonWrapper pw, PixelmonWrapper affected, int amount, BattleStatsType stat) Description copied from class:HeldItemTriggers when a Pokémon's stat is increased.- Overrides:
onStatIncreasein classHeldItem- Parameters:
pw- The Pokémon whose item it is.affected- The Pokémon whose stat was increased.amount- The size of the increase.stat- The stat that was increased.
-
onStatModified
Description copied from class:HeldItemTriggers when a Pokémon's stats are modified.- Overrides:
onStatModifiedin classHeldItem- Parameters:
holder- The Pokémon holding the item.affected- The Pokémon whose stats were just modified.
-
applyEffectInDaycare
Description copied from class:HeldItemTriggers when a Pokémon is put in a daycare with another Pokémon.- Overrides:
applyEffectInDaycarein classHeldItem- Parameters:
pokemon- The holder.partner- The holder's partner in the daycare.
-