Package net.darkhax.botanypots.events
Interface ILookupSoilListener
- 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.Level level, net.minecraft.core.BlockPos pos, BlockEntityBotanyPot pot, net.minecraft.world.item.ItemStack stack, Soil found) This event listener is invoked when the game tries to lookup a Soil.
-
Method Details
-
lookup
@Nullable Soil lookup(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, BlockEntityBotanyPot pot, net.minecraft.world.item.ItemStack stack, @Nullable Soil found) This event listener is invoked when the game tries to lookup a Soil.- 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.
-