public abstract class PPRestoreItem extends PixelmonItem
Modifier and Type | Field and Description |
---|---|
protected boolean |
allPP
Whether the item heals all PP.
|
Constructor and Description |
---|
PPRestoreItem(boolean allPP)
Initializes a PP-restoring item.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getMessage(boolean success)
Gets a message based on whether the item was used successfully.
|
static boolean |
restorePP(PokemonLink userPokemon,
Attack m,
int pp,
boolean allPP)
Restores a move's PP.
|
static boolean |
restorePP(PokemonLink userPokemon,
int moveIndex,
boolean allPP)
Restores a move's PP.
|
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 PPRestoreItem(boolean allPP)
allPP
- Whether the item heals all PP.public static boolean restorePP(PokemonLink userPokemon, int moveIndex, boolean allPP)
userPokemon
- The Pokémon using the item.moveIndex
- The index of the move being restored.allPP
- Whether the item heals all PP.public static boolean restorePP(PokemonLink userPokemon, Attack m, int pp, boolean allPP)
userPokemon
- The Pokémon using the item.m
- The move being restored.allPP
- Whether to restore all PP (true) or 10 PP (false).protected java.lang.String getMessage(boolean success)
success
- Whether the item was used successfully.