Interface ILookupInteractionListener

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 ILookupInteractionListener
  • Method Summary

    Modifier and Type
    Method
    Description
    lookup(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack heldStack, BlockEntityBotanyPot pot, PotInteraction found)
    This event listener is invoked when the game tries to lookup a pot interaction.
  • Method Details

    • lookup

      @Nullable PotInteraction lookup(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack heldStack, BlockEntityBotanyPot pot, PotInteraction found)
      This event listener is invoked when the game tries to lookup a pot interaction.
      Parameters:
      state - The state of the pot.
      level - The level the pot is in.
      pos - The position of the pot.
      player - The player performing the interaction.
      hand - The hand the player is using.
      heldStack - The item the player is using.
      pot - The pot being interacted with.
      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.