public class BerryItem extends HeldItem implements net.minecraftforge.common.IPlantable
| Constructor and Description |
|---|
BerryItem(net.minecraft.item.Item.Properties properties,
EnumHeldItems heldItemType,
BerryType berry) |
| Modifier and Type | Method and Description |
|---|---|
BerryType |
getBerry() |
protected net.minecraft.util.SoundEvent |
getPlaceSound(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity entity) |
net.minecraft.block.BlockState |
getPlant(net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos) |
net.minecraftforge.common.PlantType |
getPlantType(net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos) |
java.lang.String |
getTooltipText() |
net.minecraft.util.ActionResultType |
useOn(net.minecraft.item.ItemUseContext context) |
adjustCritStage, affectMultiturnMove, allowsIncomingAttack, allowsIncomingAttackMessage, applyEffectAfterAllTargets, applyEffectInDaycare, applyEffectOnContact, applyPostSwitchEffect, applyRepeatedEffect, applyRepeatedEffectAfterStatus, applySwitchInEffect, applySwitchOutEffect, canEatBerry, canUseItem, dealtDamage, eatBerry, getEffectiveTypes, getHeldItemType, getItemHeld, hasNegativeEffect, interact, isBerry, isItemOfType, modifyDamageIncludeFixed, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyUser, modifyPriority, modifyStats, modifyWeight, onAttackUsed, onEndOfBattle, onGlobalStatusAdded, onMiss, onStartOfBattle, onStatDecrease, onStatIncrease, onStatModified, onStatusAdded, onTerrainSwitch, onWeatherSwitch, postProcessAttackUser, postProcessDamagingAttackTarget, postProcessDamagingAttackUser, preProcessDamagingAttackTarget, preProcessDamagingAttackUser, tookDamageappendHoverText, causeTempt, fillItemCategory, getLocalizedName, getTooltipText, getUseAnimation, hideFromSearches, isBookEnchantable, isDrink, isEdible, isEnchantable, isFoil, isSearchable, setDrink, setHasEffect, setTempt, useFromBag, useFromBagallowdedIn, 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, 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 BerryItem(net.minecraft.item.Item.Properties properties,
EnumHeldItems heldItemType,
BerryType berry)
public java.lang.String getTooltipText()
getTooltipText in class PixelmonItempublic net.minecraft.util.ActionResultType useOn(net.minecraft.item.ItemUseContext context)
useOn in class net.minecraft.item.Itemprotected net.minecraft.util.SoundEvent getPlaceSound(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity entity)
public net.minecraftforge.common.PlantType getPlantType(net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos)
getPlantType in interface net.minecraftforge.common.IPlantablepublic net.minecraft.block.BlockState getPlant(net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos)
getPlant in interface net.minecraftforge.common.IPlantablepublic BerryType getBerry()