Class BerryItem

java.lang.Object
net.minecraft.world.item.Item
All Implemented Interfaces:
ITranslatable, net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, net.minecraftforge.common.extensions.IForgeItem, net.minecraftforge.common.IPlantable
Direct Known Subclasses:
BerryCustapItem, BerryEnigmaItem, BerryGinemaItem, BerryLeppaItem, BerryMicleItem, BerryRecoilItem, BerryRestoreHPItem, BerryStatIncreaseItem, BerryStatResponseItem, BerryStatusItem, BerryTypeReducingItem, DecreaseEVBerryItem

public class BerryItem extends HeldItem implements net.minecraftforge.common.IPlantable
  • Constructor Details

    • BerryItem

      public BerryItem(net.minecraft.world.item.Item.Properties properties, EnumHeldItems heldItemType, BerryType berry)
  • Method Details

    • getTooltipText

      public String getTooltipText()
      Overrides:
      getTooltipText in class PixelmonItem
    • useOn

      public net.minecraft.world.InteractionResult useOn(net.minecraft.world.item.context.UseOnContext context)
      Overrides:
      useOn in class net.minecraft.world.item.Item
    • getPlaceSound

      protected net.minecraft.sounds.SoundEvent getPlaceSound(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player entity)
    • getPlantType

      public net.minecraftforge.common.PlantType getPlantType(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos)
      Specified by:
      getPlantType in interface net.minecraftforge.common.IPlantable
    • getPlant

      public net.minecraft.world.level.block.state.BlockState getPlant(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos)
      Specified by:
      getPlant in interface net.minecraftforge.common.IPlantable
    • getBerry

      public BerryType getBerry()