public class BerryStatResponseItem extends BerryItem
Constructor and Description |
---|
BerryStatResponseItem(net.minecraft.item.Item.Properties properties,
EnumHeldItems type,
BerryType berry,
AttackCategory category,
BattleStatsType stat)
Initializes a Berry.
|
Modifier and Type | Method and Description |
---|---|
void |
eatBerry(PixelmonWrapper user)
Called within Berry classes after determining whether or not the Berry will be eaten.
|
void |
postProcessDamagingAttackTarget(PixelmonWrapper attacker,
PixelmonWrapper target,
Attack attack,
float damage)
Triggers after the holder is hit by a damaging attack.
|
getBerry, getPlaceSound, getPlant, getPlantType, getTooltipText, useOn
adjustCritStage, affectMultiturnMove, allowsIncomingAttack, allowsIncomingAttackMessage, applyEffectAfterAllTargets, applyEffectInDaycare, applyEffectOnContact, applyPostSwitchEffect, applyRepeatedEffect, applyRepeatedEffectAfterStatus, applySwitchInEffect, 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, postProcessDamagingAttackUser, preProcessDamagingAttackTarget, preProcessDamagingAttackUser, tookDamage
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 BerryStatResponseItem(net.minecraft.item.Item.Properties properties, EnumHeldItems type, BerryType berry, AttackCategory category, BattleStatsType stat)
type
- The Berry's type.berry
- The type of the berry (referenced off main berry enum)category
- The move category that triggers the Berry.stat
- The stat raised by the Berry.public void postProcessDamagingAttackTarget(PixelmonWrapper attacker, PixelmonWrapper target, Attack attack, float damage)
HeldItem
postProcessDamagingAttackTarget
in class HeldItem
attacker
- The attack's user.target
- The attack's target.attack
- The attack.damage
- The damage dealt.public void eatBerry(PixelmonWrapper user)
HeldItem