Class TheMoon
java.lang.Object
io.github.addoncommunity.galactifun.api.universe.UniversalObject
io.github.addoncommunity.galactifun.api.universe.PlanetaryObject
io.github.addoncommunity.galactifun.api.worlds.PlanetaryWorld
io.github.addoncommunity.galactifun.api.worlds.AlienWorld
io.github.addoncommunity.galactifun.api.worlds.SimpleAlienWorld
io.github.addoncommunity.galactifun.base.universe.earth.TheMoon
The moon
-
Nested Class Summary
Nested classes/interfaces inherited from class SimpleAlienWorld
SimpleAlienWorld.CraterSettings -
Field Summary
Fields inherited from class AlienWorld
CHUNK_VER_KEYFields inherited from class UniversalObject
id, orbitLevel -
Constructor Summary
ConstructorsConstructorDescriptionTheMoon(String name, PlanetaryType type, Orbit orbit, PlanetaryObject orbiting, org.bukkit.inventory.ItemStack baseItem, DayCycle dayCycle, Atmosphere atmosphere, Gravity gravity) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.bukkit.MaterialgenerateMaterial(Random random, int x, int y, int z, int top) protected intAverage block height of the world, similar to sea levelprotected org.bukkit.block.BiomegetBiome()protected SimpleAlienWorld.CraterSettingsGets the settings used for crater generation, or null if there are no cratersprotected voidgetPopulators(List<org.bukkit.generator.BlockPopulator> populators) Add all chunk populators to this listprotected it.unimi.dsi.fastutil.objects.ObjectIntPair<org.bukkit.Material> getTop()Returns anObjectIntPairof the top block material and the number of top blocks.Methods inherited from class SimpleAlienWorld
generateChunk, generateMore, generateSurface, getAmplitude, getBiomeProvider, getFrequency, getMaxDeviation, getOctaves, getScale, smoothenTerrainMethods inherited from class AlienWorld
addBlockMapping, addSpecies, applyEffects, canSpawnVanillaMobs, enabledByDefault, generateChunk, getBedrockLayer, getMappedItem, getSetting, loadWorld, replaceChunkGenerator, tickWorldMethods inherited from class PlanetaryWorld
addon, enabled, isRegistered, register, registerGEOResource, resources, world, worldStorageMethods inherited from class PlanetaryObject
atmosphere, dayCycle, gravityMethods inherited from class UniversalObject
distanceTo, hashCode, id, item, name, orbit, orbiters, orbiting
-
Constructor Details
-
TheMoon
public TheMoon(String name, PlanetaryType type, Orbit orbit, PlanetaryObject orbiting, org.bukkit.inventory.ItemStack baseItem, DayCycle dayCycle, Atmosphere atmosphere, Gravity gravity)
-
-
Method Details
-
getPopulators
Description copied from class:AlienWorldAdd all chunk populators to this list- Specified by:
getPopulatorsin classAlienWorld
-
generateMaterial
@Nonnull protected org.bukkit.Material generateMaterial(@Nonnull Random random, int x, int y, int z, int top) - Specified by:
generateMaterialin classSimpleAlienWorld
-
getTop
@Nonnull protected it.unimi.dsi.fastutil.objects.ObjectIntPair<org.bukkit.Material> getTop()Description copied from class:SimpleAlienWorldReturns anObjectIntPairof the top block material and the number of top blocks. Used for the} methodinvalid @link
{@link #AlienWorld#generateSurface(ChunkGenerator.ChunkData, Random, WorldInfo, int, int)- Overrides:
getTopin classSimpleAlienWorld- Returns:
- an
ObjectIntPairof the top block material and the number of top blocks, or null if there is none
-
getBiome
@Nonnull protected org.bukkit.block.Biome getBiome()- Specified by:
getBiomein classSimpleAlienWorld
-
getAverageHeight
protected int getAverageHeight()Description copied from class:SimpleAlienWorldAverage block height of the world, similar to sea level- Overrides:
getAverageHeightin classSimpleAlienWorld
-
getCraterSettings
Description copied from class:SimpleAlienWorldGets the settings used for crater generation, or null if there are no craters- Overrides:
getCraterSettingsin classSimpleAlienWorld- Returns:
- the settings used for crater generation, or null if there are no craters
-