public abstract class MedicineItem extends PixelmonItem
| Constructor and Description |
|---|
MedicineItem(IMedicine... healMethods)
Initializes the item.
|
| Modifier and Type | Method and Description |
|---|---|
MedicineItem |
setFriendshipDecrease(int normal,
int high)
Sets the amount of friendship lost after the item is used.
|
net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> |
use(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity playerIn,
net.minecraft.util.Hand hand) |
boolean |
useFromBag(PixelmonWrapper pixelmonWrapper,
PixelmonWrapper target,
net.minecraft.item.ItemStack stack,
int additionalInfo)
Uses the item in battle.
|
boolean |
useMedicine(PokemonLink target,
int additionalInfo)
Uses the medicine on a Pokémon.
|
appendHoverText, causeTempt, fillItemCategory, getLocalizedName, getTooltipText, getTooltipText, getUseAnimation, hideFromSearches, isBookEnchantable, isDrink, isEdible, isEnchantable, isFoil, isSearchable, setDrink, setHasEffect, setTempt, 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, 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 MedicineItem(IMedicine... healMethods)
healMethods - Ways that the medicine heals the Pokémon.public MedicineItem setFriendshipDecrease(int normal, int high)
normal - The amount of friendship lost after item use if the Pokémon has less than 200 friendship.high - The amount of friendship lost after item use if the Pokémon has 200+ friendship.public boolean useFromBag(PixelmonWrapper pixelmonWrapper, PixelmonWrapper target, net.minecraft.item.ItemStack stack, int additionalInfo)
PixelmonItemuseFromBag in class PixelmonItempixelmonWrapper - The Pokémon whose turn is being spent using the item.target - The Pokémon the item is being used on.stack - The item stack used.additionalInfo - An integer value that may be used while using the item.public boolean useMedicine(PokemonLink target, int additionalInfo)
target - additionalInfo - public net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> use(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity playerIn,
net.minecraft.util.Hand hand)
use in class net.minecraft.item.Item