public class PokeBallItem extends PixelmonItem implements PokeBallPart
Constructor and Description |
---|
PokeBallItem()
Initializes the Poké Ball item's attributes.
|
Modifier and Type | Method and Description |
---|---|
void |
appendHoverText(net.minecraft.item.ItemStack stack,
net.minecraft.world.World world,
java.util.List<net.minecraft.util.text.ITextComponent> tooltip,
net.minecraft.client.util.ITooltipFlag flagIn) |
void |
fillItemCategory(net.minecraft.item.ItemGroup p_150895_1_,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items) |
net.minecraft.util.text.ITextComponent |
getName(net.minecraft.item.ItemStack stack) |
java.lang.String |
getTooltipText(net.minecraft.item.ItemStack stack) |
java.lang.String |
getTooltipText(java.lang.String key) |
void |
inventoryTick(net.minecraft.item.ItemStack stack,
net.minecraft.world.World world,
net.minecraft.entity.Entity entity,
int slot,
boolean selected) |
static net.minecraft.item.ItemStack |
of(PokeBall pokeBall) |
static net.minecraft.item.ItemStack |
of(PokeBall pokeBall,
int count) |
net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> |
use(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity entityPlayer,
net.minecraft.util.Hand handIn) |
boolean |
useFromBag(PixelmonWrapper userWrapper,
PixelmonWrapper targetWrapper,
net.minecraft.item.ItemStack stack)
Uses the item in battle.
|
causeTempt, getLocalizedName, getTooltipText, getUseAnimation, hideFromSearches, isBookEnchantable, isDrink, isEdible, isEnchantable, isFoil, isSearchable, setDrink, setHasEffect, setTempt, 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, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTags, getToolTypes, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, is, isComplex, isCorrectToolForDrops, isFireResistant, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onUseTick, releaseUsing, shouldOverrideMultiplayerNbt, toString, useOn, useOnRelease, verifyTagAfterLoad
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPokeBall
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 static net.minecraft.item.ItemStack of(PokeBall pokeBall)
public static net.minecraft.item.ItemStack of(PokeBall pokeBall, int count)
public net.minecraft.util.text.ITextComponent getName(net.minecraft.item.ItemStack stack)
getName
in class net.minecraft.item.Item
public net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> use(net.minecraft.world.World world, net.minecraft.entity.player.PlayerEntity entityPlayer, net.minecraft.util.Hand handIn)
use
in class net.minecraft.item.Item
public boolean useFromBag(PixelmonWrapper userWrapper, PixelmonWrapper targetWrapper, net.minecraft.item.ItemStack stack)
PixelmonItem
useFromBag
in class PixelmonItem
userWrapper
- 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 java.lang.String getTooltipText(net.minecraft.item.ItemStack stack)
getTooltipText
in class PixelmonItem
public java.lang.String getTooltipText(java.lang.String key)
public void appendHoverText(net.minecraft.item.ItemStack stack, @Nullable net.minecraft.world.World world, java.util.List<net.minecraft.util.text.ITextComponent> tooltip, net.minecraft.client.util.ITooltipFlag flagIn)
appendHoverText
in class PixelmonItem
public void fillItemCategory(net.minecraft.item.ItemGroup p_150895_1_, net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items)
fillItemCategory
in class PixelmonItem
public void inventoryTick(net.minecraft.item.ItemStack stack, net.minecraft.world.World world, net.minecraft.entity.Entity entity, int slot, boolean selected)
inventoryTick
in class net.minecraft.item.Item