public class TreeFeatureConfig extends Object implements FeatureConfig
Modifier and Type | Class and Description |
---|---|
static class |
TreeFeatureConfig.Builder |
Modifier and Type | Field and Description |
---|---|
int |
baseHeight |
List<TreeDecorator> |
decorators |
BlockStateProvider |
leavesProvider |
boolean |
skipFluidCheck |
BlockStateProvider |
trunkProvider |
DEFAULT
Modifier | Constructor and Description |
---|---|
protected |
TreeFeatureConfig(BlockStateProvider trunkProvider,
BlockStateProvider leavesProvider,
List<TreeDecorator> decorators,
int baseHeight) |
Modifier and Type | Method and Description |
---|---|
static <T> TreeFeatureConfig |
deserialize(com.mojang.datafixers.Dynamic<T> configDeserializer) |
void |
ignoreFluidCheck() |
<T> com.mojang.datafixers.Dynamic<T> |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
public final BlockStateProvider trunkProvider
public final BlockStateProvider leavesProvider
public final List<TreeDecorator> decorators
public final int baseHeight
public transient boolean skipFluidCheck
protected TreeFeatureConfig(BlockStateProvider trunkProvider, BlockStateProvider leavesProvider, List<TreeDecorator> decorators, int baseHeight)
public void ignoreFluidCheck()
public <T> com.mojang.datafixers.Dynamic<T> serialize(com.mojang.datafixers.types.DynamicOps<T> ops)
serialize
in interface FeatureConfig
public static <T> TreeFeatureConfig deserialize(com.mojang.datafixers.Dynamic<T> configDeserializer)