Class PixelmonItem

java.lang.Object
net.minecraft.world.item.Item
com.pixelmonmod.pixelmon.items.PixelmonItem
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, net.minecraftforge.common.extensions.IForgeItem
Direct Known Subclasses:
AbilityCapsuleItem, AbilityPatchItem, ApricornItem, AzureFluteItem, BadgeCaseItem, BadgeItem, BallBaseItem, BattleItem, BottlecapItem, CameraItem, ChiselItem, CookedApricornItem, CoveredFossilItem, CurryDexItem, CurryDishItem, CurryKeyItem, DayCareUpgradeItem, DynamaxCandyItem, EvolutionStoneItem, ExpAllItem, ExpCandyItem, FishingLogItem, FishingRodItem, FluteItem, FossilItem, GiftItem, GracideaItem, HeldItem, HMItem, IncenseBurnerItem, IncreaseEVItem, IsiHourglassItem, ItemFinderItem, JuiceShoppeItem, KeyItem, LureCasingItem, LureItem, MaxSoupItem, MedicineItem, MintItem, NectarItem, NPCEditorItem, OldPokeBallItem, OldPokeBallLidItem, PaintingItem, PokeBagItem, PokeBallItem, PokeBallLidItem, PokemonEditorItem, PPRestoreItem, PPUpItem, QuestEditorItem, QuestItem, RasLensItem, RepelItem, RubyItem, ScrollItem, ShardItem, SpawnGrottoItem, SpriteItem, SymbolItem, TechnicalMoveItem, TeleporterItem, TumblestoneItem, UIElementItem, ValuableItem, WailmerPailItem, ZygardeCubeItem

public class PixelmonItem extends net.minecraft.world.item.Item
An item introduced by Pixelmon.
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.item.Item

    net.minecraft.world.item.Item.Properties
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected BEWLRCallable
     

    Fields inherited from class net.minecraft.world.item.Item

    BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZE

    Fields inherited from interface net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    PixelmonItem(net.minecraft.world.item.Item.Properties properties)
    Initializes an item.
    PixelmonItem(net.minecraft.world.item.Item.Properties properties, BEWLRCallable bewlr)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    appendHoverText(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, List<net.minecraft.network.chat.Component> tooltip, net.minecraft.world.item.TooltipFlag flagIn)
     
    boolean
     
    Gets the localized name of the item.
     
    getTooltipText(net.minecraft.world.item.ItemStack stack)
     
    net.minecraft.world.item.UseAnim
    getUseAnimation(net.minecraft.world.item.ItemStack stack)
     
     
    void
    initializeClient(Consumer<net.minecraftforge.client.extensions.common.IClientItemExtensions> consumer)
     
    boolean
    isBookEnchantable(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemStack book)
     
    boolean
     
    boolean
     
    boolean
    isEnchantable(net.minecraft.world.item.ItemStack stack)
     
    boolean
    isFoil(net.minecraft.world.item.ItemStack itemstack)
     
    boolean
     
     
    setHasEffect(boolean hasEffect)
     
     
    boolean
    useFromBag(PixelmonWrapper pixelmonWrapper, PixelmonWrapper target, net.minecraft.world.item.ItemStack stack)
    Uses the item in battle.
    boolean
    useFromBag(PixelmonWrapper pixelmonWrapper, PixelmonWrapper target, net.minecraft.world.item.ItemStack stack, int additionalInfo)
    Uses the item in battle.

    Methods inherited from class net.minecraft.world.item.Item

    asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getRenderPropertiesInternal, getTooltipImage, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isFireResistant, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, use, useOn, useOnRelease, verifyTagAfterLoad

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.world.flag.FeatureElement

    isEnabled

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeItem

    canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultTooltipHideFlags, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getShareTag, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, initCapabilities, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onInventoryTick, onItemUseFirst, onLeftClickEntity, onStopUsing, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
  • Field Details

  • Constructor Details

    • PixelmonItem

      public PixelmonItem(net.minecraft.world.item.Item.Properties properties)
      Initializes an item.
    • PixelmonItem

      public PixelmonItem(net.minecraft.world.item.Item.Properties properties, BEWLRCallable bewlr)
  • Method Details

    • setDrink

      public PixelmonItem setDrink()
    • setTempt

      public PixelmonItem setTempt()
    • isEdible

      public boolean isEdible()
      Overrides:
      isEdible in class net.minecraft.world.item.Item
    • isDrink

      public boolean isDrink()
    • setHasEffect

      public PixelmonItem setHasEffect(boolean hasEffect)
    • useFromBag

      public boolean useFromBag(PixelmonWrapper pixelmonWrapper, PixelmonWrapper target, net.minecraft.world.item.ItemStack stack)
      Uses the item in battle.
      Parameters:
      pixelmonWrapper - 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.
      Returns:
      Whether to remove an instance of the item from the player's inventory.
    • useFromBag

      public boolean useFromBag(PixelmonWrapper pixelmonWrapper, PixelmonWrapper target, net.minecraft.world.item.ItemStack stack, int additionalInfo)
      Uses the item in battle.
      Parameters:
      pixelmonWrapper - 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.
      Returns:
      Whether to remove an instance of the item from the player's inventory.
    • getLocalizedName

      public String getLocalizedName()
      Gets the localized name of the item.
      Returns:
      The localized name of the item.
    • isFoil

      public boolean isFoil(net.minecraft.world.item.ItemStack itemstack)
      Overrides:
      isFoil in class net.minecraft.world.item.Item
    • appendHoverText

      public void appendHoverText(net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.world.level.Level world, List<net.minecraft.network.chat.Component> tooltip, net.minecraft.world.item.TooltipFlag flagIn)
      Overrides:
      appendHoverText in class net.minecraft.world.item.Item
    • getTooltipText

      public String getTooltipText(net.minecraft.world.item.ItemStack stack)
    • getTooltipText

      public String getTooltipText()
    • isEnchantable

      public boolean isEnchantable(net.minecraft.world.item.ItemStack stack)
      Overrides:
      isEnchantable in class net.minecraft.world.item.Item
    • isBookEnchantable

      public boolean isBookEnchantable(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemStack book)
    • getUseAnimation

      public net.minecraft.world.item.UseAnim getUseAnimation(net.minecraft.world.item.ItemStack stack)
      Overrides:
      getUseAnimation in class net.minecraft.world.item.Item
    • causeTempt

      public boolean causeTempt()
    • hideFromSearches

      public PixelmonItem hideFromSearches()
    • isSearchable

      public boolean isSearchable()
    • initializeClient

      public void initializeClient(Consumer<net.minecraftforge.client.extensions.common.IClientItemExtensions> consumer)
      Overrides:
      initializeClient in class net.minecraft.world.item.Item