Package com.pixelmonmod.pixelmon.items
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.neoforged.neoforge.common.extensions.IItemExtension
- 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
,ItemFinderItem
,JuiceShoppeItem
,KeyItem
,LureCasingItem
,LureItem
,MaxSoupItem
,MedicineItem
,MintItem
,NectarItem
,NPCEditorItem
,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, net.minecraft.world.item.Item.TooltipContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer
Fields inherited from class net.minecraft.world.item.Item
ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, canRepair, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTH
Fields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
Constructor Summary
ConstructorsConstructorDescriptionPixelmonItem
(net.minecraft.world.item.Item.Properties properties) Initializes an item. -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendHoverText
(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext 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) boolean
isBookEnchantable
(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemStack book) boolean
isDrink()
boolean
isEdible()
boolean
isEnchantable
(net.minecraft.world.item.ItemStack stack) boolean
isFoil
(net.minecraft.world.item.ItemStack itemstack) boolean
setDrink()
setHasEffect
(boolean hasEffect) setTempt()
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, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getId, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getTooltipImage, getUseDuration, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isRepairable, isValidRepairItem, mineBlock, modifyDefaultComponentsFrom, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, requiredFeatures, toString, use, useOn, useOnRelease, verifyComponentsAfterLoad
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.neoforged.neoforge.common.extensions.IItemExtension
applyEnchantments, canBeHurtBy, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultAttributeModifiers, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, isPrimaryItemFor, makesPiglinsNeutral, onAnimalArmorTick, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onEntitySwing, onItemUseFirst, onLeftClickEntity, onStopUsing, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, supportsEnchantment
-
Field Details
-
bewlr
protected net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer bewlr
-
-
Constructor Details
-
PixelmonItem
public PixelmonItem(net.minecraft.world.item.Item.Properties properties) Initializes an item.
-
-
Method Details
-
setDrink
-
setTempt
-
isEdible
public boolean isEdible() -
isDrink
public boolean isDrink() -
setHasEffect
-
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
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 classnet.minecraft.world.item.Item
-
appendHoverText
public void appendHoverText(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext world, List<net.minecraft.network.chat.Component> tooltip, net.minecraft.world.item.TooltipFlag flagIn) - Overrides:
appendHoverText
in classnet.minecraft.world.item.Item
-
getTooltipText
-
getTooltipText
-
isEnchantable
public boolean isEnchantable(net.minecraft.world.item.ItemStack stack) - Overrides:
isEnchantable
in classnet.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 classnet.minecraft.world.item.Item
-
causeTempt
public boolean causeTempt() -
hideFromSearches
-
isSearchable
public boolean isSearchable()
-