public class BaseTreeFeatureConfig extends java.lang.Object implements IFeatureConfig
Modifier and Type | Class and Description |
---|---|
static class |
BaseTreeFeatureConfig.Builder |
Modifier and Type | Field and Description |
---|---|
int |
baseHeight |
java.util.List<TreeDecorator> |
decorators |
boolean |
forcePlacement |
BlockStateProvider |
leavesProvider |
protected IPlantable |
sapling |
BlockStateProvider |
trunkProvider |
NO_FEATURE_CONFIG
Modifier | Constructor and Description |
---|---|
protected |
BaseTreeFeatureConfig(BlockStateProvider trunkProviderIn,
BlockStateProvider leavesProviderIn,
java.util.List<TreeDecorator> decoratorsIn,
int baseHeightIn) |
Modifier and Type | Method and Description |
---|---|
static <T> BaseTreeFeatureConfig |
deserialize(com.mojang.datafixers.Dynamic<T> data) |
static <T> BaseTreeFeatureConfig |
deserializeJungle(com.mojang.datafixers.Dynamic<T> data) |
void |
forcePlacement() |
IPlantable |
getSapling() |
<T> com.mojang.datafixers.Dynamic<T> |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
protected BaseTreeFeatureConfig |
setSapling(IPlantable value) |
public final BlockStateProvider trunkProvider
public final BlockStateProvider leavesProvider
public final java.util.List<TreeDecorator> decorators
public final int baseHeight
public transient boolean forcePlacement
protected IPlantable sapling
protected BaseTreeFeatureConfig(BlockStateProvider trunkProviderIn, BlockStateProvider leavesProviderIn, java.util.List<TreeDecorator> decoratorsIn, int baseHeightIn)
public void forcePlacement()
public <T> com.mojang.datafixers.Dynamic<T> serialize(com.mojang.datafixers.types.DynamicOps<T> ops)
serialize
in interface IFeatureConfig
protected BaseTreeFeatureConfig setSapling(IPlantable value)
public IPlantable getSapling()
public static <T> BaseTreeFeatureConfig deserialize(com.mojang.datafixers.Dynamic<T> data)
public static <T> BaseTreeFeatureConfig deserializeJungle(com.mojang.datafixers.Dynamic<T> data)