public class TreeCutter
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TreeCutter.Tree |
| Modifier and Type | Field and Description |
|---|---|
static TreeCutter.Tree |
NO_TREE |
| Constructor and Description |
|---|
TreeCutter() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canDynamicTreeCutFrom(net.minecraft.block.Block startBlock) |
static java.util.Optional<AbstractBlockBreakQueue> |
findDynamicTree(net.minecraft.block.Block startBlock,
net.minecraft.util.math.BlockPos pos) |
static TreeCutter.Tree |
findTree(net.minecraft.world.IBlockReader reader,
net.minecraft.util.math.BlockPos pos)
Finds a tree at the given pos.
|
static boolean |
isChorus(net.minecraft.block.BlockState stateAbove) |
static boolean |
isVerticalPlant(net.minecraft.block.BlockState stateAbove) |
public static final TreeCutter.Tree NO_TREE
public static boolean canDynamicTreeCutFrom(net.minecraft.block.Block startBlock)
@Nonnull public static java.util.Optional<AbstractBlockBreakQueue> findDynamicTree(net.minecraft.block.Block startBlock, net.minecraft.util.math.BlockPos pos)
@Nonnull public static TreeCutter.Tree findTree(@Nullable net.minecraft.world.IBlockReader reader, net.minecraft.util.math.BlockPos pos)
reader - pos - public static boolean isChorus(net.minecraft.block.BlockState stateAbove)
public static boolean isVerticalPlant(net.minecraft.block.BlockState stateAbove)