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.neoforged.neoforge.common.extensions.IItemExtension, net.neoforged.neoforge.common.SpecialPlantable
Direct Known Subclasses:
BerryCustapItem, BerryEnigmaItem, BerryGinemaItem, BerryLeppaItem, BerryMicleItem, BerryRecoilItem, BerryRestoreHPItem, BerryStatIncreaseItem, BerryStatResponseItem, BerryStatusItem, BerryTypeReducingItem, DecreaseEVBerryItem

public class BerryItem extends HeldItem implements net.neoforged.neoforge.common.SpecialPlantable
  • 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)
    • canPlacePlantAtPosition

      public boolean canPlacePlantAtPosition(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.LevelReader levelReader, net.minecraft.core.BlockPos blockPos, @Nullable @Nullable net.minecraft.core.Direction direction)
      Specified by:
      canPlacePlantAtPosition in interface net.neoforged.neoforge.common.SpecialPlantable
    • spawnPlantAtPosition

      public void spawnPlantAtPosition(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.LevelAccessor levelAccessor, net.minecraft.core.BlockPos blockPos, @Nullable @Nullable net.minecraft.core.Direction direction)
      Specified by:
      spawnPlantAtPosition in interface net.neoforged.neoforge.common.SpecialPlantable
    • getBerry

      public BerryType getBerry()