Class Mars
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.Mars
Class for Mars
-
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
ConstructorsConstructorDescriptionMars(String name, PlanetaryType type, Orbit orbit, StarSystem 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 voidgenerateMore(org.bukkit.generator.ChunkGenerator.ChunkData chunk, org.bukkit.util.noise.SimplexOctaveGenerator generator, Random random, int realX, int realZ, int x, int z, int height) Generate additional things after the main materials and biomes have been generatedprotected org.bukkit.block.BiomegetBiome()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, generateSurface, getAmplitude, getAverageHeight, getBiomeProvider, getCraterSettings, 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
-
Mars
public Mars(String name, PlanetaryType type, Orbit orbit, StarSystem orbiting, org.bukkit.inventory.ItemStack baseItem, DayCycle dayCycle, Atmosphere atmosphere, Gravity gravity)
-
-
Method Details
-
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
-
generateMore
protected void generateMore(@Nonnull org.bukkit.generator.ChunkGenerator.ChunkData chunk, @Nonnull org.bukkit.util.noise.SimplexOctaveGenerator generator, @Nonnull Random random, int realX, int realZ, int x, int z, int height) Description copied from class:SimpleAlienWorldGenerate additional things after the main materials and biomes have been generated- Overrides:
generateMorein classSimpleAlienWorld
-
getBiome
@Nonnull protected org.bukkit.block.Biome getBiome()- Specified by:
getBiomein classSimpleAlienWorld
-
getPopulators
Description copied from class:AlienWorldAdd all chunk populators to this list- Specified by:
getPopulatorsin classAlienWorld
-