public static class RandomPatchFeatureConfig.Builder extends Object
Modifier and Type | Field and Description |
---|---|
private Set<BlockState> |
blacklist |
private BlockPlacer |
blockPlacer |
private boolean |
canReplace |
private boolean |
needsWater |
private boolean |
project |
private int |
spreadX |
private int |
spreadY |
private int |
spreadZ |
private BlockStateProvider |
stateProvider |
private int |
tries |
private Set<Block> |
whitelist |
Constructor and Description |
---|
Builder(BlockStateProvider stateProvider,
BlockPlacer blockPlacer) |
Modifier and Type | Method and Description |
---|---|
RandomPatchFeatureConfig.Builder |
blacklist(Set<BlockState> blacklist) |
RandomPatchFeatureConfig |
build() |
RandomPatchFeatureConfig.Builder |
cannotProject() |
RandomPatchFeatureConfig.Builder |
canReplace() |
RandomPatchFeatureConfig.Builder |
needsWater() |
RandomPatchFeatureConfig.Builder |
spreadX(int spreadX) |
RandomPatchFeatureConfig.Builder |
spreadY(int spreadY) |
RandomPatchFeatureConfig.Builder |
spreadZ(int spreadZ) |
RandomPatchFeatureConfig.Builder |
tries(int tries) |
RandomPatchFeatureConfig.Builder |
whitelist(Set<Block> whitelist) |
private final BlockStateProvider stateProvider
private final BlockPlacer blockPlacer
private Set<BlockState> blacklist
private int tries
private int spreadX
private int spreadY
private int spreadZ
private boolean canReplace
private boolean project
private boolean needsWater
public Builder(BlockStateProvider stateProvider, BlockPlacer blockPlacer)
public RandomPatchFeatureConfig.Builder whitelist(Set<Block> whitelist)
public RandomPatchFeatureConfig.Builder blacklist(Set<BlockState> blacklist)
public RandomPatchFeatureConfig.Builder tries(int tries)
public RandomPatchFeatureConfig.Builder spreadX(int spreadX)
public RandomPatchFeatureConfig.Builder spreadY(int spreadY)
public RandomPatchFeatureConfig.Builder spreadZ(int spreadZ)
public RandomPatchFeatureConfig.Builder canReplace()
public RandomPatchFeatureConfig.Builder cannotProject()
public RandomPatchFeatureConfig.Builder needsWater()
public RandomPatchFeatureConfig build()