[Change] added inBiome Test before costly layer searches
This commit is contained in:
parent
4bb3512433
commit
8b578e7cdf
1 changed files with 13 additions and 3 deletions
|
@ -395,15 +395,25 @@ abstract class CommonPlacedFeatureBuilder<F extends Feature<FC>, FC extends Feat
|
|||
}
|
||||
|
||||
public T vanillaNetherGround(int countPerLayer) {
|
||||
return (T) this.onEveryLayer(countPerLayer).onlyInBiome();
|
||||
return (T) this.randomHeight4FromFloorCeil().onlyInBiome().onEveryLayer(countPerLayer).onlyInBiome();
|
||||
}
|
||||
|
||||
public T betterNetherGround(int countPerLayer) {
|
||||
return (T) this.count(countPerLayer).squarePlacement().onEveryLayerMin4().onlyInBiome();
|
||||
return (T) this.randomHeight4FromFloorCeil()
|
||||
.count(countPerLayer)
|
||||
.squarePlacement()
|
||||
.onlyInBiome()
|
||||
.onEveryLayerMin4()
|
||||
.onlyInBiome();
|
||||
}
|
||||
|
||||
public T betterNetherCeiling(int countPerLayer) {
|
||||
return (T) this.count(countPerLayer).squarePlacement().underEveryLayerMin4().onlyInBiome();
|
||||
return (T) this.randomHeight4FromFloorCeil()
|
||||
.count(countPerLayer)
|
||||
.squarePlacement()
|
||||
.onlyInBiome()
|
||||
.underEveryLayerMin4()
|
||||
.onlyInBiome();
|
||||
}
|
||||
|
||||
public T betterNetherOnWall(int countPerLayer) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue