public class ChoiceItem extends HeldItem
| Constructor and Description |
|---|
ChoiceItem(BattleStatsType choiceItemType)
Initializes a choice item.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyRepeatedEffect(PixelmonWrapper pokemon)
Triggers at the end of every turn.
|
void |
applySwitchInEffect(PixelmonWrapper pw)
Triggers when the holder switches in and when a Pokémon receives a held item in battle.
|
void |
applySwitchOutEffect(PixelmonWrapper pw)
Triggers when the holder switches out.
|
int[] |
modifyStats(PixelmonWrapper user,
int[] stats)
Modifies the Pokémon's stats at the beginning of a battle turn.
|
void |
onAttackUsed(PixelmonWrapper user,
Attack attack)
Triggers when the holder uses an attack.
|
adjustCritStage, affectMultiturnMove, allowsIncomingAttack, allowsIncomingAttackMessage, applyEffectAfterAllTargets, applyEffectInDaycare, applyEffectOnContact, applyPostSwitchEffect, applyRepeatedEffectAfterStatus, canEatBerry, canUseItem, dealtDamage, eatBerry, getEffectiveTypes, getHeldItemType, getItemHeld, hasNegativeEffect, interact, isBerry, isItemOfType, modifyDamageIncludeFixed, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyUser, modifyPriority, modifyWeight, onEndOfBattle, onGlobalStatusAdded, onMiss, onStartOfBattle, onStatDecrease, onStatIncrease, onStatModified, onStatusAdded, onTerrainSwitch, onWeatherSwitch, postProcessAttackUser, postProcessDamagingAttackTarget, postProcessDamagingAttackUser, preProcessDamagingAttackTarget, preProcessDamagingAttackUser, tookDamageappendHoverText, causeTempt, fillItemCategory, getLocalizedName, getTooltipText, getTooltipText, getUseAnimation, hideFromSearches, isBookEnchantable, isDrink, isEdible, isEnchantable, isFoil, isSearchable, setDrink, setHasEffect, setTempt, useFromBag, useFromBagallowdedIn, 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, verifyTagAfterLoadgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanApplyAtEnchantingTable, 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, showDurabilityBarpublic ChoiceItem(BattleStatsType choiceItemType)
choiceItemType - The type of choice item.public void onAttackUsed(PixelmonWrapper user, Attack attack)
HeldItemonAttackUsed in class HeldItemuser - The attack's user.attack - The attack.public void applySwitchInEffect(PixelmonWrapper pw)
HeldItemapplySwitchInEffect in class HeldItempw - The Pokémon switching in.public void applySwitchOutEffect(PixelmonWrapper pw)
HeldItemapplySwitchOutEffect in class HeldItempw - The Pokémon switching out.public int[] modifyStats(PixelmonWrapper user, int[] stats)
HeldItemmodifyStats in class HeldItemuser - The Pokémon.stats - The Pokémon's stats.public void applyRepeatedEffect(PixelmonWrapper pokemon)
HeldItemapplyRepeatedEffect in class HeldItempokemon - The holder.