Class TreeCutter

java.lang.Object
com.simibubi.create.content.kinetics.saw.TreeCutter

public class TreeCutter extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final TreeCutter.Tree
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    canDynamicTreeCutFrom(net.minecraft.world.level.block.Block startBlock)
     
    findDynamicTree(net.minecraft.world.level.block.Block startBlock, net.minecraft.core.BlockPos pos)
     
    static @NotNull TreeCutter.Tree
    findTree(@Nullable net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState brokenState)
    Finds a tree at the given pos.
    static boolean
    isChorus(net.minecraft.world.level.block.state.BlockState stateAbove)
     
    static boolean
    isLog(net.minecraft.world.level.block.state.BlockState state)
     
    static boolean
    isRoot(net.minecraft.world.level.block.state.BlockState state)
     
    static boolean
    isVerticalPlant(net.minecraft.world.level.block.state.BlockState stateAbove)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • TreeCutter

      public TreeCutter()
  • Method Details

    • canDynamicTreeCutFrom

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

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

      @NotNull public static @NotNull TreeCutter.Tree findTree(@Nullable @Nullable net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState brokenState)
      Finds a tree at the given pos. Block at the position should be air
      Parameters:
      reader - the level that will be searched for a tree
      pos - position that the saw cut at
      brokenState - block state what was broken by the saw
    • 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)
    • isRoot

      public static boolean isRoot(net.minecraft.world.level.block.state.BlockState state)
    • isLog

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