Interface IToolGrafter


public interface IToolGrafter
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    getSaplingModifier(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos)
    Called by leaves to determine the increase in sapling droprate.
  • Method Details

    • getSaplingModifier

      float getSaplingModifier(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos)
      Called by leaves to determine the increase in sapling droprate.
      Parameters:
      stack - ItemStack containing the grafter.
      world - Minecraft world the player and the target block inhabit.
      pos - Coordinate of the broken leaf block.
      Returns:
      Float representing the factor the usual drop chance is to be multiplied by.