Interface ILookupCropListener

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ILookupCropListener
  • Method Summary

    Modifier and Type
    Method
    Description
    lookup(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, BlockEntityBotanyPot pot, net.minecraft.world.item.ItemStack stack, Crop found)
    This event listener is invoked when the game tries to lookup a Crop.
  • Method Details

    • lookup

      @Nullable Crop lookup(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, BlockEntityBotanyPot pot, net.minecraft.world.item.ItemStack stack, @Nullable Crop found)
      This event listener is invoked when the game tries to lookup a Crop.
      Parameters:
      level - The level the pot is in.
      pos - The position of the pot.
      pot - The pot being used.
      stack - The item being used.
      found - The entry that would normally be used. A null value indicates that the entry could not normally be found.
      Returns:
      The new result for the lookup.