Duplicate function fix
This commit is contained in:
parent
75a0b3d7d2
commit
b03dc50726
2 changed files with 3 additions and 12 deletions
|
@ -39,7 +39,7 @@ public class BCLCommonFeatures {
|
|||
else {
|
||||
return BCLFeatureBuilder
|
||||
.start(id, feature)
|
||||
.countAverage(density)
|
||||
.oncePerChunks(density)
|
||||
.squarePlacement()
|
||||
.heightmap()
|
||||
.onlyInBiome()
|
||||
|
@ -67,7 +67,7 @@ public class BCLCommonFeatures {
|
|||
* @return new BCLFeature instance.
|
||||
*/
|
||||
public static BCLFeature makeChancedFeature(ResourceLocation id, Decoration decoration, Feature<NoneFeatureConfiguration> feature, int chance) {
|
||||
return BCLFeatureBuilder.start(id, feature).decoration(decoration).countAverage(chance).onlyInBiome().build();
|
||||
return BCLFeatureBuilder.start(id, feature).decoration(decoration).oncePerChunks(chance).onlyInBiome().build();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -108,7 +108,7 @@ public class BCLCommonFeatures {
|
|||
builder.oncePerChunks(veins);
|
||||
}
|
||||
else {
|
||||
builder.countAverage(veins);
|
||||
builder.oncePerChunks(veins);
|
||||
}
|
||||
|
||||
return builder.build(new OreConfiguration(
|
||||
|
|
|
@ -79,15 +79,6 @@ public class BCLFeatureBuilder {
|
|||
return modifier(CountPlacement.of(UniformInt.of(0, count)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate feature in certain iterations (per chunk), count can be different in different chunks.
|
||||
* @param average how many times feature will be generated in chunk (in average).
|
||||
* @return same {@link BCLFeatureBuilder} instance.
|
||||
*/
|
||||
public BCLFeatureBuilder countAverage(int average) {
|
||||
return modifier(RarityFilter.onAverageOnceEvery(average));
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate feature in certain iterations (per chunk).
|
||||
* Feature will be generated on all layers (example - Nether plants).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue