public class PixelmonItem
extends net.minecraft.item.Item
| Constructor and Description |
|---|
PixelmonItem(net.minecraft.item.Item.Properties properties)
Initializes an item.
|
| 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) |
boolean |
causeTempt() |
void |
fillItemCategory(net.minecraft.item.ItemGroup group,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items) |
java.lang.String |
getLocalizedName()
Gets the localized name of the item.
|
java.lang.String |
getTooltipText() |
java.lang.String |
getTooltipText(net.minecraft.item.ItemStack stack) |
net.minecraft.item.UseAction |
getUseAnimation(net.minecraft.item.ItemStack stack) |
PixelmonItem |
hideFromSearches() |
boolean |
isBookEnchantable(net.minecraft.item.ItemStack stack,
net.minecraft.item.ItemStack book) |
boolean |
isDrink() |
boolean |
isEdible() |
boolean |
isEnchantable(net.minecraft.item.ItemStack stack) |
boolean |
isFoil(net.minecraft.item.ItemStack itemstack) |
boolean |
isSearchable() |
PixelmonItem |
setDrink() |
PixelmonItem |
setHasEffect(boolean hasEffect) |
PixelmonItem |
setTempt() |
boolean |
useFromBag(PixelmonWrapper pixelmonWrapper,
PixelmonWrapper target,
net.minecraft.item.ItemStack stack)
Uses the item in battle.
|
boolean |
useFromBag(PixelmonWrapper pixelmonWrapper,
PixelmonWrapper target,
net.minecraft.item.ItemStack stack,
int additionalInfo)
Uses the item in battle.
|
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, 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, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBarpublic PixelmonItem(net.minecraft.item.Item.Properties properties)
public PixelmonItem setDrink()
public PixelmonItem setTempt()
public boolean isEdible()
isEdible in class net.minecraft.item.Itempublic boolean isDrink()
public PixelmonItem setHasEffect(boolean hasEffect)
public boolean useFromBag(PixelmonWrapper pixelmonWrapper, PixelmonWrapper target, net.minecraft.item.ItemStack stack)
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.public boolean useFromBag(PixelmonWrapper pixelmonWrapper, PixelmonWrapper target, net.minecraft.item.ItemStack stack, int additionalInfo)
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.public java.lang.String getLocalizedName()
public boolean isFoil(net.minecraft.item.ItemStack itemstack)
isFoil in class net.minecraft.item.Itempublic 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 net.minecraft.item.Itempublic java.lang.String getTooltipText(net.minecraft.item.ItemStack stack)
public java.lang.String getTooltipText()
public boolean isEnchantable(net.minecraft.item.ItemStack stack)
isEnchantable in class net.minecraft.item.Itempublic boolean isBookEnchantable(net.minecraft.item.ItemStack stack,
net.minecraft.item.ItemStack book)
public net.minecraft.item.UseAction getUseAnimation(net.minecraft.item.ItemStack stack)
getUseAnimation in class net.minecraft.item.Itempublic boolean causeTempt()
public PixelmonItem hideFromSearches()
public boolean isSearchable()
public void fillItemCategory(net.minecraft.item.ItemGroup group,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items)
fillItemCategory in class net.minecraft.item.Item