Package net.glowstone

Class GlowWorld

java.lang.Object
net.glowstone.GlowWorld
All Implemented Interfaces:
net.kyori.adventure.audience.Audience, net.kyori.adventure.audience.ForwardingAudience, org.bukkit.Keyed, org.bukkit.metadata.Metadatable, org.bukkit.plugin.messaging.PluginMessageRecipient, org.bukkit.World

public class GlowWorld extends Object implements org.bukkit.World
A class which represents the in-game world.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.kyori.adventure.audience.ForwardingAudience

    net.kyori.adventure.audience.ForwardingAudience.Single

    Nested classes/interfaces inherited from interface org.bukkit.World

    org.bukkit.World.ChunkLoadCallback, org.bukkit.World.Environment, org.bukkit.World.Spigot
  • Constructor Summary

    Constructors
    Constructor
    Description
    GlowWorld(GlowServer server, org.bukkit.WorldCreator creator, WorldStorageProvider worldStorageProvider)
    Creates a new world from the options in the given WorldCreator.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addPluginChunkTicket(int x, int z, @NotNull org.bukkit.plugin.Plugin plugin)
     
    void
     
    void
     
    void
    cancelPulse(org.bukkit.Location location)
     
    boolean
     
    boolean
    createExplosion(double x, double y, double z, float power)
     
    boolean
    createExplosion(double x, double y, double z, float power, boolean setFire)
     
    boolean
    createExplosion(double x, double y, double z, float power, boolean setFire, boolean breakBlocks)
     
    boolean
    createExplosion(double x, double y, double z, float power, boolean setFire, boolean breakBlocks, @Nullable org.bukkit.entity.Entity source)
     
    boolean
    createExplosion(@NotNull org.bukkit.Location location, float power, boolean setFire, boolean breakBlocks)
     
    boolean
    createExplosion(@NotNull org.bukkit.Location location, float power, boolean setFire, boolean breakBlocks, @Nullable org.bukkit.entity.Entity source)
     
    boolean
    createExplosion(org.bukkit.entity.Entity source, double x, double y, double z, float power, boolean incendiary, boolean breakBlocks)
    Create an explosion with a specific entity as the source.
    boolean
    createExplosion(org.bukkit.entity.Entity source, org.bukkit.Location loc, float power, boolean setFire, boolean breakBlocks)
     
    boolean
    createExplosion(org.bukkit.Location loc, float power)
     
    boolean
    createExplosion(org.bukkit.Location loc, float power, boolean setFire)
     
    boolean
     
    boolean
     
    @NotNull org.bukkit.entity.Item
    dropItem(@NotNull org.bukkit.Location location, @NotNull org.bukkit.inventory.ItemStack stack, @Nullable org.bukkit.util.Consumer<org.bukkit.entity.Item> consumer)
     
    dropItem(org.bukkit.Location location, org.bukkit.inventory.ItemStack item)
    Spawn an item at the given Location without shooting effect.
    @NotNull org.bukkit.entity.Item
    dropItemNaturally(@NotNull org.bukkit.Location location, @NotNull org.bukkit.inventory.ItemStack stack, @Nullable org.bukkit.util.Consumer<org.bukkit.entity.Item> consumer)
     
    dropItemNaturally(org.bukkit.Location location, org.bukkit.inventory.ItemStack item)
    Spawn an item at the given Location with shooting effect.
    boolean
     
    boolean
    generateTree(org.bukkit.Location location, org.bukkit.TreeType type)
     
    boolean
    generateTree(org.bukkit.Location loc, org.bukkit.TreeType type, org.bukkit.BlockChangeDelegate delegate)
     
    boolean
     
    boolean
     
    int
    Per-world spawn limits on ambient mobs (bats).
    int
    Per-world spawn limits on passive mobs.
    org.bukkit.block.Biome
    getBiome(int x, int z)
     
    @NotNull org.bukkit.block.Biome
    getBiome(int x, int y, int z)
     
    getBlockAt(int x, int y, int z)
     
    getBlockAt(org.bukkit.Location location)
     
    org.bukkit.block.data.BlockData
    getBlockDataAt(int x, int y, int z)
     
    int
    Returns the number of block entities in loaded chunkManager.
    org.bukkit.Material
    getBlockTypeAt(int x, int y, int z)
     
     
    getChunkAt(int x, int z)
     
    getChunkAt(long chunkKey)
     
    org.bukkit.Chunk
    getChunkAt(org.bukkit.block.Block block)
     
    org.bukkit.Chunk
    getChunkAt(org.bukkit.Location location)
     
    @NotNull CompletableFuture<org.bukkit.Chunk>
    getChunkAtAsync(int x, int z, boolean gen)
     
    @NotNull CompletableFuture<org.bukkit.Chunk>
    getChunkAtAsync(int x, int z, boolean gen, boolean urgent)
     
    void
    getChunkAtAsync(int x, int z, org.bukkit.World.ChunkLoadCallback cb)
     
    void
    getChunkAtAsync(org.bukkit.block.Block block, org.bukkit.World.ChunkLoadCallback cb)
     
    void
    getChunkAtAsync(org.bukkit.Location location, org.bukkit.World.ChunkLoadCallback cb)
     
    int
     
    The chunk manager.
    int
     
    double
     
    org.bukkit.Difficulty
    The world's gameplay difficulty.
    org.bukkit.ChunkSnapshot
    getEmptyChunkSnapshot(int x, int z, boolean includeBiome, boolean includeBiomeTempRain)
     
    @Nullable org.bukkit.boss.DragonBattle
     
    List<org.bukkit.entity.Entity>
     
    <T extends org.bukkit.entity.Entity>
    Collection<T>
     
    <T extends org.bukkit.entity.Entity>
    Collection<T>
    getEntitiesByClass(Class<T>... classes)
    Deprecated.
    Collection<org.bukkit.entity.Entity>
    getEntitiesByClasses(Class<?>... classes)
     
    org.bukkit.entity.Entity
     
    int
     
    The entity manager.
    org.bukkit.World.Environment
    The environment.
    @NotNull Collection<org.bukkit.Chunk>
     
    long
    The age of the world, in ticks.
     
    <T> T
    getGameRuleDefault(org.bukkit.GameRule<T> gameRule)
     
    The game rules used in this world.
     
    getGameRuleValue(@NonNls String rule)
     
    <T> T
    getGameRuleValue(org.bukkit.GameRule<T> gameRule)
     
    long
     
    org.bukkit.generator.ChunkGenerator
     
    org.bukkit.block.Block
    getHighestBlockAt(int x, int z)
     
    @NotNull org.bukkit.block.Block
    getHighestBlockAt(int x, int z, @NotNull org.bukkit.HeightMap heightMap)
     
    @NotNull org.bukkit.block.Block
    getHighestBlockAt(@NotNull org.bukkit.Location location, @NotNull org.bukkit.HeightMap heightMap)
     
    org.bukkit.block.Block
    getHighestBlockAt(org.bukkit.Location location)
     
    org.bukkit.block.Block
    getHighestBlockAt(org.bukkit.Location location, org.bukkit.Material... except)
    Gets the lowest block at the given Location such that the block and all blocks above it are either air or one of the given materials.
    int
    getHighestBlockYAt(int x, int z)
     
    int
    getHighestBlockYAt(int x, int z, @NotNull com.destroystokyo.paper.HeightmapType heightmapType)
     
    int
    getHighestBlockYAt(int x, int z, @NotNull org.bukkit.HeightMap heightMap)
     
    int
    getHighestBlockYAt(@NotNull org.bukkit.Location location, @NotNull org.bukkit.HeightMap heightMap)
     
    int
    getHighestBlockYAt(org.bukkit.Location location)
     
    double
    getHumidity(int x, int z)
     
    double
    getHumidity(int x, int y, int z)
     
    @NotNull Collection<org.bukkit.Material>
     
    boolean
     
    @NotNull org.bukkit.NamespacedKey
     
     
    List<org.bukkit.entity.LivingEntity>
     
    org.bukkit.Chunk[]
     
    int
    The maximum height at which players may place blocks.
    List<org.bukkit.metadata.MetadataValue>
    getMetadata(String metadataKey)
     
    int
     
    int
    Per-world spawn limits on hostile mobs.
    io.papermc.paper.world.MoonPhase
     
    double
    Returns the fraction of the moon that is illuminated, ranging from 0.0 at new moon to 1.0 at full moon.
    The name of this world.
    @NotNull Collection<org.bukkit.entity.Entity>
    getNearbyEntities(@NotNull org.bukkit.Location location, double v, double v1, double v2, @Nullable Predicate<org.bukkit.entity.Entity> predicate)
     
    @NotNull Collection<org.bukkit.entity.Entity>
    getNearbyEntities(@NotNull org.bukkit.util.BoundingBox boundingBox)
     
    @NotNull Collection<org.bukkit.entity.Entity>
    getNearbyEntities(@NotNull org.bukkit.util.BoundingBox boundingBox, @Nullable Predicate<org.bukkit.entity.Entity> predicate)
     
    Collection<org.bukkit.entity.Entity>
    getNearbyEntities(org.bukkit.Location location, double x, double y, double z)
    Returns a list of entities within a bounding box centered around a Location.
    int
     
    int
     
    List<org.bukkit.entity.Player>
     
    @NotNull Map<org.bukkit.plugin.Plugin,Collection<org.bukkit.Chunk>>
     
    @NotNull Collection<org.bukkit.plugin.Plugin>
    getPluginChunkTickets(int x, int z)
     
    List<org.bukkit.generator.BlockPopulator>
     
    boolean
     
    @NotNull List<org.bukkit.Raid>
     
    float
    The rain density on the current world tick.
     
    int
     
    long
    The world seed.
    byte[]
    The SHA-256 hash of the world seed.
    Get the world's parent server.
    float
    The sky darkness on the current world tick.
    org.bukkit.Location
     
    The storage provider for the world.
     
    double
    getTemperature(int x, int z)
     
    double
    getTemperature(int x, int y, int z)
     
    int
    How many ticks until the thundering status is expected to change.
    int
    Returns the number of tickable block entities in loaded chunkManager.
    int
    Deprecated.
    ConcurrentSet<org.bukkit.Location>
     
    long
     
    long
     
    long
     
    long
     
    long
     
    int
    Deprecated.
    long
    The current world time.
     
    int
    Per-world view distance.
    int
    Per-world spawn limits on water ambient mobs.
    int
    Per-world spawn limits on water mobs.
    int
    How many ticks until the rain/snow status is expected to change.
    The world border.
    Get the world folder.
    org.bukkit.WorldType
    The world type.
    boolean
     
    int
     
    boolean
    hasMetadata(String metadataKey)
     
    boolean
     
    boolean
     
    boolean
     
    boolean
    The check to autosave.
    boolean
    isChunkForceLoaded(int x, int z)
     
    boolean
    isChunkGenerated(int x, int z)
     
    boolean
    isChunkInUse(int x, int z)
     
    boolean
    isChunkLoaded(int x, int z)
     
    boolean
    isChunkLoaded(org.bukkit.Chunk chunk)
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
    Per-world hardcore setting.
    boolean
    Whether the world has been initialized (i.e.
    boolean
     
    boolean
     
    boolean
    Whether it is currently thundering on this world.
    boolean
     
    void
    loadChunk(int x, int z)
     
    boolean
    loadChunk(int x, int z, boolean generate)
     
    void
    loadChunk(org.bukkit.Chunk chunk)
     
    @Nullable org.bukkit.Location
    locateNearestBiome(@NotNull org.bukkit.Location location, @NotNull org.bukkit.block.Biome biome, int i)
     
    @Nullable org.bukkit.Location
    locateNearestBiome(@NotNull org.bukkit.Location location, @NotNull org.bukkit.block.Biome biome, int i, int i1)
     
    @Nullable org.bukkit.Raid
    locateNearestRaid(@NotNull org.bukkit.Location location, int radius)
     
    @Nullable org.bukkit.Location
    locateNearestStructure(@NotNull org.bukkit.Location location, @NotNull org.bukkit.StructureType structureType, int i, boolean b)
     
    newChunkLock(@NonNls String desc)
    Get a new chunk lock object a player or other party can use to keep chunkManager loaded.
    void
    playEffect(org.bukkit.Location location, org.bukkit.Effect effect, int data)
     
    void
    playEffect(org.bukkit.Location location, org.bukkit.Effect effect, int data, int radius)
     
    <T> void
    playEffect(org.bukkit.Location location, org.bukkit.Effect effect, T data)
     
    <T> void
    playEffect(org.bukkit.Location location, org.bukkit.Effect effect, T data, int radius)
     
    void
    playEffectExceptTo(org.bukkit.Location location, org.bukkit.Effect effect, int data, int radius, org.bukkit.entity.Player exclude)
    Plays an effect to all but one player within a given radius around a location.
    void
    playSound(org.bukkit.Location location, String sound, float volume, float pitch)
     
    void
    playSound(org.bukkit.Location location, String sound, org.bukkit.SoundCategory category, float volume, float pitch)
     
    void
    playSound(org.bukkit.Location location, org.bukkit.Sound sound, float volume, float pitch)
     
    void
    playSound(org.bukkit.Location location, org.bukkit.Sound sound, org.bukkit.SoundCategory category, float volume, float pitch)
     
    void
    Updates all the entities within this world.
    @Nullable org.bukkit.util.RayTraceResult
    rayTrace(@NotNull org.bukkit.Location location, @NotNull org.bukkit.util.Vector vector, double v, @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode, boolean b, double v1, @Nullable Predicate<org.bukkit.entity.Entity> predicate)
     
    float
    rayTrace(org.bukkit.Location location, GlowEntity entity)
    Calculates how much the rays from the location to the entity's bounding box is blocked.
    @Nullable org.bukkit.util.RayTraceResult
    rayTraceBlocks(@NotNull org.bukkit.Location location, @NotNull org.bukkit.util.Vector vector, double v)
     
    @Nullable org.bukkit.util.RayTraceResult
    rayTraceBlocks(@NotNull org.bukkit.Location location, @NotNull org.bukkit.util.Vector vector, double v, @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode)
     
    @Nullable org.bukkit.util.RayTraceResult
    rayTraceBlocks(@NotNull org.bukkit.Location location, @NotNull org.bukkit.util.Vector vector, double v, @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode, boolean b)
     
    @Nullable org.bukkit.util.RayTraceResult
    rayTraceEntities(@NotNull org.bukkit.Location location, @NotNull org.bukkit.util.Vector vector, double v)
     
    @Nullable org.bukkit.util.RayTraceResult
    rayTraceEntities(@NotNull org.bukkit.Location location, @NotNull org.bukkit.util.Vector vector, double v, double v1)
     
    @Nullable org.bukkit.util.RayTraceResult
    rayTraceEntities(@NotNull org.bukkit.Location location, @NotNull org.bukkit.util.Vector vector, double v, double v1, @Nullable Predicate<org.bukkit.entity.Entity> predicate)
     
    @Nullable org.bukkit.util.RayTraceResult
    rayTraceEntities(@NotNull org.bukkit.Location location, @NotNull org.bukkit.util.Vector vector, double v, @Nullable Predicate<org.bukkit.entity.Entity> predicate)
     
    boolean
    refreshChunk(int x, int z)
     
    boolean
    regenerateChunk(int x, int z)
     
    void
    removeMetadata(String metadataKey, org.bukkit.plugin.Plugin owningPlugin)
     
    boolean
    removePluginChunkTicket(int x, int z, @NotNull org.bukkit.plugin.Plugin plugin)
     
    void
    removePluginChunkTickets(@NotNull org.bukkit.plugin.Plugin plugin)
     
    void
     
    void
    requestPulse(org.bukkit.Location location)
     
    void
     
    void
    save(boolean async)
    Saves world to disk synchronously or asynchronously.
    void
    sendPluginMessage(org.bukkit.plugin.Plugin source, String channel, byte[] message)
     
    void
    setAmbientSpawnLimit(int ambientSpawnLimit)
    Per-world spawn limits on ambient mobs (bats).
    void
    setAnimalSpawnLimit(int animalSpawnLimit)
    Per-world spawn limits on passive mobs.
    void
    setAutoSave(boolean autoSave)
    The check to autosave.
    void
    setBiome(int x, int y, int z, @NotNull org.bukkit.block.Biome biome)
     
    void
    setBiome(int x, int z, @NotNull org.bukkit.block.Biome bio)
     
    void
    setChunkForceLoaded(int x, int z, boolean forced)
     
    void
     
    void
    setDifficulty(org.bukkit.Difficulty difficulty)
     
    void
    setFullTime(long fullTime)
    The age of the world, in ticks.
    <T> boolean
    setGameRule(org.bukkit.GameRule<T> gameRule, T t)
     
    boolean
    setGameRuleValue(@NonNls String rule, String value)
     
    void
    setHardcore(boolean hardcore)
    Per-world hardcore setting.
    void
    setKeepSpawnInMemory(boolean keepLoaded)
     
    void
    setMetadata(String metadataKey, org.bukkit.metadata.MetadataValue newMetadataValue)
     
    void
    setMonsterSpawnLimit(int monsterSpawnLimit)
    Per-world spawn limits on hostile mobs.
    void
    setNoTickViewDistance(int viewDistance)
     
    void
    setPVP(boolean pvp)
     
    void
    setSpawnFlags(boolean allowMonsters, boolean allowAnimals)
     
    boolean
    setSpawnLocation(int x, int y, int z)
     
    boolean
    setSpawnLocation(int x, int y, int z, boolean anchor)
     
    boolean
    setSpawnLocation(int x, int y, int z, float angle)
     
    boolean
    setSpawnLocation(org.bukkit.Location newSpawn)
     
    boolean
    setSpawnLocation(org.bukkit.Location newSpawn, boolean anchor)
    Sets the spawn location of the world.
    void
    setStorm(boolean hasStorm)
     
    void
    setThunderDuration(int thunderDuration)
    How many ticks until the thundering status is expected to change.
    void
    setThundering(boolean thundering)
     
    void
    setTicksPerAmbientSpawns(int ticksPerAmbientSpawns)
    Ticks between when ambient mobs are spawned.
    void
    setTicksPerAnimalSpawns(int ticksPerAnimalSpawns)
    Ticks between when passive mobs are spawned.
    void
    setTicksPerMonsterSpawns(int ticksPerMonsterSpawns)
    Ticks between when hostile mobs are spawned.
    void
    setTicksPerWaterAmbientSpawns(int ticksPerWaterAmbientSpawns)
    Ticks between when ambient water mobs are spawned.
    void
    setTicksPerWaterSpawns(int ticksPerWaterSpawns)
    Ticks between when water mobs are spawned.
    void
    setTime(long time)
     
    void
    setViewDistance(int viewDistance)
    Per-world view distance.
    void
    setWaterAmbientSpawnLimit(int waterAmbientSpawnLimit)
    Per-world spawn limits on water ambient mobs.
    void
    setWaterAnimalSpawnLimit(int waterAnimalSpawnLimit)
    Per-world spawn limits on water mobs.
    void
    setWeatherDuration(int weatherDuration)
    How many ticks until the rain/snow status is expected to change.
    void
    setWorldType(org.bukkit.WorldType worldType)
    The world type.
    void
    showParticle(org.bukkit.Location loc, org.bukkit.Effect particle, float offsetX, float offsetY, float offsetZ, float speed, int amount)
    Displays the given particle to all players.
    void
    showParticle(org.bukkit.Location loc, org.bukkit.Effect particle, int id, int data, float offsetX, float offsetY, float offsetZ, float speed, int amount, int radius)
    Displays the given particle to all players.
    <T extends org.bukkit.entity.Entity>
    T
    spawn(org.bukkit.Location location, Class<T> clazz)
     
    <T extends org.bukkit.entity.Entity>
    T
    spawn(org.bukkit.Location location, Class<T> clazz, org.bukkit.util.Consumer<T> function)
     
    <T extends org.bukkit.entity.Entity>
    T
    spawn(org.bukkit.Location location, Class<T> clazz, org.bukkit.util.Consumer<T> function, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason spawnReason)
     
    <T extends org.bukkit.entity.AbstractArrow>
    T
    spawnArrow(@NotNull org.bukkit.Location location, @NotNull org.bukkit.util.Vector vector, float speed, float spread, @NotNull Class<T> clazz)
     
    org.bukkit.entity.Arrow
    spawnArrow(org.bukkit.Location location, org.bukkit.util.Vector velocity, float speed, float spread)
     
    <T extends org.bukkit.entity.Entity>
    T
    spawnCustomEntity(org.bukkit.Location location, String id)
    Spawn a custom entity at the given Location.
    <T extends org.bukkit.entity.Entity>
    T
    spawnCustomEntity(org.bukkit.Location location, String id, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason)
    Spawn a custom entity at the given Location, with the given CreatureSpawnEvent.SpawnReason.
    org.bukkit.entity.Entity
    spawnEntity(org.bukkit.Location loc, org.bukkit.entity.EntityType type)
     
    org.bukkit.entity.FallingBlock
    spawnFallingBlock(org.bukkit.Location location, org.bukkit.block.data.BlockData blockData)
     
    org.bukkit.entity.FallingBlock
    spawnFallingBlock(org.bukkit.Location location, org.bukkit.material.MaterialData data)
     
    org.bukkit.entity.FallingBlock
    spawnFallingBlock(org.bukkit.Location location, org.bukkit.Material material, byte data)
    Deprecated.
    <T extends GlowEntity, E extends org.bukkit.entity.Entity>
    GlowEntity
    spawnGlowEntity(org.bukkit.Location location, Class<T> clazz, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason, @Nullable org.bukkit.util.Consumer<E> function)
    Spawns an entity.
    <T> void
    spawnParticle(@NotNull org.bukkit.Particle particle, double v, double v1, double v2, int i, double v3, double v4, double v5, double v6, T t, boolean b)
     
    <T> void
    spawnParticle(@NotNull org.bukkit.Particle particle, @NotNull org.bukkit.Location location, int i, double v, double v1, double v2, double v3, T t, boolean b)
     
    <T> void
    spawnParticle(@NotNull org.bukkit.Particle particle, @Nullable List<org.bukkit.entity.Player> list, @Nullable org.bukkit.entity.Player player, double v, double v1, double v2, int i, double v3, double v4, double v5, double v6, T t, boolean b)
     
    void
    spawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count)
     
    void
    spawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ)
     
    void
    spawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra)
     
    <T> void
    spawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, T data)
     
    <T> void
    spawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, T data)
     
    <T> void
    spawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count, T data)
     
    <T> void
    spawnParticle(org.bukkit.Particle particle, List<org.bukkit.entity.Player> receivers, org.bukkit.entity.Player source, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, T data)
     
    void
    spawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count)
     
    void
    spawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ)
     
    void
    spawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ, double extra)
     
    <T> void
    spawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, T data)
     
    <T> void
    spawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ, T data)
     
    <T> void
    spawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count, T data)
     
    org.bukkit.World.Spigot
     
    strikeLightning(org.bukkit.Location loc)
     
    strikeLightningEffect(org.bukkit.Location loc)
     
     
    boolean
    Unloads the world.
    boolean
    unloadChunk(int x, int z)
     
    boolean
    unloadChunk(int x, int z, boolean save)
     
    boolean
    unloadChunk(int x, int z, boolean save, boolean safe)
     
    boolean
    unloadChunk(org.bukkit.Chunk chunk)
     
    boolean
    unloadChunkRequest(int x, int z)
     
    boolean
    unloadChunkRequest(int x, int z, boolean safe)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.kyori.adventure.audience.Audience

    openBook, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter

    Methods inherited from interface net.kyori.adventure.audience.ForwardingAudience

    clearTitle, hideBossBar, openBook, playSound, playSound, resetTitle, sendActionBar, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, showBossBar, showTitle, stopSound

    Methods inherited from interface org.bukkit.World

    audiences, createExplosion, createExplosion, createExplosion, createExplosion, createExplosion, getBlockAtKey, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsyncUrgently, getChunkAtAsyncUrgently, getChunkAtAsyncUrgently, getChunkAtAsyncUrgently, getChunkAtAsyncUrgently, getHighestBlockAt, getHighestBlockAt, getHighestBlockYAt, getLocationAtKey, getNearbyEntitiesByType, getNearbyEntitiesByType, getNearbyEntitiesByType, getNearbyEntitiesByType, getNearbyEntitiesByType, getNearbyEntitiesByType, getNearbyLivingEntities, getNearbyLivingEntities, getNearbyLivingEntities, getNearbyLivingEntities, getNearbyLivingEntities, getNearbyLivingEntities, getNearbyPlayers, getNearbyPlayers, getNearbyPlayers, getNearbyPlayers, getNearbyPlayers, getNearbyPlayers, isChunkGenerated, spawn, spawn, spawnEntity, spawnEntity
  • Constructor Details

    • GlowWorld

      public GlowWorld(GlowServer server, org.bukkit.WorldCreator creator, WorldStorageProvider worldStorageProvider)
      Creates a new world from the options in the given WorldCreator.
      Parameters:
      server - The server for the world.
      creator - The WorldCreator to use.
      worldStorageProvider - The storage provider to use.
  • Method Details

    • newChunkLock

      public ChunkManager.ChunkLock newChunkLock(@NonNls @NonNls String desc)
      Get a new chunk lock object a player or other party can use to keep chunkManager loaded.
      Parameters:
      desc - A description for this chunk lock.
      Returns:
      The ChunkLock.
    • pulse

      public void pulse()
      Updates all the entities within this world.
    • broadcastBlockChangeInRange

      public void broadcastBlockChangeInRange(GlowChunk.Key chunkKey, BlockChangeMessage message)
    • rayTrace

      public float rayTrace(org.bukkit.Location location, GlowEntity entity)
      Calculates how much the rays from the location to the entity's bounding box is blocked.
      Parameters:
      location - The location for the rays to start
      entity - The entity that's bounding box is the ray's end point
      Returns:
      a value between 0 and 1, where 0 = all rays blocked and 1 = all rays unblocked
    • rayTrace

      @Nullable public @Nullable org.bukkit.util.RayTraceResult rayTrace(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.util.Vector vector, double v, @NotNull @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode, boolean b, double v1, @Nullable @Nullable Predicate<org.bukkit.entity.Entity> predicate)
      Specified by:
      rayTrace in interface org.bukkit.World
    • getMoonPhase

      public io.papermc.paper.world.MoonPhase getMoonPhase()
      Specified by:
      getMoonPhase in interface org.bukkit.World
    • getMoonPhaseFraction

      public double getMoonPhaseFraction()
      Returns the fraction of the moon that is illuminated, ranging from 0.0 at new moon to 1.0 at full moon. Always a multiple of 0.25. See Moon Phases at Gamepedia.
      Returns:
      the fraction of the moon that is illuminated
    • getRawPlayers

      public Collection<GlowPlayer> getRawPlayers()
    • getPlayers

      public List<org.bukkit.entity.Player> getPlayers()
      Specified by:
      getPlayers in interface org.bukkit.World
    • getEntity

      public org.bukkit.entity.Entity getEntity(UUID uuid)
      Specified by:
      getEntity in interface org.bukkit.World
    • getNearbyEntities

      public Collection<org.bukkit.entity.Entity> getNearbyEntities(org.bukkit.Location location, double x, double y, double z)
      Returns a list of entities within a bounding box centered around a Location.

      Some implementations may impose artificial restrictions on the size of the search bounding box.

      Specified by:
      getNearbyEntities in interface org.bukkit.World
      Parameters:
      location - The center of the bounding box
      x - 1/2 the size of the box along x axis
      y - 1/2 the size of the box along y axis
      z - 1/2 the size of the box along z axis
      Returns:
      the collection of entities near location. This will always be a non-null collection.
    • getNearbyEntities

      @NotNull public @NotNull Collection<org.bukkit.entity.Entity> getNearbyEntities(@NotNull @NotNull org.bukkit.Location location, double v, double v1, double v2, @Nullable @Nullable Predicate<org.bukkit.entity.Entity> predicate)
      Specified by:
      getNearbyEntities in interface org.bukkit.World
    • getNearbyEntities

      @NotNull public @NotNull Collection<org.bukkit.entity.Entity> getNearbyEntities(@NotNull org.bukkit.util.BoundingBox boundingBox)
      Specified by:
      getNearbyEntities in interface org.bukkit.World
    • getNearbyEntities

      @NotNull public @NotNull Collection<org.bukkit.entity.Entity> getNearbyEntities(@NotNull org.bukkit.util.BoundingBox boundingBox, @Nullable @Nullable Predicate<org.bukkit.entity.Entity> predicate)
      Specified by:
      getNearbyEntities in interface org.bukkit.World
    • rayTraceEntities

      @Nullable public @Nullable org.bukkit.util.RayTraceResult rayTraceEntities(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.util.Vector vector, double v)
      Specified by:
      rayTraceEntities in interface org.bukkit.World
    • rayTraceEntities

      @Nullable public @Nullable org.bukkit.util.RayTraceResult rayTraceEntities(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.util.Vector vector, double v, double v1)
      Specified by:
      rayTraceEntities in interface org.bukkit.World
    • rayTraceEntities

      @Nullable public @Nullable org.bukkit.util.RayTraceResult rayTraceEntities(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.util.Vector vector, double v, @Nullable @Nullable Predicate<org.bukkit.entity.Entity> predicate)
      Specified by:
      rayTraceEntities in interface org.bukkit.World
    • rayTraceEntities

      @Nullable public @Nullable org.bukkit.util.RayTraceResult rayTraceEntities(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.util.Vector vector, double v, double v1, @Nullable @Nullable Predicate<org.bukkit.entity.Entity> predicate)
      Specified by:
      rayTraceEntities in interface org.bukkit.World
    • rayTraceBlocks

      @Nullable public @Nullable org.bukkit.util.RayTraceResult rayTraceBlocks(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.util.Vector vector, double v)
      Specified by:
      rayTraceBlocks in interface org.bukkit.World
    • rayTraceBlocks

      @Nullable public @Nullable org.bukkit.util.RayTraceResult rayTraceBlocks(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.util.Vector vector, double v, @NotNull @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode)
      Specified by:
      rayTraceBlocks in interface org.bukkit.World
    • rayTraceBlocks

      @Nullable public @Nullable org.bukkit.util.RayTraceResult rayTraceBlocks(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.util.Vector vector, double v, @NotNull @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode, boolean b)
      Specified by:
      rayTraceBlocks in interface org.bukkit.World
    • getEntities

      public List<org.bukkit.entity.Entity> getEntities()
      Specified by:
      getEntities in interface org.bukkit.World
    • getLivingEntities

      public List<org.bukkit.entity.LivingEntity> getLivingEntities()
      Specified by:
      getLivingEntities in interface org.bukkit.World
    • getEntitiesByClass

      @Deprecated public <T extends org.bukkit.entity.Entity> Collection<T> getEntitiesByClass(Class<T>... classes)
      Deprecated.
      Specified by:
      getEntitiesByClass in interface org.bukkit.World
    • getEntitiesByClass

      public <T extends org.bukkit.entity.Entity> Collection<T> getEntitiesByClass(Class<T> cls)
      Specified by:
      getEntitiesByClass in interface org.bukkit.World
    • getEntitiesByClasses

      public Collection<org.bukkit.entity.Entity> getEntitiesByClasses(Class<?>... classes)
      Specified by:
      getEntitiesByClasses in interface org.bukkit.World
    • getSpawnLocation

      public org.bukkit.Location getSpawnLocation()
      Specified by:
      getSpawnLocation in interface org.bukkit.World
    • setSpawnLocation

      public boolean setSpawnLocation(org.bukkit.Location newSpawn)
      Specified by:
      setSpawnLocation in interface org.bukkit.World
    • setSpawnLocation

      public boolean setSpawnLocation(int x, int y, int z, float angle)
      Specified by:
      setSpawnLocation in interface org.bukkit.World
    • setSpawnLocation

      public boolean setSpawnLocation(int x, int y, int z)
      Specified by:
      setSpawnLocation in interface org.bukkit.World
    • setSpawnLocation

      public boolean setSpawnLocation(org.bukkit.Location newSpawn, boolean anchor)
      Sets the spawn location of the world.
      Parameters:
      newSpawn - the new spawn location
      anchor - if true, the spawn is never unloaded while the world is running
      Returns:
      true if the spawn location has changed
    • setSpawnLocation

      public boolean setSpawnLocation(int x, int y, int z, boolean anchor)
    • getPVP

      public boolean getPVP()
      Specified by:
      getPVP in interface org.bukkit.World
    • setPVP

      public void setPVP(boolean pvp)
      Specified by:
      setPVP in interface org.bukkit.World
    • getKeepSpawnInMemory

      public boolean getKeepSpawnInMemory()
      Specified by:
      getKeepSpawnInMemory in interface org.bukkit.World
    • setKeepSpawnInMemory

      public void setKeepSpawnInMemory(boolean keepLoaded)
      Specified by:
      setKeepSpawnInMemory in interface org.bukkit.World
    • setDifficulty

      public void setDifficulty(org.bukkit.Difficulty difficulty)
      Specified by:
      setDifficulty in interface org.bukkit.World
    • setSpawnFlags

      public void setSpawnFlags(boolean allowMonsters, boolean allowAnimals)
      Specified by:
      setSpawnFlags in interface org.bukkit.World
    • getAllowAnimals

      public boolean getAllowAnimals()
      Specified by:
      getAllowAnimals in interface org.bukkit.World
    • getAllowMonsters

      public boolean getAllowMonsters()
      Specified by:
      getAllowMonsters in interface org.bukkit.World
    • getUID

      public UUID getUID()
      Specified by:
      getUID in interface org.bukkit.World
    • getSeaLevel

      public int getSeaLevel()
      Specified by:
      getSeaLevel in interface org.bukkit.World
    • canGenerateStructures

      public boolean canGenerateStructures()
      Specified by:
      canGenerateStructures in interface org.bukkit.World
    • getTicksPerAnimalSpawns

      public long getTicksPerAnimalSpawns()
      Specified by:
      getTicksPerAnimalSpawns in interface org.bukkit.World
    • getTicksPerMonsterSpawns

      public long getTicksPerMonsterSpawns()
      Specified by:
      getTicksPerMonsterSpawns in interface org.bukkit.World
    • getTicksPerWaterSpawns

      public long getTicksPerWaterSpawns()
      Specified by:
      getTicksPerWaterSpawns in interface org.bukkit.World
    • getTicksPerWaterAmbientSpawns

      public long getTicksPerWaterAmbientSpawns()
      Specified by:
      getTicksPerWaterAmbientSpawns in interface org.bukkit.World
    • getTicksPerAmbientSpawns

      public long getTicksPerAmbientSpawns()
      Specified by:
      getTicksPerAmbientSpawns in interface org.bukkit.World
    • save

      public void save()
      Specified by:
      save in interface org.bukkit.World
    • save

      public void save(boolean async)
      Saves world to disk synchronously or asynchronously.
      Parameters:
      async - if true, save asynchronously
    • getGenerator

      public org.bukkit.generator.ChunkGenerator getGenerator()
      Specified by:
      getGenerator in interface org.bukkit.World
    • getPopulators

      public List<org.bukkit.generator.BlockPopulator> getPopulators()
      Specified by:
      getPopulators in interface org.bukkit.World
    • generateTree

      public boolean generateTree(org.bukkit.Location location, org.bukkit.TreeType type)
      Specified by:
      generateTree in interface org.bukkit.World
    • generateTree

      public boolean generateTree(org.bukkit.Location loc, org.bukkit.TreeType type, org.bukkit.BlockChangeDelegate delegate)
      Specified by:
      generateTree in interface org.bukkit.World
    • getStructures

      public Map<Integer,GlowStructure> getStructures()
    • getEntityCount

      public int getEntityCount()
      Specified by:
      getEntityCount in interface org.bukkit.World
    • getTileEntityCount

      @Deprecated public int getTileEntityCount()
      Deprecated.
      Specified by:
      getTileEntityCount in interface org.bukkit.World
    • getBlockEntityCount

      public int getBlockEntityCount()
      Returns the number of block entities in loaded chunkManager.
      Returns:
      the number of block entities
    • getTickableTileEntityCount

      @Deprecated public int getTickableTileEntityCount()
      Deprecated.
      Specified by:
      getTickableTileEntityCount in interface org.bukkit.World
    • getTickableBlockEntityCount

      public int getTickableBlockEntityCount()
      Returns the number of tickable block entities in loaded chunkManager.
      Returns:
      the number of tickable block entities
    • getChunkCount

      public int getChunkCount()
      Specified by:
      getChunkCount in interface org.bukkit.World
    • getPlayerCount

      public int getPlayerCount()
      Specified by:
      getPlayerCount in interface org.bukkit.World
    • getBlockAt

      public GlowBlock getBlockAt(org.bukkit.Location location)
      Specified by:
      getBlockAt in interface org.bukkit.World
    • getBlockAt

      public GlowBlock getBlockAt(int x, int y, int z)
      Specified by:
      getBlockAt in interface org.bukkit.World
    • getBlockTypeAt

      public org.bukkit.Material getBlockTypeAt(int x, int y, int z)
    • getBlockDataAt

      public org.bukkit.block.data.BlockData getBlockDataAt(int x, int y, int z)
    • getHighestBlockYAt

      public int getHighestBlockYAt(org.bukkit.Location location)
      Specified by:
      getHighestBlockYAt in interface org.bukkit.World
    • getHighestBlockYAt

      public int getHighestBlockYAt(int x, int z, @NotNull @NotNull com.destroystokyo.paper.HeightmapType heightmapType)
      Specified by:
      getHighestBlockYAt in interface org.bukkit.World
    • getHighestBlockYAt

      public int getHighestBlockYAt(int x, int z, @NotNull @NotNull org.bukkit.HeightMap heightMap)
      Specified by:
      getHighestBlockYAt in interface org.bukkit.World
    • getHighestBlockYAt

      public int getHighestBlockYAt(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.HeightMap heightMap)
      Specified by:
      getHighestBlockYAt in interface org.bukkit.World
    • getHighestBlockYAt

      public int getHighestBlockYAt(int x, int z)
      Specified by:
      getHighestBlockYAt in interface org.bukkit.World
    • getHighestBlockAt

      @NotNull public @NotNull org.bukkit.block.Block getHighestBlockAt(int x, int z, @NotNull @NotNull org.bukkit.HeightMap heightMap)
      Specified by:
      getHighestBlockAt in interface org.bukkit.World
    • getHighestBlockAt

      @NotNull public @NotNull org.bukkit.block.Block getHighestBlockAt(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.HeightMap heightMap)
      Specified by:
      getHighestBlockAt in interface org.bukkit.World
    • getHighestBlockAt

      public org.bukkit.block.Block getHighestBlockAt(int x, int z)
      Specified by:
      getHighestBlockAt in interface org.bukkit.World
    • getHighestBlockAt

      public org.bukkit.block.Block getHighestBlockAt(org.bukkit.Location location)
      Specified by:
      getHighestBlockAt in interface org.bukkit.World
    • getHighestBlockAt

      public org.bukkit.block.Block getHighestBlockAt(org.bukkit.Location location, org.bukkit.Material... except)
      Gets the lowest block at the given Location such that the block and all blocks above it are either air or one of the given materials.
      Parameters:
      location - Coordinates to get the highest block
      except - Blocks to exclude in addition to air
      Returns:
      Highest non-empty block
    • getChunkAt

      public GlowChunk getChunkAt(long chunkKey)
      Specified by:
      getChunkAt in interface org.bukkit.World
    • getChunkAt

      public org.bukkit.Chunk getChunkAt(org.bukkit.Location location)
      Specified by:
      getChunkAt in interface org.bukkit.World
    • getChunkAt

      public GlowChunk getChunkAt(int x, int z)
      Specified by:
      getChunkAt in interface org.bukkit.World
    • getChunkAt

      public org.bukkit.Chunk getChunkAt(org.bukkit.block.Block block)
      Specified by:
      getChunkAt in interface org.bukkit.World
    • getChunk

      public GlowChunk getChunk(GlowChunk.Key key)
    • getChunkAtAsync

      public void getChunkAtAsync(int x, int z, org.bukkit.World.ChunkLoadCallback cb)
      Specified by:
      getChunkAtAsync in interface org.bukkit.World
    • getChunkAtAsync

      public void getChunkAtAsync(org.bukkit.Location location, org.bukkit.World.ChunkLoadCallback cb)
      Specified by:
      getChunkAtAsync in interface org.bukkit.World
    • getChunkAtAsync

      public void getChunkAtAsync(org.bukkit.block.Block block, org.bukkit.World.ChunkLoadCallback cb)
      Specified by:
      getChunkAtAsync in interface org.bukkit.World
    • getChunkAtAsync

      @NotNull public @NotNull CompletableFuture<org.bukkit.Chunk> getChunkAtAsync(int x, int z, boolean gen)
      Specified by:
      getChunkAtAsync in interface org.bukkit.World
    • getChunkAtAsync

      @NotNull public @NotNull CompletableFuture<org.bukkit.Chunk> getChunkAtAsync(int x, int z, boolean gen, boolean urgent)
      Specified by:
      getChunkAtAsync in interface org.bukkit.World
    • getKey

      @NotNull public @NotNull org.bukkit.NamespacedKey getKey()
      Specified by:
      getKey in interface org.bukkit.Keyed
      Specified by:
      getKey in interface org.bukkit.World
    • isChunkLoaded

      public boolean isChunkLoaded(org.bukkit.Chunk chunk)
      Specified by:
      isChunkLoaded in interface org.bukkit.World
    • isChunkLoaded

      public boolean isChunkLoaded(int x, int z)
      Specified by:
      isChunkLoaded in interface org.bukkit.World
    • isChunkGenerated

      public boolean isChunkGenerated(int x, int z)
      Specified by:
      isChunkGenerated in interface org.bukkit.World
    • isChunkInUse

      public boolean isChunkInUse(int x, int z)
      Specified by:
      isChunkInUse in interface org.bukkit.World
    • getLoadedChunks

      public org.bukkit.Chunk[] getLoadedChunks()
      Specified by:
      getLoadedChunks in interface org.bukkit.World
    • loadChunk

      public void loadChunk(org.bukkit.Chunk chunk)
      Specified by:
      loadChunk in interface org.bukkit.World
    • loadChunk

      public void loadChunk(int x, int z)
      Specified by:
      loadChunk in interface org.bukkit.World
    • loadChunk

      public boolean loadChunk(int x, int z, boolean generate)
      Specified by:
      loadChunk in interface org.bukkit.World
    • unloadChunk

      public boolean unloadChunk(org.bukkit.Chunk chunk)
      Specified by:
      unloadChunk in interface org.bukkit.World
    • unloadChunk

      public boolean unloadChunk(int x, int z)
      Specified by:
      unloadChunk in interface org.bukkit.World
    • unloadChunk

      public boolean unloadChunk(int x, int z, boolean save)
      Specified by:
      unloadChunk in interface org.bukkit.World
    • unloadChunk

      public boolean unloadChunk(int x, int z, boolean save, boolean safe)
    • unloadChunkRequest

      public boolean unloadChunkRequest(int x, int z)
      Specified by:
      unloadChunkRequest in interface org.bukkit.World
    • unloadChunkRequest

      public boolean unloadChunkRequest(int x, int z, boolean safe)
    • regenerateChunk

      public boolean regenerateChunk(int x, int z)
      Specified by:
      regenerateChunk in interface org.bukkit.World
    • refreshChunk

      public boolean refreshChunk(int x, int z)
      Specified by:
      refreshChunk in interface org.bukkit.World
    • isChunkForceLoaded

      public boolean isChunkForceLoaded(int x, int z)
      Specified by:
      isChunkForceLoaded in interface org.bukkit.World
    • setChunkForceLoaded

      public void setChunkForceLoaded(int x, int z, boolean forced)
      Specified by:
      setChunkForceLoaded in interface org.bukkit.World
    • getForceLoadedChunks

      @NotNull public @NotNull Collection<org.bukkit.Chunk> getForceLoadedChunks()
      Specified by:
      getForceLoadedChunks in interface org.bukkit.World
    • addPluginChunkTicket

      public boolean addPluginChunkTicket(int x, int z, @NotNull @NotNull org.bukkit.plugin.Plugin plugin)
      Specified by:
      addPluginChunkTicket in interface org.bukkit.World
    • removePluginChunkTicket

      public boolean removePluginChunkTicket(int x, int z, @NotNull @NotNull org.bukkit.plugin.Plugin plugin)
      Specified by:
      removePluginChunkTicket in interface org.bukkit.World
    • removePluginChunkTickets

      public void removePluginChunkTickets(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
      Specified by:
      removePluginChunkTickets in interface org.bukkit.World
    • getPluginChunkTickets

      @NotNull public @NotNull Collection<org.bukkit.plugin.Plugin> getPluginChunkTickets(int x, int z)
      Specified by:
      getPluginChunkTickets in interface org.bukkit.World
    • getPluginChunkTickets

      @NotNull public @NotNull Map<org.bukkit.plugin.Plugin,Collection<org.bukkit.Chunk>> getPluginChunkTickets()
      Specified by:
      getPluginChunkTickets in interface org.bukkit.World
    • getEmptyChunkSnapshot

      public org.bukkit.ChunkSnapshot getEmptyChunkSnapshot(int x, int z, boolean includeBiome, boolean includeBiomeTempRain)
      Specified by:
      getEmptyChunkSnapshot in interface org.bukkit.World
    • getBiome

      public org.bukkit.block.Biome getBiome(int x, int z)
      Specified by:
      getBiome in interface org.bukkit.World
    • getBiome

      @NotNull public @NotNull org.bukkit.block.Biome getBiome(int x, int y, int z)
      Specified by:
      getBiome in interface org.bukkit.World
    • setBiome

      public void setBiome(int x, int z, @NotNull @NotNull org.bukkit.block.Biome bio)
      Specified by:
      setBiome in interface org.bukkit.World
    • setBiome

      public void setBiome(int x, int y, int z, @NotNull @NotNull org.bukkit.block.Biome biome)
      Specified by:
      setBiome in interface org.bukkit.World
    • getTemperature

      public double getTemperature(int x, int z)
      Specified by:
      getTemperature in interface org.bukkit.World
    • getTemperature

      public double getTemperature(int x, int y, int z)
      Specified by:
      getTemperature in interface org.bukkit.World
    • getHumidity

      public double getHumidity(int x, int z)
      Specified by:
      getHumidity in interface org.bukkit.World
    • getHumidity

      public double getHumidity(int x, int y, int z)
      Specified by:
      getHumidity in interface org.bukkit.World
    • getMinHeight

      public int getMinHeight()
      Specified by:
      getMinHeight in interface org.bukkit.World
    • spawn

      public <T extends org.bukkit.entity.Entity> T spawn(org.bukkit.Location location, Class<T> clazz) throws IllegalArgumentException
      Specified by:
      spawn in interface org.bukkit.World
      Throws:
      IllegalArgumentException
    • spawn

      public <T extends org.bukkit.entity.Entity> T spawn(org.bukkit.Location location, Class<T> clazz, org.bukkit.util.Consumer<T> function) throws IllegalArgumentException
      Specified by:
      spawn in interface org.bukkit.World
      Throws:
      IllegalArgumentException
    • spawn

      @NotNull public <T extends org.bukkit.entity.Entity> T spawn(org.bukkit.Location location, Class<T> clazz, org.bukkit.util.Consumer<T> function, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason spawnReason) throws IllegalArgumentException
      Specified by:
      spawn in interface org.bukkit.World
      Throws:
      IllegalArgumentException
    • spawnGlowEntity

      public <T extends GlowEntity, E extends org.bukkit.entity.Entity> GlowEntity spawnGlowEntity(org.bukkit.Location location, Class<T> clazz, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason, @Nullable @Nullable org.bukkit.util.Consumer<E> function) throws IllegalArgumentException
      Spawns an entity.
      Parameters:
      location - the Location to spawn the entity at
      clazz - the class of the Entity to spawn
      reason - the reason for the spawning of the entity
      Returns:
      an instance of the spawned Entity
      Throws:
      IllegalArgumentException - TODO: document the reason this can happen
    • spawnCustomEntity

      public <T extends org.bukkit.entity.Entity> T spawnCustomEntity(org.bukkit.Location location, String id) throws IllegalArgumentException
      Spawn a custom entity at the given Location.
      Type Parameters:
      T - the class of the Entity to spawn
      Parameters:
      location - the Location to spawn the entity at
      id - the id of the custom entity
      Returns:
      an instance of the spawned Entity
      Throws:
      IllegalArgumentException
    • spawnCustomEntity

      public <T extends org.bukkit.entity.Entity> T spawnCustomEntity(org.bukkit.Location location, String id, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason) throws IllegalArgumentException
      Spawn a custom entity at the given Location, with the given CreatureSpawnEvent.SpawnReason.
      Type Parameters:
      T - the class of the Entity to spawn
      Parameters:
      location - the Location to spawn the entity at
      id - the id of the custom entity
      reason - the reason for the spawning of the entity
      Returns:
      an instance of the spawned Entity
      Throws:
      IllegalArgumentException
    • dropItem

      public GlowItem dropItem(org.bukkit.Location location, org.bukkit.inventory.ItemStack item)
      Spawn an item at the given Location without shooting effect.
      Specified by:
      dropItem in interface org.bukkit.World
      Parameters:
      location - the Location to spawn the item at
      item - the ItemStack the item should have
    • dropItem

      @NotNull public @NotNull org.bukkit.entity.Item dropItem(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.inventory.ItemStack stack, @Nullable @Nullable org.bukkit.util.Consumer<org.bukkit.entity.Item> consumer)
      Specified by:
      dropItem in interface org.bukkit.World
    • dropItemNaturally

      public GlowItem dropItemNaturally(org.bukkit.Location location, org.bukkit.inventory.ItemStack item)
      Spawn an item at the given Location with shooting effect.
      Specified by:
      dropItemNaturally in interface org.bukkit.World
      Parameters:
      location - the Location to spawn the item at
      item - the ItemStack the item should have
    • dropItemNaturally

      @NotNull public @NotNull org.bukkit.entity.Item dropItemNaturally(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.inventory.ItemStack stack, @Nullable @Nullable org.bukkit.util.Consumer<org.bukkit.entity.Item> consumer)
      Specified by:
      dropItemNaturally in interface org.bukkit.World
    • spawnArrow

      public org.bukkit.entity.Arrow spawnArrow(org.bukkit.Location location, org.bukkit.util.Vector velocity, float speed, float spread)
      Specified by:
      spawnArrow in interface org.bukkit.World
    • spawnArrow

      @NotNull public <T extends org.bukkit.entity.AbstractArrow> T spawnArrow(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.util.Vector vector, float speed, float spread, @NotNull @NotNull Class<T> clazz)
      Specified by:
      spawnArrow in interface org.bukkit.World
    • spawnFallingBlock

      public org.bukkit.entity.FallingBlock spawnFallingBlock(org.bukkit.Location location, org.bukkit.material.MaterialData data) throws IllegalArgumentException
      Specified by:
      spawnFallingBlock in interface org.bukkit.World
      Throws:
      IllegalArgumentException
    • spawnFallingBlock

      @Deprecated public org.bukkit.entity.FallingBlock spawnFallingBlock(org.bukkit.Location location, org.bukkit.Material material, byte data) throws IllegalArgumentException
      Deprecated.
      Specified by:
      spawnFallingBlock in interface org.bukkit.World
      Throws:
      IllegalArgumentException
    • spawnFallingBlock

      public org.bukkit.entity.FallingBlock spawnFallingBlock(org.bukkit.Location location, org.bukkit.block.data.BlockData blockData) throws IllegalArgumentException
      Specified by:
      spawnFallingBlock in interface org.bukkit.World
      Throws:
      IllegalArgumentException
    • spawnEntity

      public org.bukkit.entity.Entity spawnEntity(org.bukkit.Location loc, org.bukkit.entity.EntityType type)
      Specified by:
      spawnEntity in interface org.bukkit.World
    • strikeLightning

      public GlowLightningStrike strikeLightning(org.bukkit.Location loc)
      Specified by:
      strikeLightning in interface org.bukkit.World
    • strikeLightningEffect

      public GlowLightningStrike strikeLightningEffect(org.bukkit.Location loc)
      Specified by:
      strikeLightningEffect in interface org.bukkit.World
    • setTime

      public void setTime(long time)
      Specified by:
      setTime in interface org.bukkit.World
    • isDayTime

      public boolean isDayTime()
      Specified by:
      isDayTime in interface org.bukkit.World
    • getGameTime

      public long getGameTime()
      Specified by:
      getGameTime in interface org.bukkit.World
    • hasStorm

      public boolean hasStorm()
      Specified by:
      hasStorm in interface org.bukkit.World
    • setStorm

      public void setStorm(boolean hasStorm)
      Specified by:
      setStorm in interface org.bukkit.World
    • setThundering

      public void setThundering(boolean thundering)
      Specified by:
      setThundering in interface org.bukkit.World
    • isClearWeather

      public boolean isClearWeather()
      Specified by:
      isClearWeather in interface org.bukkit.World
    • setClearWeatherDuration

      public void setClearWeatherDuration(int i)
      Specified by:
      setClearWeatherDuration in interface org.bukkit.World
    • getClearWeatherDuration

      public int getClearWeatherDuration()
      Specified by:
      getClearWeatherDuration in interface org.bukkit.World
    • createExplosion

      public boolean createExplosion(org.bukkit.Location loc, float power)
      Specified by:
      createExplosion in interface org.bukkit.World
    • createExplosion

      public boolean createExplosion(org.bukkit.Location loc, float power, boolean setFire)
      Specified by:
      createExplosion in interface org.bukkit.World
    • createExplosion

      public boolean createExplosion(org.bukkit.entity.Entity source, org.bukkit.Location loc, float power, boolean setFire, boolean breakBlocks)
      Specified by:
      createExplosion in interface org.bukkit.World
    • createExplosion

      public boolean createExplosion(@NotNull @NotNull org.bukkit.Location location, float power, boolean setFire, boolean breakBlocks)
      Specified by:
      createExplosion in interface org.bukkit.World
    • createExplosion

      public boolean createExplosion(@NotNull @NotNull org.bukkit.Location location, float power, boolean setFire, boolean breakBlocks, @Nullable @Nullable org.bukkit.entity.Entity source)
      Specified by:
      createExplosion in interface org.bukkit.World
    • createExplosion

      public boolean createExplosion(double x, double y, double z, float power)
      Specified by:
      createExplosion in interface org.bukkit.World
    • createExplosion

      public boolean createExplosion(double x, double y, double z, float power, boolean setFire)
      Specified by:
      createExplosion in interface org.bukkit.World
    • createExplosion

      public boolean createExplosion(double x, double y, double z, float power, boolean setFire, boolean breakBlocks)
      Specified by:
      createExplosion in interface org.bukkit.World
    • createExplosion

      public boolean createExplosion(double x, double y, double z, float power, boolean setFire, boolean breakBlocks, @Nullable @Nullable org.bukkit.entity.Entity source)
      Specified by:
      createExplosion in interface org.bukkit.World
    • createExplosion

      public boolean createExplosion(org.bukkit.entity.Entity source, double x, double y, double z, float power, boolean incendiary, boolean breakBlocks)
      Create an explosion with a specific entity as the source.
      Parameters:
      source - The entity to treat as the source, or null.
      x - X coordinate
      y - Y coordinate
      z - Z coordinate
      power - The power of explosion, where 4F is TNT
      incendiary - Whether or not to set blocks on fire
      breakBlocks - Whether or not to have blocks be destroyed
      Returns:
      false if explosion was canceled, otherwise true
    • playEffect

      public void playEffect(org.bukkit.Location location, org.bukkit.Effect effect, int data)
      Specified by:
      playEffect in interface org.bukkit.World
    • playEffect

      public void playEffect(org.bukkit.Location location, org.bukkit.Effect effect, int data, int radius)
      Specified by:
      playEffect in interface org.bukkit.World
    • playEffect

      public <T> void playEffect(org.bukkit.Location location, org.bukkit.Effect effect, T data)
      Specified by:
      playEffect in interface org.bukkit.World
    • playEffect

      public <T> void playEffect(org.bukkit.Location location, org.bukkit.Effect effect, T data, int radius)
      Specified by:
      playEffect in interface org.bukkit.World
    • playEffectExceptTo

      public void playEffectExceptTo(org.bukkit.Location location, org.bukkit.Effect effect, int data, int radius, org.bukkit.entity.Player exclude)
      Plays an effect to all but one player within a given radius around a location.
      Parameters:
      location - the Location around which players must be to hear the effect
      effect - the Effect
      data - a data bit needed for some effects
      radius - the radius around the location
      exclude - the player who won't see the effect
    • playSound

      public void playSound(org.bukkit.Location location, org.bukkit.Sound sound, float volume, float pitch)
      Specified by:
      playSound in interface org.bukkit.World
    • playSound

      public void playSound(org.bukkit.Location location, String sound, float volume, float pitch)
      Specified by:
      playSound in interface org.bukkit.World
    • playSound

      public void playSound(org.bukkit.Location location, org.bukkit.Sound sound, org.bukkit.SoundCategory category, float volume, float pitch)
      Specified by:
      playSound in interface org.bukkit.World
    • playSound

      public void playSound(org.bukkit.Location location, String sound, org.bukkit.SoundCategory category, float volume, float pitch)
      Specified by:
      playSound in interface org.bukkit.World
    • spigot

      public org.bukkit.World.Spigot spigot()
      Specified by:
      spigot in interface org.bukkit.World
    • locateNearestRaid

      @Nullable public @Nullable org.bukkit.Raid locateNearestRaid(@NotNull @NotNull org.bukkit.Location location, int radius)
      Specified by:
      locateNearestRaid in interface org.bukkit.World
    • getRaids

      @NotNull public @NotNull List<org.bukkit.Raid> getRaids()
      Specified by:
      getRaids in interface org.bukkit.World
    • getEnderDragonBattle

      @Nullable public @Nullable org.bukkit.boss.DragonBattle getEnderDragonBattle()
      Specified by:
      getEnderDragonBattle in interface org.bukkit.World
    • showParticle

      public void showParticle(org.bukkit.Location loc, org.bukkit.Effect particle, float offsetX, float offsetY, float offsetZ, float speed, int amount)
      Displays the given particle to all players.
      Parameters:
      loc - the location
      particle - the particle type
      offsetX - TODO: document this parameter
      offsetY - TODO: document this parameter
      offsetZ - TODO: document this parameter
      speed - TODO: document this parameter
      amount - the number of particles
    • showParticle

      public void showParticle(org.bukkit.Location loc, org.bukkit.Effect particle, int id, int data, float offsetX, float offsetY, float offsetZ, float speed, int amount, int radius)
      Displays the given particle to all players.
      Parameters:
      loc - the location
      particle - the particle type
      id - the block or item type ID
      data - the block or item data
      offsetX - TODO: document this parameter
      offsetY - TODO: document this parameter
      offsetZ - TODO: document this parameter
      speed - TODO: document this parameter
      amount - the number of particles
      radius - TODO: document this parameter
    • unload

      public boolean unload()
      Unloads the world.
      Returns:
      true if successful
    • getWorldFolder

      public File getWorldFolder()
      Get the world folder.
      Specified by:
      getWorldFolder in interface org.bukkit.World
      Returns:
      world folder
    • getGameRules

      public String[] getGameRules()
      Specified by:
      getGameRules in interface org.bukkit.World
    • getGameRuleValue

      public String getGameRuleValue(@NonNls @NonNls String rule)
      Specified by:
      getGameRuleValue in interface org.bukkit.World
    • getGameRuleValue

      public <T> T getGameRuleValue(org.bukkit.GameRule<T> gameRule)
      Specified by:
      getGameRuleValue in interface org.bukkit.World
    • setGameRuleValue

      public boolean setGameRuleValue(@NonNls @NonNls String rule, String value)
      Specified by:
      setGameRuleValue in interface org.bukkit.World
    • isGameRule

      public boolean isGameRule(String rule)
      Specified by:
      isGameRule in interface org.bukkit.World
    • getGameRuleDefault

      public <T> T getGameRuleDefault(org.bukkit.GameRule<T> gameRule)
      Specified by:
      getGameRuleDefault in interface org.bukkit.World
    • setGameRule

      public <T> boolean setGameRule(org.bukkit.GameRule<T> gameRule, T t)
      Specified by:
      setGameRule in interface org.bukkit.World
    • getFunctions

      public Map<String,CommandFunction> getFunctions()
    • spawnParticle

      public void spawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count)
      Specified by:
      spawnParticle in interface org.bukkit.World
    • spawnParticle

      public void spawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count)
      Specified by:
      spawnParticle in interface org.bukkit.World
    • spawnParticle

      public <T> void spawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count, T data)
      Specified by:
      spawnParticle in interface org.bukkit.World
    • spawnParticle

      public <T> void spawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count, T data)
      Specified by:
      spawnParticle in interface org.bukkit.World
    • spawnParticle

      public void spawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ)
      Specified by:
      spawnParticle in interface org.bukkit.World
    • spawnParticle

      public void spawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ)
      Specified by:
      spawnParticle in interface org.bukkit.World
    • spawnParticle

      public <T> void spawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ, T data)
      Specified by:
      spawnParticle in interface org.bukkit.World
    • spawnParticle

      public <T> void spawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, T data)
      Specified by:
      spawnParticle in interface org.bukkit.World
    • spawnParticle

      public void spawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ, double extra)
      Specified by:
      spawnParticle in interface org.bukkit.World
    • spawnParticle

      public void spawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra)
      Specified by:
      spawnParticle in interface org.bukkit.World
    • spawnParticle

      public <T> void spawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, T data)
      Specified by:
      spawnParticle in interface org.bukkit.World
    • spawnParticle

      public <T> void spawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, T data)
      Specified by:
      spawnParticle in interface org.bukkit.World
    • spawnParticle

      public <T> void spawnParticle(org.bukkit.Particle particle, List<org.bukkit.entity.Player> receivers, org.bukkit.entity.Player source, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, T data)
      Specified by:
      spawnParticle in interface org.bukkit.World
    • spawnParticle

      public <T> void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, @Nullable @Nullable List<org.bukkit.entity.Player> list, @Nullable @Nullable org.bukkit.entity.Player player, double v, double v1, double v2, int i, double v3, double v4, double v5, double v6, @Nullable T t, boolean b)
      Specified by:
      spawnParticle in interface org.bukkit.World
    • spawnParticle

      public <T> void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, @NotNull @NotNull org.bukkit.Location location, int i, double v, double v1, double v2, double v3, @Nullable T t, boolean b)
      Specified by:
      spawnParticle in interface org.bukkit.World
    • spawnParticle

      public <T> void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, double v, double v1, double v2, int i, double v3, double v4, double v5, double v6, @Nullable T t, boolean b)
      Specified by:
      spawnParticle in interface org.bukkit.World
    • locateNearestStructure

      @Nullable public @Nullable org.bukkit.Location locateNearestStructure(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.StructureType structureType, int i, boolean b)
      Specified by:
      locateNearestStructure in interface org.bukkit.World
    • locateNearestBiome

      @Nullable public @Nullable org.bukkit.Location locateNearestBiome(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.block.Biome biome, int i)
      Specified by:
      locateNearestBiome in interface org.bukkit.World
    • locateNearestBiome

      @Nullable public @Nullable org.bukkit.Location locateNearestBiome(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.block.Biome biome, int i, int i1)
      Specified by:
      locateNearestBiome in interface org.bukkit.World
    • isUltrawarm

      public boolean isUltrawarm()
      Specified by:
      isUltrawarm in interface org.bukkit.World
    • isNatural

      public boolean isNatural()
      Specified by:
      isNatural in interface org.bukkit.World
    • getCoordinateScale

      public double getCoordinateScale()
      Specified by:
      getCoordinateScale in interface org.bukkit.World
    • hasSkylight

      public boolean hasSkylight()
      Specified by:
      hasSkylight in interface org.bukkit.World
    • hasBedrockCeiling

      public boolean hasBedrockCeiling()
      Specified by:
      hasBedrockCeiling in interface org.bukkit.World
    • isPiglinSafe

      public boolean isPiglinSafe()
      Specified by:
      isPiglinSafe in interface org.bukkit.World
    • doesBedWork

      public boolean doesBedWork()
      Specified by:
      doesBedWork in interface org.bukkit.World
    • doesRespawnAnchorWork

      public boolean doesRespawnAnchorWork()
      Specified by:
      doesRespawnAnchorWork in interface org.bukkit.World
    • hasRaids

      public boolean hasRaids()
      Specified by:
      hasRaids in interface org.bukkit.World
    • isFixedTime

      public boolean isFixedTime()
      Specified by:
      isFixedTime in interface org.bukkit.World
    • getInfiniburn

      @NotNull public @NotNull Collection<org.bukkit.Material> getInfiniburn()
      Specified by:
      getInfiniburn in interface org.bukkit.World
    • getNoTickViewDistance

      public int getNoTickViewDistance()
      Specified by:
      getNoTickViewDistance in interface org.bukkit.World
    • setNoTickViewDistance

      public void setNoTickViewDistance(int viewDistance)
      Specified by:
      setNoTickViewDistance in interface org.bukkit.World
    • setMetadata

      public void setMetadata(String metadataKey, org.bukkit.metadata.MetadataValue newMetadataValue)
      Specified by:
      setMetadata in interface org.bukkit.metadata.Metadatable
    • getMetadata

      public List<org.bukkit.metadata.MetadataValue> getMetadata(String metadataKey)
      Specified by:
      getMetadata in interface org.bukkit.metadata.Metadatable
    • hasMetadata

      public boolean hasMetadata(String metadataKey)
      Specified by:
      hasMetadata in interface org.bukkit.metadata.Metadatable
    • removeMetadata

      public void removeMetadata(String metadataKey, org.bukkit.plugin.Plugin owningPlugin)
      Specified by:
      removeMetadata in interface org.bukkit.metadata.Metadatable
    • sendPluginMessage

      public void sendPluginMessage(org.bukkit.plugin.Plugin source, String channel, byte[] message)
      Specified by:
      sendPluginMessage in interface org.bukkit.plugin.messaging.PluginMessageRecipient
    • getListeningPluginChannels

      public Set<String> getListeningPluginChannels()
      Specified by:
      getListeningPluginChannels in interface org.bukkit.plugin.messaging.PluginMessageRecipient
    • getTickMap

      public ConcurrentSet<org.bukkit.Location> getTickMap()
    • requestPulse

      public void requestPulse(GlowBlock block)
    • requestPulse

      public void requestPulse(org.bukkit.Location location)
    • cancelPulse

      public void cancelPulse(GlowBlock block)
    • cancelPulse

      public void cancelPulse(org.bukkit.Location location)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getServer

      public GlowServer getServer()
      Get the world's parent server.
      Returns:
      The GlowServer for the world.
    • getName

      public String getName()
      The name of this world.
      Specified by:
      getName in interface org.bukkit.World
    • getChunkManager

      public ChunkManager getChunkManager()
      The chunk manager.
      Returns:
      The ChunkManager for the world.
    • getStorage

      public WorldStorageProvider getStorage()
      The storage provider for the world.
      Returns:
      The WorldStorageProvider.
    • getEntityManager

      public EntityManager getEntityManager()
      The entity manager.
      Returns:
      the entity manager
    • getGameRuleMap

      public GameRuleManager getGameRuleMap()
      The game rules used in this world.
    • getEnvironment

      public org.bukkit.World.Environment getEnvironment()
      The environment.
      Specified by:
      getEnvironment in interface org.bukkit.World
    • getSeed

      public long getSeed()
      The world seed.
      Specified by:
      getSeed in interface org.bukkit.World
    • getSeedHash

      public byte[] getSeedHash()
      The SHA-256 hash of the world seed.
    • getWorldBorder

      public GlowWorldBorder getWorldBorder()
      The world border.
      Specified by:
      getWorldBorder in interface org.bukkit.World
    • getWorldType

      public org.bukkit.WorldType getWorldType()
      The world type.
      Specified by:
      getWorldType in interface org.bukkit.World
    • setWorldType

      public void setWorldType(org.bukkit.WorldType worldType)
      The world type.
    • getWeatherDuration

      public int getWeatherDuration()
      How many ticks until the rain/snow status is expected to change.
      Specified by:
      getWeatherDuration in interface org.bukkit.World
    • setWeatherDuration

      public void setWeatherDuration(int weatherDuration)
      How many ticks until the rain/snow status is expected to change.
      Specified by:
      setWeatherDuration in interface org.bukkit.World
    • isThundering

      public boolean isThundering()
      Whether it is currently thundering on this world.
      Specified by:
      isThundering in interface org.bukkit.World
    • getThunderDuration

      public int getThunderDuration()
      How many ticks until the thundering status is expected to change.
      Specified by:
      getThunderDuration in interface org.bukkit.World
    • setThunderDuration

      public void setThunderDuration(int thunderDuration)
      How many ticks until the thundering status is expected to change.
      Specified by:
      setThunderDuration in interface org.bukkit.World
    • getRainDensity

      public float getRainDensity()
      The rain density on the current world tick.
    • getSkyDarkness

      public float getSkyDarkness()
      The sky darkness on the current world tick.
    • getFullTime

      public long getFullTime()
      The age of the world, in ticks.
      Specified by:
      getFullTime in interface org.bukkit.World
    • setFullTime

      public void setFullTime(long fullTime)
      The age of the world, in ticks.
      Specified by:
      setFullTime in interface org.bukkit.World
    • getTime

      public long getTime()
      The current world time.
      Specified by:
      getTime in interface org.bukkit.World
    • isAutoSave

      public boolean isAutoSave()
      The check to autosave.
      Specified by:
      isAutoSave in interface org.bukkit.World
    • setAutoSave

      public void setAutoSave(boolean autoSave)
      The check to autosave.
      Specified by:
      setAutoSave in interface org.bukkit.World
    • getDifficulty

      public org.bukkit.Difficulty getDifficulty()
      The world's gameplay difficulty.
      Specified by:
      getDifficulty in interface org.bukkit.World
    • setTicksPerAnimalSpawns

      public void setTicksPerAnimalSpawns(int ticksPerAnimalSpawns)
      Ticks between when passive mobs are spawned.
      Specified by:
      setTicksPerAnimalSpawns in interface org.bukkit.World
    • setTicksPerMonsterSpawns

      public void setTicksPerMonsterSpawns(int ticksPerMonsterSpawns)
      Ticks between when hostile mobs are spawned.
      Specified by:
      setTicksPerMonsterSpawns in interface org.bukkit.World
    • setTicksPerWaterSpawns

      public void setTicksPerWaterSpawns(int ticksPerWaterSpawns)
      Ticks between when water mobs are spawned.
      Specified by:
      setTicksPerWaterSpawns in interface org.bukkit.World
    • setTicksPerWaterAmbientSpawns

      public void setTicksPerWaterAmbientSpawns(int ticksPerWaterAmbientSpawns)
      Ticks between when ambient water mobs are spawned.
      Specified by:
      setTicksPerWaterAmbientSpawns in interface org.bukkit.World
    • setTicksPerAmbientSpawns

      public void setTicksPerAmbientSpawns(int ticksPerAmbientSpawns)
      Ticks between when ambient mobs are spawned.
      Specified by:
      setTicksPerAmbientSpawns in interface org.bukkit.World
    • getMonsterSpawnLimit

      public int getMonsterSpawnLimit()
      Per-world spawn limits on hostile mobs.
      Specified by:
      getMonsterSpawnLimit in interface org.bukkit.World
    • setMonsterSpawnLimit

      public void setMonsterSpawnLimit(int monsterSpawnLimit)
      Per-world spawn limits on hostile mobs.
      Specified by:
      setMonsterSpawnLimit in interface org.bukkit.World
    • getAnimalSpawnLimit

      public int getAnimalSpawnLimit()
      Per-world spawn limits on passive mobs.
      Specified by:
      getAnimalSpawnLimit in interface org.bukkit.World
    • setAnimalSpawnLimit

      public void setAnimalSpawnLimit(int animalSpawnLimit)
      Per-world spawn limits on passive mobs.
      Specified by:
      setAnimalSpawnLimit in interface org.bukkit.World
    • getWaterAnimalSpawnLimit

      public int getWaterAnimalSpawnLimit()
      Per-world spawn limits on water mobs.
      Specified by:
      getWaterAnimalSpawnLimit in interface org.bukkit.World
    • setWaterAnimalSpawnLimit

      public void setWaterAnimalSpawnLimit(int waterAnimalSpawnLimit)
      Per-world spawn limits on water mobs.
      Specified by:
      setWaterAnimalSpawnLimit in interface org.bukkit.World
    • getWaterAmbientSpawnLimit

      public int getWaterAmbientSpawnLimit()
      Per-world spawn limits on water ambient mobs.
      Specified by:
      getWaterAmbientSpawnLimit in interface org.bukkit.World
    • setWaterAmbientSpawnLimit

      public void setWaterAmbientSpawnLimit(int waterAmbientSpawnLimit)
      Per-world spawn limits on water ambient mobs.
      Specified by:
      setWaterAmbientSpawnLimit in interface org.bukkit.World
    • getAmbientSpawnLimit

      public int getAmbientSpawnLimit()
      Per-world spawn limits on ambient mobs (bats).
      Specified by:
      getAmbientSpawnLimit in interface org.bukkit.World
    • setAmbientSpawnLimit

      public void setAmbientSpawnLimit(int ambientSpawnLimit)
      Per-world spawn limits on ambient mobs (bats).
      Specified by:
      setAmbientSpawnLimit in interface org.bukkit.World
    • getMaxHeight

      public int getMaxHeight()
      The maximum height at which players may place blocks.
      Specified by:
      getMaxHeight in interface org.bukkit.World
    • isInitialized

      public boolean isInitialized()
      Whether the world has been initialized (i.e. loading/spawn generation is completed).
    • getViewDistance

      public int getViewDistance()
      Per-world view distance.
      Specified by:
      getViewDistance in interface org.bukkit.World
    • setViewDistance

      public void setViewDistance(int viewDistance)
      Per-world view distance.
      Specified by:
      setViewDistance in interface org.bukkit.World
    • isHardcore

      public boolean isHardcore()
      Per-world hardcore setting.
      Specified by:
      isHardcore in interface org.bukkit.World
    • setHardcore

      public void setHardcore(boolean hardcore)
      Per-world hardcore setting.
      Specified by:
      setHardcore in interface org.bukkit.World