Перейти к основному содержанию

OreGenerator

Index

Variables

copper

copper: OreProperties

iridium

iridium: { chance: number; maxHeight: number; minHeight: number }

Type declaration

  • chance: number
  • maxHeight: number
  • minHeight: number

lead

lead: OreProperties

tin

tin: OreProperties

uranium

uranium: OreProperties

Functions

addFlag

  • addFlag(oreName: string, flagName: string, disableOre?: boolean): void
  • Parameters

    • oreName: string
    • flagName: string
    • optionaldisableOre: boolean

    Returns void

generateOre

  • generateOre(chunkX: number, chunkZ: number, blockID: number, properties: OreProperties, random: Random): void
  • Parameters

    • chunkX: number
    • chunkZ: number
    • blockID: number
    • properties: OreProperties
    • random: Random

    Returns void

randomCoords

  • randomCoords(random: Random, chunkX: number, chunkZ: number, minHeight?: number, maxHeight?: number): Vector
  • Parameters

    • random: Random
    • chunkX: number
    • chunkZ: number
    • optionalminHeight: number
    • optionalmaxHeight: number

    Returns Vector