Class WorldMock

java.lang.Object
be.seeseemelk.mockbukkit.WorldMock
All Implemented Interfaces:
net.kyori.adventure.audience.Audience, net.kyori.adventure.audience.ForwardingAudience, net.kyori.adventure.key.Keyed, net.kyori.adventure.pointer.Pointered, org.bukkit.generator.WorldInfo, org.bukkit.Keyed, org.bukkit.metadata.Metadatable, org.bukkit.persistence.PersistentDataHolder, org.bukkit.plugin.messaging.PluginMessageRecipient, org.bukkit.RegionAccessor, org.bukkit.World

public class WorldMock extends Object implements org.bukkit.World
Mock implementation of a 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
    Creates a new mock world with a height of 128 and will spawn grass until a y of 4.
    WorldMock(@NotNull org.bukkit.WorldCreator creator)
    Creates a new mock world.
    WorldMock(org.bukkit.Material defaultBlock, int grassHeight)
    Creates a new mock world with a height of 128.
    WorldMock(org.bukkit.Material defaultBlock, int maxHeight, int grassHeight)
    Creates a new mock world with a specific height from 0.
    WorldMock(org.bukkit.Material defaultBlock, int minHeight, int maxHeight, int grassHeight)
    Creates a new mock world.
    WorldMock(org.bukkit.Material defaultBlock, org.bukkit.block.Biome defaultBiome, int maxHeight, int grassHeight)
    Creates a new mock world with a specific height from 0.
    WorldMock(org.bukkit.Material defaultBlock, org.bukkit.block.Biome defaultBiome, int minHeight, int maxHeight, int grassHeight)
    Creates a new mock world.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends org.bukkit.entity.Entity>
    T
    addEntity(T t)
     
    boolean
    addPluginChunkTicket(int x, int z, org.bukkit.plugin.Plugin plugin)
     
    boolean
     
    void
    clearMetadata(org.bukkit.plugin.Plugin plugin)
     
    @NotNull BlockMock
    createBlock(@NotNull Coordinate c)
    Makes sure that a certain block exists on the coordinate.
    <T extends org.bukkit.entity.Entity>
    T
    createEntity(@NotNull org.bukkit.Location location, @NotNull Class<T> aClass)
     
    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, org.bukkit.entity.Entity source)
     
    boolean
    createExplosion(@Nullable org.bukkit.entity.Entity source, @NotNull 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
    createExplosion(org.bukkit.Location loc, float power, boolean setFire, boolean breakBlocks)
     
    boolean
    createExplosion(org.bukkit.Location loc, float power, boolean setFire, boolean breakBlocks, org.bukkit.entity.Entity source)
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    @NotNull org.bukkit.entity.Item
    dropItem(@NotNull org.bukkit.Location loc, @NotNull org.bukkit.inventory.ItemStack item)
     
    @NotNull org.bukkit.entity.Item
    dropItem(@NotNull org.bukkit.Location location, @NotNull org.bukkit.inventory.ItemStack item, @Nullable Consumer<? super org.bukkit.entity.Item> function)
     
    @NotNull org.bukkit.entity.Item
    dropItemNaturally(@NotNull org.bukkit.Location loc, @NotNull org.bukkit.inventory.ItemStack item)
     
    @NotNull org.bukkit.entity.Item
    dropItemNaturally(@NotNull org.bukkit.Location location, @NotNull org.bukkit.inventory.ItemStack item, @Nullable Consumer<? super org.bukkit.entity.Item> function)
     
    @Nullable org.bukkit.Location
    findLightningRod(@NotNull org.bukkit.Location location)
     
    @Nullable org.bukkit.Location
    findLightningTarget(@NotNull org.bukkit.Location location)
     
    boolean
    generateTree(@NotNull org.bukkit.Location location, @NotNull Random random, @NotNull org.bukkit.TreeType type)
     
    boolean
    generateTree(@NotNull org.bukkit.Location location, @NotNull Random random, @NotNull org.bukkit.TreeType type, @Nullable Consumer<? super org.bukkit.block.BlockState> stateConsumer)
     
    boolean
    generateTree(org.bukkit.Location location, Random random, org.bukkit.TreeType type, Predicate<? super org.bukkit.block.BlockState> statePredicate)
     
    boolean
    generateTree(org.bukkit.Location location, org.bukkit.TreeType type)
     
    boolean
    generateTree(org.bukkit.Location loc, org.bukkit.TreeType type, org.bukkit.BlockChangeDelegate delegate)
    Deprecated.
    boolean
     
    boolean
     
    int
    Deprecated.
    int
    Deprecated.
    @NotNull org.bukkit.block.Biome
    getBiome(int x, int z)
    Deprecated.
    @NotNull org.bukkit.block.Biome
    getBiome(int x, int y, int z)
     
    @NotNull org.bukkit.block.Biome
    getBiome(@NotNull org.bukkit.Location location)
     
    protected @NotNull Map<Coordinate,org.bukkit.block.Biome>
    Gets a map of what biome is at each coordinate.
    @Nullable org.bukkit.generator.BiomeProvider
     
    @NotNull BlockMock
    getBlockAt(int x, int y, int z)
     
    @NotNull BlockMock
    getBlockAt(@NotNull Coordinate coordinate)
    Gets the block at a coordinate.
    @NotNull BlockMock
    getBlockAt(@NotNull org.bukkit.Location location)
     
    @NotNull org.bukkit.block.Block
    getBlockAtKey(long key)
    Deprecated.
    @NotNull org.bukkit.block.data.BlockData
    getBlockData(int x, int y, int z)
     
    @NotNull org.bukkit.block.data.BlockData
    getBlockData(@NotNull org.bukkit.Location location)
     
    @NotNull org.bukkit.block.BlockState
    getBlockState(int x, int y, int z)
     
    @NotNull org.bukkit.block.BlockState
    getBlockState(@NotNull org.bukkit.Location location)
     
    @NotNull ChunkMock
    getChunkAt(int x, int z)
     
    @NotNull ChunkMock
    getChunkAt(int x, int z, boolean generate)
     
    @NotNull ChunkMock
    getChunkAt(@NotNull ChunkCoordinate coordinate)
    Gets the chunk at a specific chunk coordinate.
    @NotNull org.bukkit.Chunk
    getChunkAt(@NotNull org.bukkit.Location location)
     
    @NotNull org.bukkit.Chunk
    getChunkAt(@NotNull org.bukkit.block.Block block)
     
    @NotNull CompletableFuture<org.bukkit.Chunk>
    getChunkAtAsync(int x, int z, boolean gen, boolean urgent)
     
    int
     
    int
     
    @NotNull org.bukkit.block.Biome
    getComputedBiome(int x, int y, int z)
     
    double
     
    org.bukkit.block.Biome
     
    @NotNull org.bukkit.Difficulty
     
    getEmptyChunkSnapshot(int chunkX, int chunkZ, boolean includeBiome, boolean includeBiomeTempRain)
     
    org.bukkit.boss.DragonBattle
     
    @NotNull List<org.bukkit.entity.Entity>
     
    <T extends org.bukkit.entity.Entity>
    @NotNull Collection<T>
    getEntitiesByClass(@NotNull Class<T> cls)
     
    final <T extends org.bukkit.entity.Entity>
    @NotNull Collection<T>
    getEntitiesByClass(Class<T> @NotNull ... classes)
     
    @NotNull Collection<org.bukkit.entity.Entity>
    getEntitiesByClasses(Class<?> @NotNull ... classes)
     
    @Nullable org.bukkit.entity.Entity
    getEntity(@NotNull UUID uuid)
     
    int
     
    @NotNull org.bukkit.World.Environment
     
    @NotNull Set<org.bukkit.FeatureFlag>
     
    @NotNull io.papermc.paper.block.fluid.FluidData
    getFluidData(int i, int i1, int i2)
     
    @NotNull Collection<org.bukkit.Chunk>
     
    long
     
    <T> T
    getGameRuleDefault(org.bukkit.GameRule<T> rule)
     
    String @NotNull []
     
    getGameRuleValue(@Nullable String rule)
    Deprecated.
    <T> T
    getGameRuleValue(@NotNull org.bukkit.GameRule<T> rule)
     
    long
     
    org.bukkit.generator.ChunkGenerator
     
    @NotNull 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(org.bukkit.Location location)
     
    @NotNull org.bukkit.block.Block
    getHighestBlockAt(org.bukkit.Location location, @NotNull org.bukkit.HeightMap heightMap)
     
    int
    getHighestBlockYAt(int x, int z)
     
    int
    getHighestBlockYAt(int x, int z, @NotNull com.destroystokyo.paper.HeightmapType heightmap)
    Deprecated, for removal: This API element is subject to removal in a future version.
    int
    getHighestBlockYAt(int x, int z, @NotNull org.bukkit.HeightMap heightMap)
     
    int
    getHighestBlockYAt(@NotNull org.bukkit.Location location)
     
    int
    getHighestBlockYAt(org.bukkit.Location location, @NotNull org.bukkit.HeightMap heightMap)
     
    double
    getHumidity(int x, int z)
    Deprecated.
    double
    getHumidity(int x, int y, int z)
     
    @NotNull Collection<org.bukkit.Material>
     
    @NotNull Collection<org.bukkit.Chunk>
    getIntersectingChunks(@NotNull org.bukkit.util.BoundingBox box)
     
    boolean
     
    @NotNull org.bukkit.NamespacedKey
     
    @NotNull Set<String>
     
    @NotNull List<org.bukkit.entity.LivingEntity>
     
    org.bukkit.Chunk @NotNull []
     
    @NotNull org.bukkit.Location
    getLocationAtKey(long key)
     
    int
     
    int
     
    @NotNull List<org.bukkit.metadata.MetadataValue>
    getMetadata(@NotNull String metadataKey)
     
    int
     
    int
    Deprecated.
    @NotNull io.papermc.paper.world.MoonPhase
     
    @NotNull String
     
    @NotNull Collection<org.bukkit.entity.Entity>
    getNearbyEntities(org.bukkit.Location location, double x, double y, double z)
     
    @NotNull Collection<org.bukkit.entity.Entity>
    getNearbyEntities(org.bukkit.Location location, double x, double y, double z, Predicate<? super org.bukkit.entity.Entity> filter)
     
    @NotNull Collection<org.bukkit.entity.Entity>
    getNearbyEntities(org.bukkit.util.BoundingBox boundingBox)
     
    @NotNull Collection<org.bukkit.entity.Entity>
    getNearbyEntities(org.bukkit.util.BoundingBox boundingBox, Predicate<? super org.bukkit.entity.Entity> filter)
     
    int
    Deprecated.
    @NotNull org.bukkit.persistence.PersistentDataContainer
     
    int
     
    @NotNull List<org.bukkit.entity.Player>
     
    @NotNull Collection<org.bukkit.entity.Player>
    getPlayersSeeingChunk(int i, int i1)
     
    @NotNull Collection<org.bukkit.entity.Player>
    getPlayersSeeingChunk(@NotNull org.bukkit.Chunk chunk)
     
    @NotNull Map<org.bukkit.plugin.Plugin,Collection<org.bukkit.Chunk>>
     
    @NotNull Collection<org.bukkit.plugin.Plugin>
    getPluginChunkTickets(int x, int z)
     
    @NotNull List<org.bukkit.generator.BlockPopulator>
     
    boolean
     
    @Nullable org.bukkit.Raid
    getRaid(int id)
     
    @NotNull List<org.bukkit.Raid>
     
    int
     
    long
     
    int
     
    int
     
    int
    getSpawnLimit(@NotNull org.bukkit.entity.SpawnCategory spawnCategory)
     
    final int
    getSpawnLimitUnsafe(org.bukkit.entity.SpawnCategory spawnCategory)
     
    @NotNull org.bukkit.Location
     
    @NotNull Collection<org.bukkit.generator.structure.GeneratedStructure>
    getStructures(int x, int z)
     
    @NotNull Collection<org.bukkit.generator.structure.GeneratedStructure>
    getStructures(int x, int z, @NotNull org.bukkit.generator.structure.Structure structure)
     
    double
    getTemperature(int x, int z)
    Deprecated.
    double
    getTemperature(int x, int y, int z)
     
    int
     
    int
     
    long
    Deprecated.
    long
    Deprecated.
    long
    Deprecated.
    long
    getTicksPerSpawns(@NotNull org.bukkit.entity.SpawnCategory spawnCategory)
     
    long
    Deprecated.
    long
    Deprecated.
    long
    Deprecated.
    int
     
    long
     
    @NotNull org.bukkit.Material
    getType(int x, int y, int z)
     
    @NotNull org.bukkit.Material
    getType(@NotNull org.bukkit.Location location)
     
    @NotNull UUID
     
    int
     
    int
    Deprecated.
    int
    Deprecated.
    int
    Deprecated.
    int
     
     
    @NotNull File
     
    org.bukkit.WorldType
    Deprecated.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
     
    boolean
    hasCollisionsIn(@NotNull org.bukkit.util.BoundingBox boundingBox)
     
    boolean
    hasMetadata(@NotNull String metadataKey)
     
    boolean
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
     
    boolean
     
    boolean
    hasStructureAt(@NotNull io.papermc.paper.math.Position position, @NotNull org.bukkit.generator.structure.Structure structure)
     
    boolean
     
    boolean
     
    boolean
    isChunkForceLoaded(int x, int z)
     
    boolean
    isChunkGenerated(int x, int z)
     
    boolean
    isChunkInUse(int x, int z)
    Deprecated.
    boolean
    isChunkLoaded(int x, int z)
     
    boolean
    isChunkLoaded(org.bukkit.Chunk chunk)
     
    boolean
     
    boolean
     
    boolean
     
    boolean
    isGameRule(@Nullable String rule)
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
     
    boolean
    lineOfSightExists(@NotNull org.bukkit.Location from, @NotNull org.bukkit.Location to)
     
    void
    loadChunk(int x, int z)
     
    boolean
    loadChunk(int x, int z, boolean generate)
     
    void
    loadChunk(@NotNull org.bukkit.Chunk chunk)
     
    @Nullable org.bukkit.util.BiomeSearchResult
    locateNearestBiome(@NotNull org.bukkit.Location origin, int radius, int horizontalInterval, int verticalInterval, @NotNull org.bukkit.block.Biome... biomes)
     
    @Nullable org.bukkit.util.BiomeSearchResult
    locateNearestBiome(@NotNull org.bukkit.Location origin, int radius, @NotNull org.bukkit.block.Biome... biomes)
     
    @Nullable org.bukkit.Location
    locateNearestBiome(@NotNull org.bukkit.Location origin, @NotNull org.bukkit.block.Biome biome, int radius)
     
    @Nullable org.bukkit.Location
    locateNearestBiome(@NotNull org.bukkit.Location origin, @NotNull org.bukkit.block.Biome biome, int radius, int step)
     
    org.bukkit.Raid
    locateNearestRaid(org.bukkit.Location location, int radius)
     
    @Nullable org.bukkit.util.StructureSearchResult
    locateNearestStructure(@NotNull org.bukkit.Location origin, @NotNull org.bukkit.generator.structure.Structure structure, int radius, boolean findUnexplored)
     
    @Nullable org.bukkit.util.StructureSearchResult
    locateNearestStructure(@NotNull org.bukkit.Location origin, @NotNull org.bukkit.generator.structure.StructureType structureType, int radius, boolean findUnexplored)
     
    org.bukkit.Location
    locateNearestStructure(org.bukkit.Location origin, org.bukkit.StructureType structureType, int radius, boolean findUnexplored)
    Deprecated.
    void
    playEffect(@NotNull org.bukkit.Location location, @NotNull org.bukkit.Effect effect, int data)
     
    void
    playEffect(@NotNull org.bukkit.Location location, @NotNull org.bukkit.Effect effect, int data, int radius)
     
    <T> void
    playEffect(@NotNull org.bukkit.Location location, @NotNull org.bukkit.Effect effect, T data)
     
    <T> void
    playEffect(@NotNull org.bukkit.Location location, @NotNull org.bukkit.Effect effect, T data, int radius)
     
    void
    playNote(@NotNull org.bukkit.Location loc, @NotNull org.bukkit.Instrument instrument, @NotNull org.bukkit.Note note)
     
    void
    playSound(@NotNull org.bukkit.Location location, @NotNull String sound, float volume, float pitch)
     
    void
    playSound(@NotNull org.bukkit.Location location, @NotNull String sound, @NotNull org.bukkit.SoundCategory category, float volume, float pitch)
     
    void
    playSound(@NotNull org.bukkit.Location location, @NotNull String sound, @NotNull org.bukkit.SoundCategory category, float volume, float pitch, long seed)
     
    void
    playSound(@NotNull org.bukkit.Location location, @NotNull org.bukkit.Sound sound, float volume, float pitch)
     
    void
    playSound(@NotNull org.bukkit.Location location, @NotNull org.bukkit.Sound sound, @NotNull org.bukkit.SoundCategory category, float volume, float pitch)
     
    void
    playSound(@NotNull org.bukkit.Location location, @NotNull org.bukkit.Sound sound, @NotNull org.bukkit.SoundCategory category, float volume, float pitch, long seed)
     
    void
    playSound(@NotNull org.bukkit.entity.Entity entity, @NotNull String sound, float volume, float pitch)
     
    void
    playSound(@NotNull org.bukkit.entity.Entity entity, @NotNull String sound, @NotNull org.bukkit.SoundCategory category, float volume, float pitch)
     
    void
    playSound(@NotNull org.bukkit.entity.Entity entity, @NotNull String sound, @NotNull org.bukkit.SoundCategory category, float volume, float pitch, long seed)
     
    void
    playSound(@NotNull org.bukkit.entity.Entity entity, @NotNull org.bukkit.Sound sound, @NotNull org.bukkit.SoundCategory category, float volume, float pitch, long seed)
     
    void
    playSound(@Nullable org.bukkit.entity.Entity entity, @Nullable org.bukkit.Sound sound, @Nullable org.bukkit.SoundCategory category, float volume, float pitch)
     
    void
    playSound(org.bukkit.entity.Entity entity, org.bukkit.Sound sound, float volume, float pitch)
     
    @Nullable org.bukkit.util.RayTraceResult
    rayTrace(@NotNull io.papermc.paper.math.Position start, @NotNull org.bukkit.util.Vector direction, double maxDistance, @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode, boolean ignorePassableBlocks, double raySize, @Nullable Predicate<? super org.bukkit.entity.Entity> filter, @Nullable Predicate<? super org.bukkit.block.Block> canCollide)
     
    org.bukkit.util.RayTraceResult
    rayTrace(org.bukkit.Location start, org.bukkit.util.Vector direction, double maxDistance, org.bukkit.FluidCollisionMode fluidCollisionMode, boolean ignorePassableBlocks, double raySize, Predicate<? super org.bukkit.entity.Entity> filter)
     
    @Nullable org.bukkit.util.RayTraceResult
    rayTraceBlocks(@NotNull io.papermc.paper.math.Position start, @NotNull org.bukkit.util.Vector direction, double maxDistance, @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode, boolean ignorePassableBlocks, @Nullable Predicate<? super org.bukkit.block.Block> canCollide)
     
    org.bukkit.util.RayTraceResult
    rayTraceBlocks(org.bukkit.Location start, org.bukkit.util.Vector direction, double maxDistance)
     
    org.bukkit.util.RayTraceResult
    rayTraceBlocks(org.bukkit.Location start, org.bukkit.util.Vector direction, double maxDistance, org.bukkit.FluidCollisionMode fluidCollisionMode)
     
    org.bukkit.util.RayTraceResult
    rayTraceBlocks(org.bukkit.Location start, org.bukkit.util.Vector direction, double maxDistance, org.bukkit.FluidCollisionMode fluidCollisionMode, boolean ignorePassableBlocks)
     
    @Nullable org.bukkit.util.RayTraceResult
    rayTraceEntities(@NotNull io.papermc.paper.math.Position start, @NotNull org.bukkit.util.Vector direction, double maxDistance, double raySize, @Nullable Predicate<? super org.bukkit.entity.Entity> filter)
     
    org.bukkit.util.RayTraceResult
    rayTraceEntities(org.bukkit.Location start, org.bukkit.util.Vector direction, double maxDistance)
     
    org.bukkit.util.RayTraceResult
    rayTraceEntities(org.bukkit.Location start, org.bukkit.util.Vector direction, double maxDistance, double raySize)
     
    org.bukkit.util.RayTraceResult
    rayTraceEntities(org.bukkit.Location start, org.bukkit.util.Vector direction, double maxDistance, double raySize, Predicate<? super org.bukkit.entity.Entity> filter)
     
    org.bukkit.util.RayTraceResult
    rayTraceEntities(org.bukkit.Location start, org.bukkit.util.Vector direction, double maxDistance, Predicate<? super org.bukkit.entity.Entity> filter)
     
    boolean
    refreshChunk(int x, int z)
    Deprecated.
    boolean
    regenerateChunk(int x, int z)
    Deprecated.
    void
    removeMetadata(@NotNull String metadataKey, @NotNull org.bukkit.plugin.Plugin owningPlugin)
     
    boolean
    removePluginChunkTicket(int x, int z, org.bukkit.plugin.Plugin plugin)
     
    void
    removePluginChunkTickets(org.bukkit.plugin.Plugin plugin)
     
    void
     
    void
    sendGameEvent(@Nullable org.bukkit.entity.Entity sourceEntity, @NotNull org.bukkit.GameEvent gameEvent, @NotNull org.bukkit.util.Vector position)
     
    void
    sendPluginMessage(@NotNull org.bukkit.plugin.Plugin source, @NotNull String channel, byte[] message)
     
    void
    Deprecated.
    void
    Deprecated.
    void
    setAutoSave(boolean value)
     
    void
    setBiome(int x, int y, int z, @NotNull org.bukkit.block.Biome bio)
     
    void
    setBiome(int x, int z, @NotNull org.bukkit.block.Biome bio)
    Deprecated.
    void
    setBiome(@NotNull org.bukkit.Location location, @NotNull org.bukkit.block.Biome biome)
     
    void
    setBlockData(int x, int y, int z, @NotNull org.bukkit.block.data.BlockData blockData)
     
    void
    setBlockData(@NotNull org.bukkit.Location location, @NotNull org.bukkit.block.data.BlockData blockData)
     
    void
    setChunkForceLoaded(int x, int z, boolean forced)
     
    void
     
    void
    setDifficulty(@NotNull org.bukkit.Difficulty difficulty)
     
    void
    setEnvironment(org.bukkit.World.Environment environment)
    Set a new environment type for this world.
    void
    setFullTime(long time)
     
    <T> boolean
    setGameRule(org.bukkit.GameRule<T> rule, T newValue)
     
    boolean
    setGameRuleValue(@Nullable String rule, @NotNull String value)
    Deprecated.
    void
    setHardcore(boolean hardcore)
     
    void
    setKeepSpawnInMemory(boolean keepLoaded)
     
    void
    setMetadata(@NotNull String metadataKey, @NotNull org.bukkit.metadata.MetadataValue newMetadataValue)
     
    void
    Deprecated.
    void
    Give a new name to this world.
    void
    setNoTickViewDistance(int viewDistance)
    Deprecated.
    void
    setPVP(boolean pvp)
     
    void
    setSendViewDistance(int viewDistance)
     
    void
    setSimulationDistance(int simulationDistance)
     
    void
    setSpawnFlags(boolean allowMonsters, boolean allowAnimals)
     
    void
    setSpawnLimit(@NotNull org.bukkit.entity.SpawnCategory spawnCategory, int limit)
     
    boolean
    setSpawnLocation(int x, int y, int z)
     
    boolean
    setSpawnLocation(int x, int y, int z, float angle)
     
    boolean
    setSpawnLocation(@NotNull org.bukkit.Location location)
     
    void
    setStorm(boolean hasStorm)
     
    void
    setThunderDuration(int duration)
     
    void
    setThundering(boolean thundering)
     
    void
    setTicksPerAmbientSpawns(int ticksPerAmbientSpawns)
    Deprecated.
    void
    setTicksPerAnimalSpawns(int ticksPerAnimalSpawns)
    Deprecated.
    void
    setTicksPerMonsterSpawns(int ticksPerMonsterSpawns)
    Deprecated.
    void
    setTicksPerSpawns(@NotNull org.bukkit.entity.SpawnCategory spawnCategory, int ticksPerCategorySpawn)
     
    void
    setTicksPerWaterAmbientSpawns(int ticksPerAmbientSpawns)
    Deprecated.
    void
    setTicksPerWaterSpawns(int ticksPerWaterSpawns)
    Deprecated.
    void
    setTicksPerWaterUndergroundCreatureSpawns(int ticksPerWaterUndergroundCreatureSpawns)
    Deprecated.
    void
    setTime(long time)
     
    void
    setType(int x, int y, int z, @NotNull org.bukkit.Material material)
     
    void
    setType(@NotNull org.bukkit.Location location, @NotNull org.bukkit.Material material)
     
    void
    setViewDistance(int viewDistance)
     
    void
    Deprecated.
    void
    Deprecated.
    void
    Deprecated.
    void
    setWeatherDuration(int duration)
     
    <T extends org.bukkit.entity.Entity>
    T
    spawn(@NotNull org.bukkit.Location location, @NotNull Class<T> clazz)
     
    <T extends org.bukkit.entity.Entity>
    T
    spawn(@NotNull org.bukkit.Location location, @NotNull Class<T> clazz, boolean randomizeData, @Nullable Consumer<? super T> function)
     
    <T extends org.bukkit.entity.Entity>
    T
    spawn(@NotNull org.bukkit.Location location, @NotNull Class<T> clazz, @Nullable Consumer<? super T> function, @NotNull org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason)
     
    <T extends org.bukkit.entity.LivingEntity>
    T
    spawn(@NotNull org.bukkit.Location location, @NotNull Class<T> clazz, @NotNull org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason spawnReason, boolean randomizeData, @Nullable Consumer<? super T> function)
     
    <T extends org.bukkit.entity.Entity>
    T
    spawn(@Nullable org.bukkit.Location location, @Nullable Class<T> clazz, @Nullable Consumer<? super T> function, @NotNull org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason, boolean randomizeData, boolean callSpawnEvent)
    Spawns an entity.
    @NotNull org.bukkit.entity.Arrow
    spawnArrow(org.bukkit.Location location, org.bukkit.util.Vector direction, float speed, float spread)
     
    <T extends org.bukkit.entity.AbstractArrow>
    T
    spawnArrow(org.bukkit.Location location, org.bukkit.util.Vector direction, float speed, float spread, Class<T> clazz)
     
    @NotNull org.bukkit.entity.Entity
    spawnEntity(@NotNull org.bukkit.Location loc, @NotNull org.bukkit.entity.EntityType type)
     
    @NotNull org.bukkit.entity.Entity
    spawnEntity(@NotNull org.bukkit.Location loc, @NotNull org.bukkit.entity.EntityType type, boolean randomizeData)
     
    @NotNull org.bukkit.entity.FallingBlock
    spawnFallingBlock(org.bukkit.Location location, org.bukkit.block.data.BlockData data)
     
    @NotNull org.bukkit.entity.FallingBlock
    spawnFallingBlock(org.bukkit.Location location, org.bukkit.material.MaterialData data)
     
    @NotNull org.bukkit.entity.FallingBlock
    spawnFallingBlock(org.bukkit.Location location, org.bukkit.Material material, byte data)
    Deprecated.
    <T> void
    spawnParticle(@NotNull org.bukkit.Particle particle, @Nullable List<org.bukkit.entity.Player> receivers, @Nullable org.bukkit.entity.Player source, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, T data, boolean force)
     
    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, double extra, T data, boolean force)
     
    <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)
     
    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, double extra, T data, boolean force)
     
    <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)
     
    @NotNull org.bukkit.World.Spigot
     
    @NotNull org.bukkit.entity.LightningStrike
    strikeLightning(org.bukkit.Location loc)
     
    @NotNull org.bukkit.entity.LightningStrike
    strikeLightningEffect(org.bukkit.Location loc)
     
    boolean
    unloadChunk(int x, int z)
     
    boolean
    unloadChunk(int x, int z, boolean save)
     
    boolean
    unloadChunk(@NotNull org.bukkit.Chunk chunk)
     
    boolean
    unloadChunkRequest(int x, int z)
     
    @NotNull org.bukkit.generator.BiomeProvider
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

    deleteMessage, openBook, removeResourcePacks, removeResourcePacks, removeResourcePacks, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendResourcePacks, sendResourcePacks, showTitle, stopSound

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

    clearResourcePacks, clearTitle, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, playSound, playSound, playSound, pointers, removeResourcePacks, removeResourcePacks, resetTitle, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendResourcePacks, sendTitlePart, showBossBar, stopSound

    Methods inherited from interface org.bukkit.Keyed

    key

    Methods inherited from interface net.kyori.adventure.pointer.Pointered

    get, getOrDefault, getOrDefaultFrom

    Methods inherited from interface org.bukkit.RegionAccessor

    getFluidData, getFluidData, spawn, spawn, spawn, spawnEntity, spawnEntity

    Methods inherited from interface org.bukkit.World

    audiences, createExplosion, createExplosion, createExplosion, createExplosion, createExplosion, getChunkAt, getChunkAt, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsyncUrgently, getChunkAtAsyncUrgently, getChunkAtAsyncUrgently, getChunkAtAsyncUrgently, getChunkAtAsyncUrgently, getHighestBlockAt, getHighestBlockAt, getHighestBlockYAt, getNearbyEntitiesByType, getNearbyEntitiesByType, getNearbyEntitiesByType, getNearbyEntitiesByType, getNearbyEntitiesByType, getNearbyEntitiesByType, getNearbyLivingEntities, getNearbyLivingEntities, getNearbyLivingEntities, getNearbyLivingEntities, getNearbyLivingEntities, getNearbyLivingEntities, getNearbyPlayers, getNearbyPlayers, getNearbyPlayers, getNearbyPlayers, getNearbyPlayers, getNearbyPlayers, isChunkGenerated, isPositionLoaded, spawnParticle
  • Constructor Details

    • WorldMock

      public WorldMock(org.bukkit.Material defaultBlock, int minHeight, int maxHeight, int grassHeight)
      Creates a new mock world.
      Parameters:
      defaultBlock - The block that is spawned at locations 1 to grassHeight
      minHeight - The minimum height of the world.
      maxHeight - The maximum height of the world.
      grassHeight - The last y at which defaultBlock will spawn.
    • WorldMock

      public WorldMock(org.bukkit.Material defaultBlock, org.bukkit.block.Biome defaultBiome, int minHeight, int maxHeight, int grassHeight)
      Creates a new mock world.
      Parameters:
      defaultBlock - The block that is spawned at locations 1 to grassHeight
      defaultBiome - The biome that every block will be in by default.
      minHeight - The minimum height of the world.
      maxHeight - The maximum height of the world.
      grassHeight - The last y at which defaultBlock will spawn.
    • WorldMock

      public WorldMock(@NotNull @NotNull org.bukkit.WorldCreator creator)
      Creates a new mock world.
      Parameters:
      creator - The WorldCreator to use to create the world.
    • WorldMock

      public WorldMock(org.bukkit.Material defaultBlock, org.bukkit.block.Biome defaultBiome, int maxHeight, int grassHeight)
      Creates a new mock world with a specific height from 0.
      Parameters:
      defaultBlock - The block that is spawned at locations 1 to grassHeight
      defaultBiome - The biome that every block will be in by default.
      maxHeight - The maximum height of the world.
      grassHeight - The last y at which defaultBlock will spawn.
    • WorldMock

      public WorldMock(org.bukkit.Material defaultBlock, int maxHeight, int grassHeight)
      Creates a new mock world with a specific height from 0.
      Parameters:
      defaultBlock - The block that is spawned at locations 1 to grassHeight
      maxHeight - The maximum height of the world.
      grassHeight - The last y at which defaultBlock will spawn.
    • WorldMock

      public WorldMock(org.bukkit.Material defaultBlock, int grassHeight)
      Creates a new mock world with a height of 128.
      Parameters:
      defaultBlock - The block that is spawned at locations 1 to grassHeight
      grassHeight - The last y at which defaultBlock will spawn.
    • WorldMock

      public WorldMock()
      Creates a new mock world with a height of 128 and will spawn grass until a y of 4.
  • Method Details

    • createBlock

      @NotNull public @NotNull BlockMock createBlock(@NotNull @NotNull Coordinate c)
      Makes sure that a certain block exists on the coordinate. Returns that block.
      Parameters:
      c - Creates a block on the given coordinate.
      Returns:
      A newly created block at that location.
    • getEntityCount

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

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

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

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

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

      public boolean hasStructureAt(@NotNull @NotNull io.papermc.paper.math.Position position, @NotNull @NotNull org.bukkit.generator.structure.Structure structure)
      Specified by:
      hasStructureAt in interface org.bukkit.World
    • getMoonPhase

      @NotNull public @NotNull io.papermc.paper.world.MoonPhase getMoonPhase()
      Specified by:
      getMoonPhase in interface org.bukkit.RegionAccessor
    • lineOfSightExists

      public boolean lineOfSightExists(@NotNull @NotNull org.bukkit.Location from, @NotNull @NotNull org.bukkit.Location to)
      Specified by:
      lineOfSightExists in interface org.bukkit.RegionAccessor
    • hasCollisionsIn

      public boolean hasCollisionsIn(@NotNull @NotNull org.bukkit.util.BoundingBox boundingBox)
      Specified by:
      hasCollisionsIn in interface org.bukkit.RegionAccessor
    • getBlockAt

      @NotNull public @NotNull BlockMock getBlockAt(int x, int y, int z)
      Specified by:
      getBlockAt in interface org.bukkit.World
    • getBlockAt

      @NotNull public @NotNull BlockMock getBlockAt(@NotNull @NotNull Coordinate coordinate)
      Gets the block at a coordinate.
      Parameters:
      coordinate - The coordinate at which to get the block.
      Returns:
      The block.
    • getBlockAt

      @NotNull public @NotNull BlockMock getBlockAt(@NotNull @NotNull org.bukkit.Location location)
      Specified by:
      getBlockAt in interface org.bukkit.World
    • getBlockAtKey

      @Deprecated(since="1.18") @NotNull public @NotNull org.bukkit.block.Block getBlockAtKey(long key)
      Deprecated.
      Specified by:
      getBlockAtKey in interface org.bukkit.World
    • getLocationAtKey

      @NotNull public @NotNull org.bukkit.Location getLocationAtKey(long key)
      Specified by:
      getLocationAtKey in interface org.bukkit.World
    • getName

      @NotNull public @NotNull String getName()
      Specified by:
      getName in interface org.bukkit.generator.WorldInfo
    • setName

      public void setName(String name)
      Give a new name to this world.
      Parameters:
      name - The new name of this world.
    • getUID

      @NotNull public @NotNull UUID getUID()
      Specified by:
      getUID in interface org.bukkit.generator.WorldInfo
    • getSpawnLocation

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

      public boolean setSpawnLocation(@NotNull @NotNull org.bukkit.Location location)
      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
    • getEntities

      @NotNull public @NotNull List<org.bukkit.entity.Entity> getEntities()
      Specified by:
      getEntities in interface org.bukkit.RegionAccessor
      Specified by:
      getEntities in interface org.bukkit.World
    • getChunkAt

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

      @NotNull public @NotNull ChunkMock getChunkAt(int x, int z, boolean generate)
      Specified by:
      getChunkAt in interface org.bukkit.World
    • getChunkAt

      @NotNull public @NotNull ChunkMock getChunkAt(@NotNull @NotNull ChunkCoordinate coordinate)
      Gets the chunk at a specific chunk coordinate.

      If there is no chunk recorded at the location, one will be created.

      Parameters:
      coordinate - The coordinate at which to get the chunk.
      Returns:
      The chunk at the location.
    • sendPluginMessage

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

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

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

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

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

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

      public void clearMetadata(org.bukkit.plugin.Plugin plugin)
      See Also:
    • getHighestBlockYAt

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

      public int getHighestBlockYAt(@NotNull @NotNull org.bukkit.Location location)
      Specified by:
      getHighestBlockYAt in interface org.bukkit.RegionAccessor
    • getHighestBlockAt

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

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

      @Deprecated(forRemoval=true, since="1.15") @ScheduledForRemoval(inVersion="1.21") public int getHighestBlockYAt(int x, int z, @NotNull @NotNull com.destroystokyo.paper.HeightmapType heightmap) throws UnsupportedOperationException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getHighestBlockYAt in interface org.bukkit.World
      Throws:
      UnsupportedOperationException
    • getChunkAt

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

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

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

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

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

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

      @Deprecated(since="1.14") public boolean isChunkInUse(int x, int z)
      Deprecated.
      Specified by:
      isChunkInUse 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(@NotNull @NotNull 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
    • unloadChunkRequest

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

      @Deprecated(since="1.13") public boolean regenerateChunk(int x, int z)
      Deprecated.
      Specified by:
      regenerateChunk in interface org.bukkit.World
    • refreshChunk

      @Deprecated(since="1.8") public boolean refreshChunk(int x, int z)
      Deprecated.
      Specified by:
      refreshChunk in interface org.bukkit.World
    • getPlayersSeeingChunk

      @NotNull public @NotNull Collection<org.bukkit.entity.Player> getPlayersSeeingChunk(@NotNull @NotNull org.bukkit.Chunk chunk)
      Specified by:
      getPlayersSeeingChunk in interface org.bukkit.World
    • getPlayersSeeingChunk

      @NotNull public @NotNull Collection<org.bukkit.entity.Player> getPlayersSeeingChunk(int i, int i1)
      Specified by:
      getPlayersSeeingChunk in interface org.bukkit.World
    • dropItem

      @NotNull public @NotNull org.bukkit.entity.Item dropItem(@NotNull @NotNull org.bukkit.Location loc, @NotNull @NotNull org.bukkit.inventory.ItemStack item)
      Specified by:
      dropItem in interface org.bukkit.World
    • dropItem

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

      @NotNull public @NotNull org.bukkit.entity.Item dropItemNaturally(@NotNull @NotNull org.bukkit.Location loc, @NotNull @NotNull org.bukkit.inventory.ItemStack item)
      Specified by:
      dropItemNaturally in interface org.bukkit.World
    • dropItemNaturally

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

      @NotNull public @NotNull org.bukkit.entity.Arrow spawnArrow(org.bukkit.Location location, org.bukkit.util.Vector direction, float speed, float spread)
      Specified by:
      spawnArrow 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

      @Deprecated(since="1.17") public boolean generateTree(org.bukkit.Location loc, org.bukkit.TreeType type, org.bukkit.BlockChangeDelegate delegate)
      Deprecated.
      Specified by:
      generateTree in interface org.bukkit.World
    • generateTree

      public boolean generateTree(org.bukkit.Location location, Random random, org.bukkit.TreeType type, Predicate<? super org.bukkit.block.BlockState> statePredicate)
      Specified by:
      generateTree in interface org.bukkit.RegionAccessor
    • spawn

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

      @NotNull public <T extends org.bukkit.entity.Entity> T spawn(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull Class<T> clazz, boolean randomizeData, @Nullable @Nullable Consumer<? super T> function) throws IllegalArgumentException
      Specified by:
      spawn in interface org.bukkit.RegionAccessor
      Throws:
      IllegalArgumentException
    • spawn

      @NotNull public <T extends org.bukkit.entity.Entity> T spawn(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull Class<T> clazz, @Nullable @Nullable Consumer<? super T> function, @NotNull org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason) throws IllegalArgumentException
      Specified by:
      spawn in interface org.bukkit.RegionAccessor
      Throws:
      IllegalArgumentException
    • spawn

      @NotNull public <T extends org.bukkit.entity.Entity> T spawn(@Nullable @Nullable org.bukkit.Location location, @Nullable @Nullable Class<T> clazz, @Nullable @Nullable Consumer<? super T> function, @NotNull org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason, boolean randomizeData, boolean callSpawnEvent)
      Spawns an entity.
      Type Parameters:
      T - The entity type.
      Parameters:
      location - The location to spawn the entity at.
      clazz - The class of entity to spawn. This should be the class of the Bukkit interface, not the mock.
      function - A function to call once the entity has been spawned.
      reason - The reason for spawning the entity.
      randomizeData - Whether data should be randomized. Currently, does nothing.
      callSpawnEvent - Whether the entities spawn event should be called
      Returns:
      The spawned entity.
    • spawnEntity

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

      @NotNull public @NotNull org.bukkit.entity.Entity spawnEntity(@NotNull @NotNull org.bukkit.Location loc, @NotNull @NotNull org.bukkit.entity.EntityType type, boolean randomizeData)
      Specified by:
      spawnEntity in interface org.bukkit.RegionAccessor
    • strikeLightning

      @NotNull public @NotNull org.bukkit.entity.LightningStrike strikeLightning(org.bukkit.Location loc)
      Specified by:
      strikeLightning in interface org.bukkit.World
    • strikeLightningEffect

      @NotNull public @NotNull org.bukkit.entity.LightningStrike strikeLightningEffect(org.bukkit.Location loc)
      Specified by:
      strikeLightningEffect in interface org.bukkit.World
    • findLightningRod

      @Nullable public @Nullable org.bukkit.Location findLightningRod(@NotNull @NotNull org.bukkit.Location location)
      Specified by:
      findLightningRod in interface org.bukkit.World
    • findLightningTarget

      @Nullable public @Nullable org.bukkit.Location findLightningTarget(@NotNull @NotNull org.bukkit.Location location)
      Specified by:
      findLightningTarget in interface org.bukkit.World
    • getLivingEntities

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

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

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

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

      @NotNull public <T extends org.bukkit.entity.Entity> T createEntity(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull Class<T> aClass)
      Specified by:
      createEntity in interface org.bukkit.RegionAccessor
    • 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
    • getPlayers

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

      @NotNull public @NotNull Collection<org.bukkit.entity.Entity> getNearbyEntities(org.bukkit.Location location, double x, double y, double z)
      Specified by:
      getNearbyEntities in interface org.bukkit.World
    • getEntity

      @Nullable public @Nullable org.bukkit.entity.Entity getEntity(@NotNull @NotNull UUID uuid)
      Specified by:
      getEntity in interface org.bukkit.World
    • getTime

      public long getTime()
      Specified by:
      getTime in interface org.bukkit.World
    • setTime

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

      public long getFullTime()
      Specified by:
      getFullTime in interface org.bukkit.World
    • setFullTime

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

      public boolean isDayTime()
      Specified by:
      isDayTime 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
    • getWeatherDuration

      public int getWeatherDuration()
      Specified by:
      getWeatherDuration in interface org.bukkit.World
    • setWeatherDuration

      public void setWeatherDuration(int duration)
      Specified by:
      setWeatherDuration in interface org.bukkit.World
    • isThundering

      public boolean isThundering()
      Specified by:
      isThundering in interface org.bukkit.World
    • setThundering

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

      public int getThunderDuration()
      Specified by:
      getThunderDuration in interface org.bukkit.World
    • setThunderDuration

      public void setThunderDuration(int duration)
      Specified by:
      setThunderDuration in interface org.bukkit.World
    • isClearWeather

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

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

      public void setClearWeatherDuration(int duration)
      Specified by:
      setClearWeatherDuration 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(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(@Nullable @Nullable org.bukkit.entity.Entity source, @NotNull @NotNull org.bukkit.Location loc, float power, boolean setFire, boolean breakBlocks)
      Specified by:
      createExplosion in interface org.bukkit.World
    • getEnvironment

      @NotNull public @NotNull org.bukkit.World.Environment getEnvironment()
      Specified by:
      getEnvironment in interface org.bukkit.generator.WorldInfo
    • setEnvironment

      public void setEnvironment(org.bukkit.World.Environment environment)
      Set a new environment type for this world.
      Parameters:
      environment - The world environnement type.
    • getSeed

      public long getSeed()
      Specified by:
      getSeed in interface org.bukkit.generator.WorldInfo
    • 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
    • getGenerator

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

      @Nullable public @Nullable org.bukkit.generator.BiomeProvider getBiomeProvider()
      Specified by:
      getBiomeProvider in interface org.bukkit.World
    • save

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

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

      @NotNull public <T extends org.bukkit.entity.LivingEntity> T spawn(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull Class<T> clazz, @NotNull org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason spawnReason, boolean randomizeData, @Nullable @Nullable Consumer<? super T> function) throws IllegalArgumentException
      Specified by:
      spawn in interface org.bukkit.World
      Throws:
      IllegalArgumentException
    • spawnFallingBlock

      @NotNull public @NotNull 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(since="1.7.5") @NotNull public @NotNull 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
    • playEffect

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

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

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

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

      @NotNull public @NotNull ChunkSnapshotMock getEmptyChunkSnapshot(int chunkX, int chunkZ, boolean includeBiome, boolean includeBiomeTempRain)
      Specified by:
      getEmptyChunkSnapshot 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
    • getBiome

      @Deprecated(since="1.15") @NotNull public @NotNull org.bukkit.block.Biome getBiome(int x, int z)
      Deprecated.
      Specified by:
      getBiome in interface org.bukkit.World
    • setBiome

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

      @Deprecated(since="1.15") public double getTemperature(int x, int z)
      Deprecated.
      Specified by:
      getTemperature in interface org.bukkit.World
    • getHumidity

      @Deprecated(since="1.15") public double getHumidity(int x, int z)
      Deprecated.
      Specified by:
      getHumidity in interface org.bukkit.World
    • getMinHeight

      public int getMinHeight()
      Specified by:
      getMinHeight in interface org.bukkit.generator.WorldInfo
    • getMaxHeight

      public int getMaxHeight()
      Specified by:
      getMaxHeight in interface org.bukkit.generator.WorldInfo
    • vanillaBiomeProvider

      @NotNull public @NotNull org.bukkit.generator.BiomeProvider vanillaBiomeProvider()
      Specified by:
      vanillaBiomeProvider in interface org.bukkit.generator.WorldInfo
    • getSeaLevel

      public int getSeaLevel()
      Specified by:
      getSeaLevel 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
    • isAutoSave

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

      public void setAutoSave(boolean value)
      Specified by:
      setAutoSave in interface org.bukkit.World
    • getDifficulty

      @NotNull public @NotNull org.bukkit.Difficulty getDifficulty()
      Specified by:
      getDifficulty in interface org.bukkit.World
    • setDifficulty

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

      @NotNull public @NotNull File getWorldFolder()
      Specified by:
      getWorldFolder in interface org.bukkit.World
    • getWorldType

      @Deprecated(since="1.16") public org.bukkit.WorldType getWorldType()
      Deprecated.
      Specified by:
      getWorldType in interface org.bukkit.World
    • canGenerateStructures

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

      @Deprecated(since="1.18") public long getTicksPerAnimalSpawns()
      Deprecated.
      Specified by:
      getTicksPerAnimalSpawns in interface org.bukkit.World
    • setTicksPerAnimalSpawns

      @Deprecated(since="1.18") public void setTicksPerAnimalSpawns(int ticksPerAnimalSpawns)
      Deprecated.
      Specified by:
      setTicksPerAnimalSpawns in interface org.bukkit.World
    • getTicksPerMonsterSpawns

      @Deprecated(since="1.18") public long getTicksPerMonsterSpawns()
      Deprecated.
      Specified by:
      getTicksPerMonsterSpawns in interface org.bukkit.World
    • setTicksPerMonsterSpawns

      @Deprecated(since="1.18") public void setTicksPerMonsterSpawns(int ticksPerMonsterSpawns)
      Deprecated.
      Specified by:
      setTicksPerMonsterSpawns in interface org.bukkit.World
    • getMonsterSpawnLimit

      @Deprecated(since="1.18") public int getMonsterSpawnLimit()
      Deprecated.
      Specified by:
      getMonsterSpawnLimit in interface org.bukkit.World
    • setMonsterSpawnLimit

      @Deprecated(since="1.18") public void setMonsterSpawnLimit(int limit)
      Deprecated.
      Specified by:
      setMonsterSpawnLimit in interface org.bukkit.World
    • getAnimalSpawnLimit

      @Deprecated(since="1.18") public int getAnimalSpawnLimit()
      Deprecated.
      Specified by:
      getAnimalSpawnLimit in interface org.bukkit.World
    • setAnimalSpawnLimit

      @Deprecated(since="1.18") public void setAnimalSpawnLimit(int limit)
      Deprecated.
      Specified by:
      setAnimalSpawnLimit in interface org.bukkit.World
    • getWaterAnimalSpawnLimit

      @Deprecated(since="1.18") public int getWaterAnimalSpawnLimit()
      Deprecated.
      Specified by:
      getWaterAnimalSpawnLimit in interface org.bukkit.World
    • setWaterAnimalSpawnLimit

      @Deprecated(since="1.18") public void setWaterAnimalSpawnLimit(int limit)
      Deprecated.
      Specified by:
      setWaterAnimalSpawnLimit in interface org.bukkit.World
    • getWaterUndergroundCreatureSpawnLimit

      @Deprecated(since="1.18") public int getWaterUndergroundCreatureSpawnLimit()
      Deprecated.
      Specified by:
      getWaterUndergroundCreatureSpawnLimit in interface org.bukkit.World
    • setWaterUndergroundCreatureSpawnLimit

      @Deprecated(since="1.18") public void setWaterUndergroundCreatureSpawnLimit(int limit)
      Deprecated.
      Specified by:
      setWaterUndergroundCreatureSpawnLimit in interface org.bukkit.World
    • getAmbientSpawnLimit

      @Deprecated(since="1.18") public int getAmbientSpawnLimit()
      Deprecated.
      Specified by:
      getAmbientSpawnLimit in interface org.bukkit.World
    • setAmbientSpawnLimit

      @Deprecated(since="1.18") public void setAmbientSpawnLimit(int limit)
      Deprecated.
      Specified by:
      setAmbientSpawnLimit in interface org.bukkit.World
    • playSound

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

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

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

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

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

      public void playSound(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull String sound, float volume, float pitch)
      Specified by:
      playSound in interface org.bukkit.World
    • playSound

      public void playSound(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull String sound, @NotNull @NotNull org.bukkit.SoundCategory category, float volume, float pitch)
      Specified by:
      playSound in interface org.bukkit.World
    • playSound

      public void playSound(@Nullable @Nullable org.bukkit.entity.Entity entity, @Nullable @Nullable org.bukkit.Sound sound, @Nullable @Nullable org.bukkit.SoundCategory category, float volume, float pitch)
      Specified by:
      playSound in interface org.bukkit.World
    • getGameRules

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

      @Deprecated(since="1.13") public String getGameRuleValue(@Nullable @Nullable String rule)
      Deprecated.
      Specified by:
      getGameRuleValue in interface org.bukkit.World
    • setGameRuleValue

      @Deprecated(since="1.13") public boolean setGameRuleValue(@Nullable @Nullable String rule, @NotNull @NotNull String value)
      Deprecated.
      Specified by:
      setGameRuleValue in interface org.bukkit.World
    • isGameRule

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

      @NotNull public @NotNull WorldBorderMock getWorldBorder()
      Specified by:
      getWorldBorder in interface org.bukkit.World
    • 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(@NotNull @NotNull org.bukkit.Particle particle, @Nullable @Nullable List<org.bukkit.entity.Player> receivers, @Nullable @Nullable org.bukkit.entity.Player source, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, @Nullable T data, boolean force)
      Specified by:
      spawnParticle in interface org.bukkit.World
    • spawnFallingBlock

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

      public <T> T getGameRuleValue(@NotNull @NotNull org.bukkit.GameRule<T> rule)
      Specified by:
      getGameRuleValue in interface org.bukkit.World
    • getGameRuleDefault

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

      public <T> boolean setGameRule(org.bukkit.GameRule<T> rule, T newValue)
      Specified by:
      setGameRule in interface org.bukkit.World
    • isChunkGenerated

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

      @NotNull public @NotNull Collection<org.bukkit.entity.Entity> getNearbyEntities(org.bukkit.Location location, double x, double y, double z, Predicate<? super org.bukkit.entity.Entity> filter)
      Specified by:
      getNearbyEntities in interface org.bukkit.World
    • getNearbyEntities

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

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

      public org.bukkit.util.RayTraceResult rayTraceEntities(org.bukkit.Location start, org.bukkit.util.Vector direction, double maxDistance)
      Specified by:
      rayTraceEntities in interface org.bukkit.World
    • rayTraceEntities

      public org.bukkit.util.RayTraceResult rayTraceEntities(org.bukkit.Location start, org.bukkit.util.Vector direction, double maxDistance, double raySize)
      Specified by:
      rayTraceEntities in interface org.bukkit.World
    • rayTraceEntities

      public org.bukkit.util.RayTraceResult rayTraceEntities(org.bukkit.Location start, org.bukkit.util.Vector direction, double maxDistance, Predicate<? super org.bukkit.entity.Entity> filter)
      Specified by:
      rayTraceEntities in interface org.bukkit.World
    • rayTraceEntities

      public org.bukkit.util.RayTraceResult rayTraceEntities(org.bukkit.Location start, org.bukkit.util.Vector direction, double maxDistance, double raySize, Predicate<? super org.bukkit.entity.Entity> filter)
      Specified by:
      rayTraceEntities in interface org.bukkit.World
    • locateNearestBiome

      @Nullable public @Nullable org.bukkit.util.BiomeSearchResult locateNearestBiome(@NotNull @NotNull org.bukkit.Location origin, int radius, int horizontalInterval, int verticalInterval, @NotNull @NotNull org.bukkit.block.Biome... biomes)
      Specified by:
      locateNearestBiome in interface org.bukkit.World
    • locateNearestBiome

      @Nullable public @Nullable org.bukkit.util.BiomeSearchResult locateNearestBiome(@NotNull @NotNull org.bukkit.Location origin, int radius, @NotNull @NotNull org.bukkit.block.Biome... biomes)
      Specified by:
      locateNearestBiome in interface org.bukkit.World
    • rayTrace

      @Nullable public @Nullable org.bukkit.util.RayTraceResult rayTrace(@NotNull @NotNull io.papermc.paper.math.Position start, @NotNull @NotNull org.bukkit.util.Vector direction, double maxDistance, @NotNull @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode, boolean ignorePassableBlocks, double raySize, @Nullable @Nullable Predicate<? super org.bukkit.entity.Entity> filter, @Nullable @Nullable Predicate<? super org.bukkit.block.Block> canCollide)
      Specified by:
      rayTrace in interface org.bukkit.World
    • rayTraceBlocks

      @Nullable public @Nullable org.bukkit.util.RayTraceResult rayTraceBlocks(@NotNull @NotNull io.papermc.paper.math.Position start, @NotNull @NotNull org.bukkit.util.Vector direction, double maxDistance, @NotNull @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode, boolean ignorePassableBlocks, @Nullable @Nullable Predicate<? super org.bukkit.block.Block> canCollide)
      Specified by:
      rayTraceBlocks in interface org.bukkit.World
    • rayTraceEntities

      @Nullable public @Nullable org.bukkit.util.RayTraceResult rayTraceEntities(@NotNull @NotNull io.papermc.paper.math.Position start, @NotNull @NotNull org.bukkit.util.Vector direction, double maxDistance, double raySize, @Nullable @Nullable Predicate<? super org.bukkit.entity.Entity> filter)
      Specified by:
      rayTraceEntities in interface org.bukkit.World
    • rayTraceBlocks

      public org.bukkit.util.RayTraceResult rayTraceBlocks(org.bukkit.Location start, org.bukkit.util.Vector direction, double maxDistance)
      Specified by:
      rayTraceBlocks in interface org.bukkit.World
    • rayTraceBlocks

      public org.bukkit.util.RayTraceResult rayTraceBlocks(org.bukkit.Location start, org.bukkit.util.Vector direction, double maxDistance, org.bukkit.FluidCollisionMode fluidCollisionMode)
      Specified by:
      rayTraceBlocks in interface org.bukkit.World
    • rayTraceBlocks

      public org.bukkit.util.RayTraceResult rayTraceBlocks(org.bukkit.Location start, org.bukkit.util.Vector direction, double maxDistance, org.bukkit.FluidCollisionMode fluidCollisionMode, boolean ignorePassableBlocks)
      Specified by:
      rayTraceBlocks in interface org.bukkit.World
    • rayTrace

      public org.bukkit.util.RayTraceResult rayTrace(org.bukkit.Location start, org.bukkit.util.Vector direction, double maxDistance, org.bukkit.FluidCollisionMode fluidCollisionMode, boolean ignorePassableBlocks, double raySize, Predicate<? super org.bukkit.entity.Entity> filter)
      Specified by:
      rayTrace 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, boolean force)
      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, boolean force)
      Specified by:
      spawnParticle in interface org.bukkit.World
    • locateNearestStructure

      @Deprecated(since="1.19") public org.bukkit.Location locateNearestStructure(org.bukkit.Location origin, org.bukkit.StructureType structureType, int radius, boolean findUnexplored)
      Deprecated.
      Specified by:
      locateNearestStructure in interface org.bukkit.World
    • locateNearestStructure

      @Nullable public @Nullable org.bukkit.util.StructureSearchResult locateNearestStructure(@NotNull @NotNull org.bukkit.Location origin, @NotNull org.bukkit.generator.structure.StructureType structureType, int radius, boolean findUnexplored)
      Specified by:
      locateNearestStructure in interface org.bukkit.World
    • locateNearestStructure

      @Nullable public @Nullable org.bukkit.util.StructureSearchResult locateNearestStructure(@NotNull @NotNull org.bukkit.Location origin, @NotNull @NotNull org.bukkit.generator.structure.Structure structure, int radius, boolean findUnexplored)
      Specified by:
      locateNearestStructure in interface org.bukkit.World
    • locateNearestBiome

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

      @Nullable public @Nullable org.bukkit.Location locateNearestBiome(@NotNull @NotNull org.bukkit.Location origin, @NotNull @NotNull org.bukkit.block.Biome biome, int radius, int step)
      Specified by:
      locateNearestBiome in interface org.bukkit.World
    • addEntity

      @NotNull public <T extends org.bukkit.entity.Entity> T addEntity(@NotNull T t)
      Specified by:
      addEntity in interface org.bukkit.RegionAccessor
    • isUltrawarm

      @Deprecated(forRemoval=true) @ScheduledForRemoval(inVersion="1.21") public boolean isUltrawarm()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isUltrawarm in interface org.bukkit.World
    • getCoordinateScale

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

      @Deprecated(forRemoval=true) @ScheduledForRemoval(inVersion="1.21") public boolean hasSkylight()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      hasSkylight in interface org.bukkit.World
    • hasBedrockCeiling

      @Deprecated(forRemoval=true) @ScheduledForRemoval(inVersion="1.21") public boolean hasBedrockCeiling()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      hasBedrockCeiling in interface org.bukkit.World
    • doesBedWork

      @Deprecated(forRemoval=true) @ScheduledForRemoval(inVersion="1.21") public boolean doesBedWork()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      doesBedWork in interface org.bukkit.World
    • doesRespawnAnchorWork

      @Deprecated(forRemoval=true) @ScheduledForRemoval(inVersion="1.21") public boolean doesRespawnAnchorWork()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      doesRespawnAnchorWork 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
    • sendGameEvent

      public void sendGameEvent(@Nullable @Nullable org.bukkit.entity.Entity sourceEntity, @NotNull @NotNull org.bukkit.GameEvent gameEvent, @NotNull @NotNull org.bukkit.util.Vector position)
      Specified by:
      sendGameEvent 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, org.bukkit.plugin.Plugin plugin)
      Specified by:
      addPluginChunkTicket in interface org.bukkit.World
    • removePluginChunkTicket

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

      public void removePluginChunkTickets(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
    • getIntersectingChunks

      @NotNull public @NotNull Collection<org.bukkit.Chunk> getIntersectingChunks(@NotNull @NotNull org.bukkit.util.BoundingBox box)
      Specified by:
      getIntersectingChunks in interface org.bukkit.World
    • spawnArrow

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

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

      @Nullable public @Nullable org.bukkit.Raid getRaid(int id)
      Specified by:
      getRaid in interface org.bukkit.World
    • getRaids

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

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

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

      public boolean createExplosion(org.bukkit.Location loc, float power, boolean setFire, boolean breakBlocks, org.bukkit.entity.Entity source)
      Specified by:
      createExplosion 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.RegionAccessor
    • getHighestBlockYAt

      public int getHighestBlockYAt(org.bukkit.Location location, @NotNull @NotNull org.bukkit.HeightMap heightMap)
      Specified by:
      getHighestBlockYAt in interface org.bukkit.RegionAccessor
    • 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(org.bukkit.Location location, @NotNull @NotNull org.bukkit.HeightMap heightMap)
      Specified by:
      getHighestBlockAt in interface org.bukkit.World
    • getBiome

      @NotNull public @NotNull org.bukkit.block.Biome getBiome(@NotNull @NotNull org.bukkit.Location location)
      Specified by:
      getBiome in interface org.bukkit.RegionAccessor
    • getBiome

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

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

      public void setBiome(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.block.Biome biome)
      Specified by:
      setBiome in interface org.bukkit.RegionAccessor
    • setBiome

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

      @NotNull protected @NotNull Map<Coordinate,org.bukkit.block.Biome> getBiomeMap()
      Gets a map of what biome is at each coordinate.
      Returns:
      A clone of the internal biome map.
    • getDefaultBiome

      public org.bukkit.block.Biome getDefaultBiome()
      Returns:
      The default biome of this world.
    • getBlockState

      @NotNull public @NotNull org.bukkit.block.BlockState getBlockState(@NotNull @NotNull org.bukkit.Location location)
      Specified by:
      getBlockState in interface org.bukkit.RegionAccessor
    • getBlockState

      @NotNull public @NotNull org.bukkit.block.BlockState getBlockState(int x, int y, int z)
      Specified by:
      getBlockState in interface org.bukkit.RegionAccessor
    • getFluidData

      @NotNull public @NotNull io.papermc.paper.block.fluid.FluidData getFluidData(int i, int i1, int i2)
      Specified by:
      getFluidData in interface org.bukkit.RegionAccessor
    • getBlockData

      @NotNull public @NotNull org.bukkit.block.data.BlockData getBlockData(@NotNull @NotNull org.bukkit.Location location)
      Specified by:
      getBlockData in interface org.bukkit.RegionAccessor
    • getBlockData

      @NotNull public @NotNull org.bukkit.block.data.BlockData getBlockData(int x, int y, int z)
      Specified by:
      getBlockData in interface org.bukkit.RegionAccessor
    • getType

      @NotNull public @NotNull org.bukkit.Material getType(@NotNull @NotNull org.bukkit.Location location)
      Specified by:
      getType in interface org.bukkit.RegionAccessor
    • getType

      @NotNull public @NotNull org.bukkit.Material getType(int x, int y, int z)
      Specified by:
      getType in interface org.bukkit.RegionAccessor
    • setBlockData

      public void setBlockData(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.block.data.BlockData blockData)
      Specified by:
      setBlockData in interface org.bukkit.RegionAccessor
    • setBlockData

      public void setBlockData(int x, int y, int z, @NotNull @NotNull org.bukkit.block.data.BlockData blockData)
      Specified by:
      setBlockData in interface org.bukkit.RegionAccessor
    • setType

      public void setType(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.Material material)
      Specified by:
      setType in interface org.bukkit.RegionAccessor
    • setType

      public void setType(int x, int y, int z, @NotNull @NotNull org.bukkit.Material material)
      Specified by:
      setType in interface org.bukkit.RegionAccessor
    • generateTree

      public boolean generateTree(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull Random random, @NotNull @NotNull org.bukkit.TreeType type)
      Specified by:
      generateTree in interface org.bukkit.RegionAccessor
    • generateTree

      public boolean generateTree(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull Random random, @NotNull @NotNull org.bukkit.TreeType type, @Nullable @Nullable Consumer<? super org.bukkit.block.BlockState> stateConsumer)
      Specified by:
      generateTree in interface org.bukkit.RegionAccessor
    • 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 y, int z)
      Specified by:
      getHumidity in interface org.bukkit.World
    • getLogicalHeight

      public int getLogicalHeight()
      Specified by:
      getLogicalHeight in interface org.bukkit.World
    • isNatural

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

      public boolean isBedWorks()
      Specified by:
      isBedWorks in interface org.bukkit.World
    • hasSkyLight

      public boolean hasSkyLight()
      Specified by:
      hasSkyLight in interface org.bukkit.World
    • hasCeiling

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

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

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

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

      public boolean isUltraWarm()
      Specified by:
      isUltraWarm in interface org.bukkit.World
    • isHardcore

      public boolean isHardcore()
      Specified by:
      isHardcore in interface org.bukkit.World
    • setHardcore

      public void setHardcore(boolean hardcore)
      Specified by:
      setHardcore in interface org.bukkit.World
    • getTicksPerWaterSpawns

      @Deprecated(since="1.18") public long getTicksPerWaterSpawns()
      Deprecated.
      Specified by:
      getTicksPerWaterSpawns in interface org.bukkit.World
    • setTicksPerWaterSpawns

      @Deprecated(since="1.18") public void setTicksPerWaterSpawns(int ticksPerWaterSpawns)
      Deprecated.
      Specified by:
      setTicksPerWaterSpawns in interface org.bukkit.World
    • getTicksPerAmbientSpawns

      @Deprecated(since="1.18") public long getTicksPerAmbientSpawns()
      Deprecated.
      Specified by:
      getTicksPerAmbientSpawns in interface org.bukkit.World
    • setTicksPerAmbientSpawns

      @Deprecated(since="1.18") public void setTicksPerAmbientSpawns(int ticksPerAmbientSpawns)
      Deprecated.
      Specified by:
      setTicksPerAmbientSpawns in interface org.bukkit.World
    • getEnderDragonBattle

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

      @NotNull public @NotNull Set<org.bukkit.FeatureFlag> getFeatureFlags()
      Specified by:
      getFeatureFlags 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
    • getTicksPerWaterAmbientSpawns

      @Deprecated(since="1.18") public long getTicksPerWaterAmbientSpawns()
      Deprecated.
      Specified by:
      getTicksPerWaterAmbientSpawns in interface org.bukkit.World
    • setTicksPerWaterAmbientSpawns

      @Deprecated(since="1.18") public void setTicksPerWaterAmbientSpawns(int ticksPerAmbientSpawns)
      Deprecated.
      Specified by:
      setTicksPerWaterAmbientSpawns in interface org.bukkit.World
    • getTicksPerWaterUndergroundCreatureSpawns

      @Deprecated(since="1.18") public long getTicksPerWaterUndergroundCreatureSpawns()
      Deprecated.
      Specified by:
      getTicksPerWaterUndergroundCreatureSpawns in interface org.bukkit.World
    • setTicksPerWaterUndergroundCreatureSpawns

      @Deprecated(since="1.18") public void setTicksPerWaterUndergroundCreatureSpawns(int ticksPerWaterUndergroundCreatureSpawns)
      Deprecated.
      Specified by:
      setTicksPerWaterUndergroundCreatureSpawns in interface org.bukkit.World
    • getWaterAmbientSpawnLimit

      @Deprecated(since="1.18") public int getWaterAmbientSpawnLimit()
      Deprecated.
      Specified by:
      getWaterAmbientSpawnLimit in interface org.bukkit.World
    • setWaterAmbientSpawnLimit

      @Deprecated(since="1.18") public void setWaterAmbientSpawnLimit(int limit)
      Deprecated.
      Specified by:
      setWaterAmbientSpawnLimit in interface org.bukkit.World
    • getViewDistance

      public int getViewDistance()
      Specified by:
      getViewDistance in interface org.bukkit.World
    • setViewDistance

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

      public void setSimulationDistance(int simulationDistance)
      Specified by:
      setSimulationDistance in interface org.bukkit.World
    • getNoTickViewDistance

      @Deprecated(since="1.18") public int getNoTickViewDistance()
      Deprecated.
      Specified by:
      getNoTickViewDistance in interface org.bukkit.World
    • setNoTickViewDistance

      @Deprecated(since="1.18") public void setNoTickViewDistance(int viewDistance)
      Deprecated.
      Specified by:
      setNoTickViewDistance in interface org.bukkit.World
    • getSendViewDistance

      public int getSendViewDistance()
      Specified by:
      getSendViewDistance in interface org.bukkit.World
    • setSendViewDistance

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

      @NotNull public @NotNull Collection<org.bukkit.generator.structure.GeneratedStructure> getStructures(int x, int z)
      Specified by:
      getStructures in interface org.bukkit.World
    • getStructures

      @NotNull public @NotNull Collection<org.bukkit.generator.structure.GeneratedStructure> getStructures(int x, int z, @NotNull @NotNull org.bukkit.generator.structure.Structure structure)
      Specified by:
      getStructures in interface org.bukkit.World
    • spigot

      @NotNull public @NotNull org.bukkit.World.Spigot spigot()
      Specified by:
      spigot in interface org.bukkit.World
    • getGameTime

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

      public int getSimulationDistance()
      Specified by:
      getSimulationDistance in interface org.bukkit.World
    • getPersistentDataContainer

      @NotNull public @NotNull org.bukkit.persistence.PersistentDataContainer getPersistentDataContainer()
      Specified by:
      getPersistentDataContainer in interface org.bukkit.persistence.PersistentDataHolder
    • getTicksPerSpawns

      public long getTicksPerSpawns(@NotNull @NotNull org.bukkit.entity.SpawnCategory spawnCategory)
      Specified by:
      getTicksPerSpawns in interface org.bukkit.World
    • setTicksPerSpawns

      public void setTicksPerSpawns(@NotNull @NotNull org.bukkit.entity.SpawnCategory spawnCategory, int ticksPerCategorySpawn)
      Specified by:
      setTicksPerSpawns in interface org.bukkit.World
    • getSpawnLimit

      public int getSpawnLimit(@NotNull @NotNull org.bukkit.entity.SpawnCategory spawnCategory)
      Specified by:
      getSpawnLimit in interface org.bukkit.World
    • getSpawnLimitUnsafe

      public final int getSpawnLimitUnsafe(org.bukkit.entity.SpawnCategory spawnCategory)
    • setSpawnLimit

      public void setSpawnLimit(@NotNull @NotNull org.bukkit.entity.SpawnCategory spawnCategory, int limit)
      Specified by:
      setSpawnLimit in interface org.bukkit.World
    • playNote

      public void playNote(@NotNull @NotNull org.bukkit.Location loc, @NotNull @NotNull org.bukkit.Instrument instrument, @NotNull @NotNull org.bukkit.Note note)
      Specified by:
      playNote in interface org.bukkit.World
    • playSound

      public void playSound(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull String sound, @NotNull @NotNull org.bukkit.SoundCategory category, float volume, float pitch, long seed)
      Specified by:
      playSound in interface org.bukkit.World
    • playSound

      public void playSound(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull org.bukkit.Sound sound, @NotNull @NotNull org.bukkit.SoundCategory category, float volume, float pitch, long seed)
      Specified by:
      playSound in interface org.bukkit.World
    • playSound

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

      public void playSound(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.Sound sound, @NotNull @NotNull org.bukkit.SoundCategory category, float volume, float pitch, long seed)
      Specified by:
      playSound 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.RegionAccessor