Package net.darkhax.botanypots.events
Interface ILookupFertilizerListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionlookup(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, Fertilizer found) This event listener is invoked when the game tries to lookup a fertilizer.
-
Method Details
-
lookup
@Nullable Fertilizer 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, Fertilizer found) This event listener is invoked when the game tries to lookup a fertilizer.- 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.
-