Class EarthOrbit
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.base.universe.earth.EarthOrbit
- All Implemented Interfaces:
OrbitWorld
-
Field Summary
Fields inherited from class AlienWorld
CHUNK_VER_KEYFields inherited from class UniversalObject
id, orbitLevel -
Constructor Summary
ConstructorsConstructorDescriptionEarthOrbit(String name, PlanetaryType type, Orbit orbit, PlanetaryObject orbiting, org.bukkit.inventory.ItemStack baseItem, DayCycle dayCycle, Atmosphere atmosphere, Gravity gravity) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgenerateChunk(org.bukkit.generator.ChunkGenerator.ChunkData chunk, Random random, org.bukkit.generator.WorldInfo world, int chunkX, int chunkZ) Generate a chunkGets thePlanetaryObjectthat this world is orbitingvoidgetPopulators(List<org.bukkit.generator.BlockPopulator> populators) Add all chunk populators to this listprotected org.bukkit.generator.ChunkGeneratorreplaceChunkGenerator(org.bukkit.generator.ChunkGenerator defaultGenerator) Optionally replace the defaultChunkGeneratorfor this worldMethods inherited from class AlienWorld
addBlockMapping, addSpecies, applyEffects, canSpawnVanillaMobs, enabledByDefault, generateChunk, generateSurface, getBedrockLayer, getBiomeProvider, getMappedItem, getSetting, loadWorld, 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
-
EarthOrbit
public EarthOrbit(String name, PlanetaryType type, Orbit orbit, PlanetaryObject orbiting, org.bukkit.inventory.ItemStack baseItem, DayCycle dayCycle, Atmosphere atmosphere, Gravity gravity)
-
-
Method Details
-
generateChunk
protected void generateChunk(@Nonnull org.bukkit.generator.ChunkGenerator.ChunkData chunk, @Nonnull Random random, @Nonnull org.bukkit.generator.WorldInfo world, int chunkX, int chunkZ) Description copied from class:AlienWorldGenerate a chunk- Specified by:
generateChunkin classAlienWorld
-
replaceChunkGenerator
@Nonnull protected org.bukkit.generator.ChunkGenerator replaceChunkGenerator(@Nonnull org.bukkit.generator.ChunkGenerator defaultGenerator) Description copied from class:AlienWorldOptionally replace the defaultChunkGeneratorfor this world- Overrides:
replaceChunkGeneratorin classAlienWorld
-
getPopulators
Description copied from class:AlienWorldAdd all chunk populators to this list- Specified by:
getPopulatorsin classAlienWorld
-
getPlanet
Description copied from interface:OrbitWorldGets thePlanetaryObjectthat this world is orbiting- Specified by:
getPlanetin interfaceOrbitWorld- Returns:
- the
PlanetaryObjectthat this world is orbiting
-