Class TreeCutter

java.lang.Object
com.simibubi.create.foundation.utility.TreeCutter

public class TreeCutter extends Object
  • Field Details

  • Constructor Details

    • TreeCutter

      public TreeCutter()
  • Method Details

    • canDynamicTreeCutFrom

      public static boolean canDynamicTreeCutFrom(net.minecraft.world.level.block.Block startBlock)
    • findDynamicTree

      @Nonnull public static Optional<AbstractBlockBreakQueue> findDynamicTree(net.minecraft.world.level.block.Block startBlock, net.minecraft.core.BlockPos pos)
    • findTree

      @Nonnull public static TreeCutter.Tree findTree(@Nullable net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos pos)
      Finds a tree at the given pos. Block at the position should be air
      Parameters:
      reader -
      pos -
      Returns:
      null if not found or not fully cut
    • isChorus

      public static boolean isChorus(net.minecraft.world.level.block.state.BlockState stateAbove)
    • isVerticalPlant

      public static boolean isVerticalPlant(net.minecraft.world.level.block.state.BlockState stateAbove)