public class TreeFeatureConfig extends BaseTreeFeatureConfig
Modifier and Type | Class and Description |
---|---|
static class |
TreeFeatureConfig.Builder |
Modifier and Type | Field and Description |
---|---|
int |
foliageHeight |
int |
foliageHeightRandom |
FoliagePlacer |
foliagePlacer |
int |
heightRandA |
int |
heightRandB |
boolean |
ignoreVines |
int |
maxWaterDepth |
int |
trunkHeight |
int |
trunkHeightRandom |
int |
trunkTopOffset |
int |
trunkTopOffsetRandom |
baseHeight, decorators, forcePlacement, leavesProvider, sapling, trunkProvider
NO_FEATURE_CONFIG
Modifier | Constructor and Description |
---|---|
protected |
TreeFeatureConfig(BlockStateProvider trunkProviderIn,
BlockStateProvider leavesProviderIn,
FoliagePlacer foliagePlacerIn,
java.util.List<TreeDecorator> decoratorsIn,
int baseHeightIn,
int heightRandAIn,
int heightRandBIn,
int trunkHeightIn,
int trunkHeightRandomIn,
int trunkTopOffsetIn,
int trunkTopOffsetRandomIn,
int foliageHeightIn,
int foliageHeightRandomIn,
int maxWaterDepthIn,
boolean ignoreVinesIn) |
Modifier and Type | Method and Description |
---|---|
static <T> TreeFeatureConfig |
deserializeAcacia(com.mojang.datafixers.Dynamic<T> data) |
static <T> TreeFeatureConfig |
deserializeJungle(com.mojang.datafixers.Dynamic<T> data) |
static <T> TreeFeatureConfig |
func_227338_a_(com.mojang.datafixers.Dynamic<T> dynamic) |
<T> com.mojang.datafixers.Dynamic<T> |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
protected TreeFeatureConfig |
setSapling(IPlantable value) |
deserialize, forcePlacement, getSapling
public final FoliagePlacer foliagePlacer
public final int heightRandA
public final int heightRandB
public final int trunkHeight
public final int trunkHeightRandom
public final int trunkTopOffset
public final int trunkTopOffsetRandom
public final int foliageHeight
public final int foliageHeightRandom
public final int maxWaterDepth
public final boolean ignoreVines
protected TreeFeatureConfig(BlockStateProvider trunkProviderIn, BlockStateProvider leavesProviderIn, FoliagePlacer foliagePlacerIn, java.util.List<TreeDecorator> decoratorsIn, int baseHeightIn, int heightRandAIn, int heightRandBIn, int trunkHeightIn, int trunkHeightRandomIn, int trunkTopOffsetIn, int trunkTopOffsetRandomIn, int foliageHeightIn, int foliageHeightRandomIn, int maxWaterDepthIn, boolean ignoreVinesIn)
public <T> com.mojang.datafixers.Dynamic<T> serialize(com.mojang.datafixers.types.DynamicOps<T> ops)
serialize
in interface IFeatureConfig
serialize
in class BaseTreeFeatureConfig
protected TreeFeatureConfig setSapling(IPlantable value)
setSapling
in class BaseTreeFeatureConfig
public static <T> TreeFeatureConfig func_227338_a_(com.mojang.datafixers.Dynamic<T> dynamic)
public static <T> TreeFeatureConfig deserializeJungle(com.mojang.datafixers.Dynamic<T> data)
public static <T> TreeFeatureConfig deserializeAcacia(com.mojang.datafixers.Dynamic<T> data)