public class BerryStatIncreaseItem extends BerryItem
Constructor and Description |
---|
BerryStatIncreaseItem(net.minecraft.item.Item.Properties properties,
BerryType berry,
BattleStatsType stat)
Initializes the Berry.
|
Modifier and Type | Method and Description |
---|---|
void |
applyRepeatedEffect(PixelmonWrapper pw)
Triggers at the end of every turn.
|
void |
applySwitchInEffect(PixelmonWrapper newPokemon)
Triggers when the holder switches in and when a Pokémon receives a held item in battle.
|
void |
eatBerry(PixelmonWrapper pokemon)
Called within Berry classes after determining whether or not the Berry will be eaten.
|
void |
tookDamage(PixelmonWrapper attacker,
PixelmonWrapper defender,
float damage,
DamageTypeEnum damageType)
Triggers when the holder takes damage.
|
getBerry, getPlaceSound, getPlant, getPlantType, getTooltipText, useOn
adjustCritStage, affectMultiturnMove, allowsIncomingAttack, allowsIncomingAttackMessage, applyEffectAfterAllTargets, applyEffectInDaycare, applyEffectOnContact, applyPostSwitchEffect, applyRepeatedEffectAfterStatus, applySwitchOutEffect, canEatBerry, canUseItem, dealtDamage, 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, preProcessDamagingAttackUser
appendHoverText, causeTempt, fillItemCategory, getLocalizedName, 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, 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 BerryStatIncreaseItem(net.minecraft.item.Item.Properties properties, BerryType berry, BattleStatsType stat)
berry
- The type of the Berry (referenced off main Berry enum).stat
- The stat increased by the Berry.public void tookDamage(PixelmonWrapper attacker, PixelmonWrapper defender, float damage, DamageTypeEnum damageType)
HeldItem
tookDamage
in class HeldItem
attacker
- The source of the damage.defender
- The target of the damage.damage
- The damage dealt.damageType
- The type of damage that was dealt.public void applySwitchInEffect(PixelmonWrapper newPokemon)
HeldItem
applySwitchInEffect
in class HeldItem
newPokemon
- The Pokémon switching in.public void applyRepeatedEffect(PixelmonWrapper pw)
HeldItem
applyRepeatedEffect
in class HeldItem
pw
- The holder.public void eatBerry(PixelmonWrapper pokemon)
HeldItem