Class AirBalloonItem
java.lang.Object
net.minecraft.world.item.Item
com.pixelmonmod.pixelmon.items.PixelmonItem
com.pixelmonmod.pixelmon.items.HeldItem
com.pixelmonmod.pixelmon.items.heldItems.AirBalloonItem
- All Implemented Interfaces:
ITranslatable,net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.ItemLike,net.neoforged.neoforge.common.extensions.IItemExtension
Prevents Ground-type moves from hitting the Pokémon. Pops if another move hits the Pokémon.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.Item
net.minecraft.world.item.Item.Properties, net.minecraft.world.item.Item.TooltipContext -
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.items.PixelmonItem
bewlrFields inherited from class net.minecraft.world.item.Item
ABSOLUTE_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.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallowsIncomingAttack(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a) Determines whether the holder can be hit by an incoming attack.voidapplySwitchInEffect(PixelmonWrapper newPokemon) Triggers when the holder switches in and when a Pokémon receives a held item in battle.voidpostProcessDamagingAttackSubstitute(PixelmonWrapper attacker, PixelmonWrapper holder, Attack attack, float damage) Triggers after the holder's Substitute is hit by a damaging attack.voidpostProcessDamagingAttackTarget(PixelmonWrapper attacker, PixelmonWrapper holder, Attack attack, float damage, DamageTypeEnum damageType) Triggers after the holder is hit by a damaging attack.Methods inherited from class com.pixelmonmod.pixelmon.items.HeldItem
adjustCritStage, affectMultiturnMove, allowsIncomingAttackMessage, allowsStatChange, applyEffectAfterAllMoveEffects, applyEffectAfterAllTargets, applyEffectInDaycare, applyEffectOnContact, applyPostSwitchEffect, applyRepeatedEffect, applyRepeatedEffectAfterStatus, applyStartOfTurnEffect, 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, postProcessAttackUser, postProcessDamagingAttackUser, preProcessDamagingAttackTarget, preProcessDamagingAttackUser, preventsEffectsOfWeather, tookDamageMethods inherited from class com.pixelmonmod.pixelmon.items.PixelmonItem
appendHoverText, causeTempt, getTooltipText, getTooltipText, getUseAnimation, hideFromSearches, isBookEnchantable, isDrink, isEdible, isEnchantable, isFoil, isSearchable, setDrink, setHasEffect, setTempt, useFromBag, useFromBagMethods inherited from class net.minecraft.world.item.Item
asItem, 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IItemExtension
applyEnchantments, 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.ITranslatable
getTranslatedName
-
Constructor Details
-
AirBalloonItem
public AirBalloonItem()Initializes the held item.
-
-
Method Details
-
applySwitchInEffect
Description copied from class:HeldItemTriggers when the holder switches in and when a Pokémon receives a held item in battle.- Overrides:
applySwitchInEffectin classHeldItem- Parameters:
newPokemon- The Pokémon switching in.
-
allowsIncomingAttack
Description copied from class:HeldItemDetermines whether the holder can be hit by an incoming attack.- Overrides:
allowsIncomingAttackin classHeldItem- Parameters:
pokemon- The holder.user- The attack's user.a- The attack.- Returns:
- Whether the attack can hit the holder.
-
postProcessDamagingAttackTarget
public void postProcessDamagingAttackTarget(PixelmonWrapper attacker, PixelmonWrapper holder, Attack attack, float damage, DamageTypeEnum damageType) Description copied from class:HeldItemTriggers after the holder is hit by a damaging attack.- Overrides:
postProcessDamagingAttackTargetin classHeldItem- Parameters:
attacker- The attack's user.holder- The attack's target.attack- The attack.damage- The damage dealt.damageType- The type of damage dealt.
-
postProcessDamagingAttackSubstitute
public void postProcessDamagingAttackSubstitute(PixelmonWrapper attacker, PixelmonWrapper holder, Attack attack, float damage) Description copied from class:HeldItemTriggers after the holder's Substitute is hit by a damaging attack.- Overrides:
postProcessDamagingAttackSubstitutein classHeldItem- Parameters:
attacker- The attack's user.holder- The attack's target.attack- The attack.damage- The damage dealt.
-