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.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 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
ConstructorDescriptionPixelmonItem
(net.minecraft.world.item.Item.Properties properties) Initializes an item.PixelmonItem
(net.minecraft.world.item.Item.Properties properties, BEWLRCallable bewlr) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
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, 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
-
bewlr
-
-
Constructor Details
-
PixelmonItem
public PixelmonItem(net.minecraft.world.item.Item.Properties properties) Initializes an item. -
PixelmonItem
-
-
Method Details
-
setDrink
-
setTempt
-
isEdible
public boolean isEdible()- Overrides:
isEdible
in classnet.minecraft.world.item.Item
-
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, @Nullable net.minecraft.world.level.Level 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() -
initializeClient
public void initializeClient(Consumer<net.minecraftforge.client.extensions.common.IClientItemExtensions> consumer) - Overrides:
initializeClient
in classnet.minecraft.world.item.Item
-