Class Enceladus
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.FlatWorld
io.github.addoncommunity.galactifun.base.universe.saturn.Enceladus
Class for the Saturnian moon Enceladus
-
Field Summary
Fields inherited from class AlienWorld
CHUNK_VER_KEYFields inherited from class UniversalObject
id, orbitLevel -
Constructor Summary
ConstructorsConstructorDescriptionEnceladus(String name, PlanetaryType type, Orbit orbit, PlanetaryObject orbiting, org.bukkit.inventory.ItemStack baseItem, DayCycle dayCycle, Atmosphere atmosphere, Gravity gravity) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected org.bukkit.block.BiomegetBiome()Gets the biome of this flat worldprotected it.unimi.dsi.fastutil.ints.Int2ObjectSortedMap<org.bukkit.Material> Gets the layers of this world.voidgetPopulators(List<org.bukkit.generator.BlockPopulator> populators) Add all chunk populators to this listMethods inherited from class FlatWorld
generateChunk, generateSurface, getBiomeProviderMethods inherited from class AlienWorld
addBlockMapping, addSpecies, applyEffects, 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
-
Enceladus
public Enceladus(String name, PlanetaryType type, Orbit orbit, PlanetaryObject orbiting, org.bukkit.inventory.ItemStack baseItem, DayCycle dayCycle, Atmosphere atmosphere, Gravity gravity)
-
-
Method Details
-
getLayers
@Nonnull protected it.unimi.dsi.fastutil.ints.Int2ObjectSortedMap<org.bukkit.Material> getLayers()Description copied from class:FlatWorldGets the layers of this world. The returned value is a sorted map of ints andMaterial, with each int being the top bound (inclusive) of the material's generation. See theEuropaimplementation for an example. Or, if you need one in Javadoc,protected Int2ObjectSortedMapgetLayers() { return new Int2ObjectLinkedOpenHashMapinvalid input: '<'>() {{ put(30, MaterialCompat.safe(XMaterial.PACKED_ICE)); put(60, MaterialCompat.safe(XMaterial.ICE)); }}; } -
getBiome
-
getPopulators
Description copied from class:AlienWorldAdd all chunk populators to this list- Specified by:
getPopulatorsin classAlienWorld
-
canSpawnVanillaMobs
public boolean canSpawnVanillaMobs()- Overrides:
canSpawnVanillaMobsin classAlienWorld
-