Class AlienWorld

Direct Known Subclasses:
EarthOrbit, FlatWorld, SimpleAlienWorld, Titan

public abstract class AlienWorld extends PlanetaryWorld
Any alien world
See Also:
  • Field Details

    • CHUNK_VER_KEY

      public static final org.bukkit.NamespacedKey CHUNK_VER_KEY
  • Constructor Details

  • Method Details

    • loadWorld

      @Nullable protected org.bukkit.World loadWorld()
      Specified by:
      loadWorld in class PlanetaryWorld
    • addSpecies

      public final void addSpecies(@Nonnull Alien<?>... aliens)
    • getSetting

      public final <T> T getSetting(@Nonnull String path, @Nonnull Class<T> clazz, T defaultValue)
    • addBlockMapping

      public final void addBlockMapping(@Nonnull org.bukkit.Material vanillaItem, @Nonnull io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack slimefunItem)
      To allow worlds to be made of SlimefunItems without using huge amounts of BlockStorage, I invented block mappings. Simply pass a Material and a SlimefunItemStack, and any generated vanillaItems will drop slimefunItems
    • getMappedItem

      @Nullable public io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack getMappedItem(org.bukkit.block.Block b)
    • canSpawnVanillaMobs

      public boolean canSpawnVanillaMobs()
    • enabledByDefault

      protected boolean enabledByDefault()
      Override and set to false if your world is unimportant
    • generateChunk

      @Deprecated protected void generateChunk(@Nonnull org.bukkit.generator.ChunkGenerator.ChunkData chunk, @Nonnull org.bukkit.generator.ChunkGenerator.BiomeGrid grid, @Nonnull Random random, @Nonnull org.bukkit.World world, int chunkX, int chunkZ)
      Deprecated.
      Generate a chunk
    • generateChunk

      protected abstract void generateChunk(@Nonnull org.bukkit.generator.ChunkGenerator.ChunkData chunk, @Nonnull Random random, @Nonnull org.bukkit.generator.WorldInfo world, int chunkX, int chunkZ)
      Generate a chunk
    • generateSurface

      protected void generateSurface(@Nonnull org.bukkit.generator.ChunkGenerator.ChunkData chunk, @Nonnull Random random, @Nonnull org.bukkit.generator.WorldInfo world, int chunkX, int chunkZ)
      Optionally, generate the surface step of the world
    • getPopulators

      protected abstract void getPopulators(@Nonnull List<org.bukkit.generator.BlockPopulator> populators)
      Add all chunk populators to this list
    • getBiomeProvider

      @Nullable protected org.bukkit.generator.BiomeProvider getBiomeProvider(@Nonnull org.bukkit.generator.WorldInfo info)
      Get the BiomeProvider for this world
      Returns:
      the BiomeProvider for this world, or null for vanilla biomes
    • replaceChunkGenerator

      @Nonnull protected org.bukkit.generator.ChunkGenerator replaceChunkGenerator(@Nonnull org.bukkit.generator.ChunkGenerator defaultGenerator)
      Optionally replace the default ChunkGenerator for this world
    • getBedrockLayer

      protected int getBedrockLayer()
      Returns the y layer at which bedrock is generated
      Returns:
      the y layer of bedrock in this world
    • applyEffects

      public final void applyEffects(@Nonnull org.bukkit.entity.Player p)
    • tickWorld

      public final void tickWorld()