public class BattleItem extends PixelmonItem
| Modifier and Type | Field and Description |
|---|---|
BattleItem |
type
The battle item's type.
|
| Constructor and Description |
|---|
BattleItem(BattleItem type)
Initializes a battle item.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(PixelmonWrapper pxm)
Uses the battle item.
|
net.minecraft.util.ActionResultType |
onItemUseFirst(net.minecraft.item.ItemStack stack,
net.minecraft.item.ItemUseContext context) |
boolean |
useFromBag(PixelmonWrapper userWrapper,
PixelmonWrapper targetWrapper,
net.minecraft.item.ItemStack stack)
Uses the item in battle.
|
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, use, 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, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBarpublic BattleItem type
public BattleItem(BattleItem type)
type - The battle item's type.public boolean execute(PixelmonWrapper pxm)
pxm - The Pokémon that the battle item is to be used on.public boolean useFromBag(PixelmonWrapper userWrapper, PixelmonWrapper targetWrapper, net.minecraft.item.ItemStack stack)
PixelmonItemuseFromBag in class PixelmonItemuserWrapper - The Pokémon whose turn is being spent using the item.targetWrapper - The Pokémon the item is being used on.stack - The item stack used.public net.minecraft.util.ActionResultType onItemUseFirst(net.minecraft.item.ItemStack stack,
net.minecraft.item.ItemUseContext context)