Skip to content

Commit

Permalink
Format some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Dec 3, 2024
1 parent 68a8d4e commit a9e5833
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/worldgen/LevelHeight.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type LevelHeight = {
export interface LevelHeight {
minY: number,
height: number,
}
}
2 changes: 1 addition & 1 deletion src/worldgen/structure/StructurePlacement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { BlockPos, Holder, HolderSet, Identifier } from '../../core/index.js'
import type { Random } from '../../math/index.js'
import { LegacyRandom } from '../../math/index.js'
import { Json } from '../../util/index.js'
import { WorldgenRegistries } from '../WorldgenRegistries.js'
import type { Climate } from '../biome/index.js'
import { BiomeSource } from '../biome/index.js'
import { WorldgenRegistries } from '../WorldgenRegistries.js'
import { StructureSet } from './StructureSet.js'

export abstract class StructurePlacement {
Expand Down
3 changes: 2 additions & 1 deletion src/worldgen/structure/StructureSet.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { BlockPos, Holder, Identifier, Registry } from '../../core/index.js'
import type { BlockPos } from '../../core/index.js'
import { Holder, Identifier, Registry } from '../../core/index.js'
import { LegacyRandom } from '../../math/index.js'
import { Json } from '../../util/index.js'
import { StructurePlacement } from './StructurePlacement.js'
Expand Down
11 changes: 5 additions & 6 deletions src/worldgen/structure/WorldgenStructure.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import { Rotation } from '../../core/Rotation.js'
import { BlockPos, Holder, HolderSet, Identifier, Registry } from '../../core/index.js'
import { BlockPos, Holder, HolderSet, Identifier, Registry, Rotation } from '../../core/index.js'
import type { Random } from '../../math/index.js'
import { LegacyRandom } from '../../math/index.js'
import { Json } from '../../util/Json.js'
import { HeightProvider } from '../HeightProvider.js'
import type { BiomeSource } from '../biome/index.js'
import { Heightmap } from '../Heightmap.js'
import { LevelHeight } from '../LevelHeight.js'
import { HeightProvider } from '../HeightProvider.js'
import type { LevelHeight } from '../LevelHeight.js'
import { NoiseChunkGenerator } from '../NoiseChunkGenerator.js'
import type { NoiseGeneratorSettings } from '../NoiseGeneratorSettings.js'
import { RandomState } from '../RandomState.js'
import { WorldgenRegistries } from '../WorldgenRegistries.js'
import type { BiomeSource } from '../biome/index.js'
import { StructurePoolElement } from './StructurePoolElement.js'
import { StructureTemplatePool } from './StructureTemplatePool.js'

Expand Down Expand Up @@ -89,7 +88,7 @@ export namespace WorldgenStructure {
public readonly seed: bigint,
public readonly biomeSource: BiomeSource,
public readonly settings: NoiseGeneratorSettings,
public readonly levelHeight: LevelHeight
public readonly levelHeight: LevelHeight,
) {
this.randomState = new RandomState(settings, seed)
this.chunkGenerator = new NoiseChunkGenerator(biomeSource, settings)
Expand Down

0 comments on commit a9e5833

Please sign in to comment.