Class TreeCutter
java.lang.Object
com.simibubi.create.foundation.utility.TreeCutter
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanDynamicTreeCutFrom(net.minecraft.world.level.block.Block startBlock) static Optional<AbstractBlockBreakQueue>findDynamicTree(net.minecraft.world.level.block.Block startBlock, net.minecraft.core.BlockPos pos) static TreeCutter.TreefindTree(net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos pos) Finds a tree at the given pos.static booleanisChorus(net.minecraft.world.level.block.state.BlockState stateAbove) static booleanisVerticalPlant(net.minecraft.world.level.block.state.BlockState stateAbove)
-
Field Details
-
NO_TREE
-
-
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)
-