Interface IFarmlandTrampleListener


public interface IFarmlandTrampleListener
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    apply(net.minecraft.world.entity.Entity trampler, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
    A neutral event listener that will be invoked when an entity tramples on farmland.
  • Method Details

    • apply

      boolean apply(net.minecraft.world.entity.Entity trampler, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
      A neutral event listener that will be invoked when an entity tramples on farmland.
      Parameters:
      trampler - The entity that trampled the farmland.
      pos - The position of the farmland.
      state - The farmland's blockstate.
      Returns:
      The cancel state of the listener. If true the farmland will not be trampled.