Package net.glowstone
Class GlowWorld
java.lang.Object
net.glowstone.GlowWorld
- All Implemented Interfaces:
net.kyori.adventure.audience.Audience
,net.kyori.adventure.audience.ForwardingAudience
,org.bukkit.Keyed
,org.bukkit.metadata.Metadatable
,org.bukkit.plugin.messaging.PluginMessageRecipient
,org.bukkit.World
A class which represents the in-game world.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.kyori.adventure.audience.ForwardingAudience
net.kyori.adventure.audience.ForwardingAudience.Single
Nested classes/interfaces inherited from interface org.bukkit.World
org.bukkit.World.ChunkLoadCallback, org.bukkit.World.Environment, org.bukkit.World.Spigot
-
Constructor Summary
ConstructorsConstructorDescriptionGlowWorld
(GlowServer server, org.bukkit.WorldCreator creator, WorldStorageProvider worldStorageProvider) Creates a new world from the options in the given WorldCreator. -
Method Summary
Modifier and TypeMethodDescriptionboolean
addPluginChunkTicket
(int x, int z, @NotNull org.bukkit.plugin.Plugin plugin) void
broadcastBlockChangeInRange
(GlowChunk.Key chunkKey, BlockChangeMessage message) void
cancelPulse
(GlowBlock block) void
cancelPulse
(org.bukkit.Location location) boolean
boolean
createExplosion
(double x, double y, double z, float power) boolean
createExplosion
(double x, double y, double z, float power, boolean setFire) boolean
createExplosion
(double x, double y, double z, float power, boolean setFire, boolean breakBlocks) boolean
createExplosion
(double x, double y, double z, float power, boolean setFire, boolean breakBlocks, @Nullable org.bukkit.entity.Entity source) boolean
createExplosion
(@NotNull org.bukkit.Location location, float power, boolean setFire, boolean breakBlocks) boolean
createExplosion
(@NotNull org.bukkit.Location location, float power, boolean setFire, boolean breakBlocks, @Nullable org.bukkit.entity.Entity source) boolean
createExplosion
(org.bukkit.entity.Entity source, double x, double y, double z, float power, boolean incendiary, boolean breakBlocks) Create an explosion with a specific entity as the source.boolean
createExplosion
(org.bukkit.entity.Entity source, org.bukkit.Location loc, float power, boolean setFire, boolean breakBlocks) boolean
createExplosion
(org.bukkit.Location loc, float power) boolean
createExplosion
(org.bukkit.Location loc, float power, boolean setFire) boolean
boolean
@NotNull org.bukkit.entity.Item
dropItem
(@NotNull org.bukkit.Location location, @NotNull org.bukkit.inventory.ItemStack stack, @Nullable org.bukkit.util.Consumer<org.bukkit.entity.Item> consumer) dropItem
(org.bukkit.Location location, org.bukkit.inventory.ItemStack item) Spawn an item at the givenLocation
without shooting effect.@NotNull org.bukkit.entity.Item
dropItemNaturally
(@NotNull org.bukkit.Location location, @NotNull org.bukkit.inventory.ItemStack stack, @Nullable org.bukkit.util.Consumer<org.bukkit.entity.Item> consumer) dropItemNaturally
(org.bukkit.Location location, org.bukkit.inventory.ItemStack item) Spawn an item at the givenLocation
with shooting effect.boolean
boolean
generateTree
(org.bukkit.Location location, org.bukkit.TreeType type) boolean
generateTree
(org.bukkit.Location loc, org.bukkit.TreeType type, org.bukkit.BlockChangeDelegate delegate) boolean
boolean
int
Per-world spawn limits on ambient mobs (bats).int
Per-world spawn limits on passive mobs.org.bukkit.block.Biome
getBiome
(int x, int z) @NotNull org.bukkit.block.Biome
getBiome
(int x, int y, int z) getBlockAt
(int x, int y, int z) getBlockAt
(org.bukkit.Location location) org.bukkit.block.data.BlockData
getBlockDataAt
(int x, int y, int z) int
Returns the number of block entities in loaded chunkManager.org.bukkit.Material
getBlockTypeAt
(int x, int y, int z) getChunk
(GlowChunk.Key key) getChunkAt
(int x, int z) getChunkAt
(long chunkKey) org.bukkit.Chunk
getChunkAt
(org.bukkit.block.Block block) org.bukkit.Chunk
getChunkAt
(org.bukkit.Location location) @NotNull CompletableFuture<org.bukkit.Chunk>
getChunkAtAsync
(int x, int z, boolean gen) @NotNull CompletableFuture<org.bukkit.Chunk>
getChunkAtAsync
(int x, int z, boolean gen, boolean urgent) void
getChunkAtAsync
(int x, int z, org.bukkit.World.ChunkLoadCallback cb) void
getChunkAtAsync
(org.bukkit.block.Block block, org.bukkit.World.ChunkLoadCallback cb) void
getChunkAtAsync
(org.bukkit.Location location, org.bukkit.World.ChunkLoadCallback cb) int
The chunk manager.int
double
org.bukkit.Difficulty
The world's gameplay difficulty.org.bukkit.ChunkSnapshot
getEmptyChunkSnapshot
(int x, int z, boolean includeBiome, boolean includeBiomeTempRain) @Nullable org.bukkit.boss.DragonBattle
List<org.bukkit.entity.Entity>
<T extends org.bukkit.entity.Entity>
Collection<T>getEntitiesByClass
(Class<T> cls) <T extends org.bukkit.entity.Entity>
Collection<T>getEntitiesByClass
(Class<T>... classes) Deprecated.Collection<org.bukkit.entity.Entity>
getEntitiesByClasses
(Class<?>... classes) org.bukkit.entity.Entity
int
The entity manager.org.bukkit.World.Environment
The environment.@NotNull Collection<org.bukkit.Chunk>
long
The age of the world, in ticks.<T> T
getGameRuleDefault
(org.bukkit.GameRule<T> gameRule) The game rules used in this world.String[]
getGameRuleValue
(@NonNls String rule) <T> T
getGameRuleValue
(org.bukkit.GameRule<T> gameRule) long
org.bukkit.generator.ChunkGenerator
org.bukkit.block.Block
getHighestBlockAt
(int x, int z) @NotNull org.bukkit.block.Block
getHighestBlockAt
(int x, int z, @NotNull org.bukkit.HeightMap heightMap) @NotNull org.bukkit.block.Block
getHighestBlockAt
(@NotNull org.bukkit.Location location, @NotNull org.bukkit.HeightMap heightMap) org.bukkit.block.Block
getHighestBlockAt
(org.bukkit.Location location) org.bukkit.block.Block
getHighestBlockAt
(org.bukkit.Location location, org.bukkit.Material... except) Gets the lowest block at the givenLocation
such that the block and all blocks above it are either air or one of the given materials.int
getHighestBlockYAt
(int x, int z) int
getHighestBlockYAt
(int x, int z, @NotNull com.destroystokyo.paper.HeightmapType heightmapType) int
getHighestBlockYAt
(int x, int z, @NotNull org.bukkit.HeightMap heightMap) int
getHighestBlockYAt
(@NotNull org.bukkit.Location location, @NotNull org.bukkit.HeightMap heightMap) int
getHighestBlockYAt
(org.bukkit.Location location) double
getHumidity
(int x, int z) double
getHumidity
(int x, int y, int z) @NotNull Collection<org.bukkit.Material>
boolean
@NotNull org.bukkit.NamespacedKey
getKey()
List<org.bukkit.entity.LivingEntity>
org.bukkit.Chunk[]
int
The maximum height at which players may place blocks.List<org.bukkit.metadata.MetadataValue>
getMetadata
(String metadataKey) int
int
Per-world spawn limits on hostile mobs.io.papermc.paper.world.MoonPhase
double
Returns the fraction of the moon that is illuminated, ranging from 0.0 at new moon to 1.0 at full moon.getName()
The name of this world.@NotNull Collection<org.bukkit.entity.Entity>
getNearbyEntities
(@NotNull org.bukkit.Location location, double v, double v1, double v2, @Nullable Predicate<org.bukkit.entity.Entity> predicate) @NotNull Collection<org.bukkit.entity.Entity>
getNearbyEntities
(@NotNull org.bukkit.util.BoundingBox boundingBox) @NotNull Collection<org.bukkit.entity.Entity>
getNearbyEntities
(@NotNull org.bukkit.util.BoundingBox boundingBox, @Nullable Predicate<org.bukkit.entity.Entity> predicate) Collection<org.bukkit.entity.Entity>
getNearbyEntities
(org.bukkit.Location location, double x, double y, double z) Returns a list of entities within a bounding box centered around a Location.int
int
List<org.bukkit.entity.Player>
@NotNull Map<org.bukkit.plugin.Plugin,
Collection<org.bukkit.Chunk>> @NotNull Collection<org.bukkit.plugin.Plugin>
getPluginChunkTickets
(int x, int z) List<org.bukkit.generator.BlockPopulator>
boolean
getPVP()
@NotNull List<org.bukkit.Raid>
getRaids()
float
The rain density on the current world tick.int
long
getSeed()
The world seed.byte[]
The SHA-256 hash of the world seed.Get the world's parent server.float
The sky darkness on the current world tick.org.bukkit.Location
The storage provider for the world.double
getTemperature
(int x, int z) double
getTemperature
(int x, int y, int z) int
How many ticks until the thundering status is expected to change.int
Returns the number of tickable block entities in loaded chunkManager.int
Deprecated.ConcurrentSet<org.bukkit.Location>
long
long
long
long
long
int
Deprecated.long
getTime()
The current world time.getUID()
int
Per-world view distance.int
Per-world spawn limits on water ambient mobs.int
Per-world spawn limits on water mobs.int
How many ticks until the rain/snow status is expected to change.The world border.Get the world folder.org.bukkit.WorldType
The world type.boolean
int
hashCode()
boolean
hasMetadata
(String metadataKey) boolean
hasRaids()
boolean
boolean
hasStorm()
boolean
The check to autosave.boolean
isChunkForceLoaded
(int x, int z) boolean
isChunkGenerated
(int x, int z) boolean
isChunkInUse
(int x, int z) boolean
isChunkLoaded
(int x, int z) boolean
isChunkLoaded
(org.bukkit.Chunk chunk) boolean
boolean
boolean
boolean
isGameRule
(String rule) boolean
Per-world hardcore setting.boolean
Whether the world has been initialized (i.e.boolean
boolean
boolean
Whether it is currently thundering on this world.boolean
void
loadChunk
(int x, int z) boolean
loadChunk
(int x, int z, boolean generate) void
loadChunk
(org.bukkit.Chunk chunk) @Nullable org.bukkit.Location
locateNearestBiome
(@NotNull org.bukkit.Location location, @NotNull org.bukkit.block.Biome biome, int i) @Nullable org.bukkit.Location
locateNearestBiome
(@NotNull org.bukkit.Location location, @NotNull org.bukkit.block.Biome biome, int i, int i1) @Nullable org.bukkit.Raid
locateNearestRaid
(@NotNull org.bukkit.Location location, int radius) @Nullable org.bukkit.Location
locateNearestStructure
(@NotNull org.bukkit.Location location, @NotNull org.bukkit.StructureType structureType, int i, boolean b) newChunkLock
(@NonNls String desc) Get a new chunk lock object a player or other party can use to keep chunkManager loaded.void
playEffect
(org.bukkit.Location location, org.bukkit.Effect effect, int data) void
playEffect
(org.bukkit.Location location, org.bukkit.Effect effect, int data, int radius) <T> void
playEffect
(org.bukkit.Location location, org.bukkit.Effect effect, T data) <T> void
playEffect
(org.bukkit.Location location, org.bukkit.Effect effect, T data, int radius) void
playEffectExceptTo
(org.bukkit.Location location, org.bukkit.Effect effect, int data, int radius, org.bukkit.entity.Player exclude) Plays an effect to all but one player within a given radius around a location.void
void
playSound
(org.bukkit.Location location, String sound, org.bukkit.SoundCategory category, float volume, float pitch) void
playSound
(org.bukkit.Location location, org.bukkit.Sound sound, float volume, float pitch) void
playSound
(org.bukkit.Location location, org.bukkit.Sound sound, org.bukkit.SoundCategory category, float volume, float pitch) void
pulse()
Updates all the entities within this world.@Nullable org.bukkit.util.RayTraceResult
rayTrace
(@NotNull org.bukkit.Location location, @NotNull org.bukkit.util.Vector vector, double v, @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode, boolean b, double v1, @Nullable Predicate<org.bukkit.entity.Entity> predicate) float
rayTrace
(org.bukkit.Location location, GlowEntity entity) Calculates how much the rays from the location to the entity's bounding box is blocked.@Nullable org.bukkit.util.RayTraceResult
rayTraceBlocks
(@NotNull org.bukkit.Location location, @NotNull org.bukkit.util.Vector vector, double v) @Nullable org.bukkit.util.RayTraceResult
rayTraceBlocks
(@NotNull org.bukkit.Location location, @NotNull org.bukkit.util.Vector vector, double v, @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode) @Nullable org.bukkit.util.RayTraceResult
rayTraceBlocks
(@NotNull org.bukkit.Location location, @NotNull org.bukkit.util.Vector vector, double v, @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode, boolean b) @Nullable org.bukkit.util.RayTraceResult
rayTraceEntities
(@NotNull org.bukkit.Location location, @NotNull org.bukkit.util.Vector vector, double v) @Nullable org.bukkit.util.RayTraceResult
rayTraceEntities
(@NotNull org.bukkit.Location location, @NotNull org.bukkit.util.Vector vector, double v, double v1) @Nullable org.bukkit.util.RayTraceResult
rayTraceEntities
(@NotNull org.bukkit.Location location, @NotNull org.bukkit.util.Vector vector, double v, double v1, @Nullable Predicate<org.bukkit.entity.Entity> predicate) @Nullable org.bukkit.util.RayTraceResult
rayTraceEntities
(@NotNull org.bukkit.Location location, @NotNull org.bukkit.util.Vector vector, double v, @Nullable Predicate<org.bukkit.entity.Entity> predicate) boolean
refreshChunk
(int x, int z) boolean
regenerateChunk
(int x, int z) void
removeMetadata
(String metadataKey, org.bukkit.plugin.Plugin owningPlugin) boolean
removePluginChunkTicket
(int x, int z, @NotNull org.bukkit.plugin.Plugin plugin) void
removePluginChunkTickets
(@NotNull org.bukkit.plugin.Plugin plugin) void
requestPulse
(GlowBlock block) void
requestPulse
(org.bukkit.Location location) void
save()
void
save
(boolean async) Saves world to disk synchronously or asynchronously.void
sendPluginMessage
(org.bukkit.plugin.Plugin source, String channel, byte[] message) void
setAmbientSpawnLimit
(int ambientSpawnLimit) Per-world spawn limits on ambient mobs (bats).void
setAnimalSpawnLimit
(int animalSpawnLimit) Per-world spawn limits on passive mobs.void
setAutoSave
(boolean autoSave) The check to autosave.void
setBiome
(int x, int y, int z, @NotNull org.bukkit.block.Biome biome) void
setBiome
(int x, int z, @NotNull org.bukkit.block.Biome bio) void
setChunkForceLoaded
(int x, int z, boolean forced) void
setClearWeatherDuration
(int i) void
setDifficulty
(org.bukkit.Difficulty difficulty) void
setFullTime
(long fullTime) The age of the world, in ticks.<T> boolean
setGameRule
(org.bukkit.GameRule<T> gameRule, T t) boolean
setGameRuleValue
(@NonNls String rule, String value) void
setHardcore
(boolean hardcore) Per-world hardcore setting.void
setKeepSpawnInMemory
(boolean keepLoaded) void
setMetadata
(String metadataKey, org.bukkit.metadata.MetadataValue newMetadataValue) void
setMonsterSpawnLimit
(int monsterSpawnLimit) Per-world spawn limits on hostile mobs.void
setNoTickViewDistance
(int viewDistance) void
setPVP
(boolean pvp) void
setSpawnFlags
(boolean allowMonsters, boolean allowAnimals) boolean
setSpawnLocation
(int x, int y, int z) boolean
setSpawnLocation
(int x, int y, int z, boolean anchor) boolean
setSpawnLocation
(int x, int y, int z, float angle) boolean
setSpawnLocation
(org.bukkit.Location newSpawn) boolean
setSpawnLocation
(org.bukkit.Location newSpawn, boolean anchor) Sets the spawn location of the world.void
setStorm
(boolean hasStorm) void
setThunderDuration
(int thunderDuration) How many ticks until the thundering status is expected to change.void
setThundering
(boolean thundering) void
setTicksPerAmbientSpawns
(int ticksPerAmbientSpawns) Ticks between when ambient mobs are spawned.void
setTicksPerAnimalSpawns
(int ticksPerAnimalSpawns) Ticks between when passive mobs are spawned.void
setTicksPerMonsterSpawns
(int ticksPerMonsterSpawns) Ticks between when hostile mobs are spawned.void
setTicksPerWaterAmbientSpawns
(int ticksPerWaterAmbientSpawns) Ticks between when ambient water mobs are spawned.void
setTicksPerWaterSpawns
(int ticksPerWaterSpawns) Ticks between when water mobs are spawned.void
setTime
(long time) void
setViewDistance
(int viewDistance) Per-world view distance.void
setWaterAmbientSpawnLimit
(int waterAmbientSpawnLimit) Per-world spawn limits on water ambient mobs.void
setWaterAnimalSpawnLimit
(int waterAnimalSpawnLimit) Per-world spawn limits on water mobs.void
setWeatherDuration
(int weatherDuration) How many ticks until the rain/snow status is expected to change.void
setWorldType
(org.bukkit.WorldType worldType) The world type.void
showParticle
(org.bukkit.Location loc, org.bukkit.Effect particle, float offsetX, float offsetY, float offsetZ, float speed, int amount) Displays the given particle to all players.void
showParticle
(org.bukkit.Location loc, org.bukkit.Effect particle, int id, int data, float offsetX, float offsetY, float offsetZ, float speed, int amount, int radius) Displays the given particle to all players.<T extends org.bukkit.entity.Entity>
T<T extends org.bukkit.entity.Entity>
T<T extends org.bukkit.entity.Entity>
Tspawn
(org.bukkit.Location location, Class<T> clazz, org.bukkit.util.Consumer<T> function, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason spawnReason) <T extends org.bukkit.entity.AbstractArrow>
TspawnArrow
(@NotNull org.bukkit.Location location, @NotNull org.bukkit.util.Vector vector, float speed, float spread, @NotNull Class<T> clazz) org.bukkit.entity.Arrow
spawnArrow
(org.bukkit.Location location, org.bukkit.util.Vector velocity, float speed, float spread) <T extends org.bukkit.entity.Entity>
TspawnCustomEntity
(org.bukkit.Location location, String id) Spawn a custom entity at the givenLocation
.<T extends org.bukkit.entity.Entity>
TspawnCustomEntity
(org.bukkit.Location location, String id, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason) Spawn a custom entity at the givenLocation
, with the givenCreatureSpawnEvent.SpawnReason
.org.bukkit.entity.Entity
spawnEntity
(org.bukkit.Location loc, org.bukkit.entity.EntityType type) org.bukkit.entity.FallingBlock
spawnFallingBlock
(org.bukkit.Location location, org.bukkit.block.data.BlockData blockData) org.bukkit.entity.FallingBlock
spawnFallingBlock
(org.bukkit.Location location, org.bukkit.material.MaterialData data) org.bukkit.entity.FallingBlock
spawnFallingBlock
(org.bukkit.Location location, org.bukkit.Material material, byte data) Deprecated.<T extends GlowEntity,
E extends org.bukkit.entity.Entity>
GlowEntityspawnGlowEntity
(org.bukkit.Location location, Class<T> clazz, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason, @Nullable org.bukkit.util.Consumer<E> function) Spawns an entity.<T> void
spawnParticle
(@NotNull org.bukkit.Particle particle, double v, double v1, double v2, int i, double v3, double v4, double v5, double v6, T t, boolean b) <T> void
spawnParticle
(@NotNull org.bukkit.Particle particle, @NotNull org.bukkit.Location location, int i, double v, double v1, double v2, double v3, T t, boolean b) <T> void
spawnParticle
(@NotNull org.bukkit.Particle particle, @Nullable List<org.bukkit.entity.Player> list, @Nullable org.bukkit.entity.Player player, double v, double v1, double v2, int i, double v3, double v4, double v5, double v6, T t, boolean b) void
spawnParticle
(org.bukkit.Particle particle, double x, double y, double z, int count) void
spawnParticle
(org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ) void
spawnParticle
(org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra) <T> void
spawnParticle
(org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, T data) <T> void
spawnParticle
(org.bukkit.Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, T data) <T> void
spawnParticle
(org.bukkit.Particle particle, double x, double y, double z, int count, T data) <T> void
spawnParticle
(org.bukkit.Particle particle, List<org.bukkit.entity.Player> receivers, org.bukkit.entity.Player source, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, T data) void
spawnParticle
(org.bukkit.Particle particle, org.bukkit.Location location, int count) void
spawnParticle
(org.bukkit.Particle particle, org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ) void
spawnParticle
(org.bukkit.Particle particle, org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ, double extra) <T> void
spawnParticle
(org.bukkit.Particle particle, org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, T data) <T> void
spawnParticle
(org.bukkit.Particle particle, org.bukkit.Location location, int count, double offsetX, double offsetY, double offsetZ, T data) <T> void
spawnParticle
(org.bukkit.Particle particle, org.bukkit.Location location, int count, T data) org.bukkit.World.Spigot
spigot()
strikeLightning
(org.bukkit.Location loc) strikeLightningEffect
(org.bukkit.Location loc) toString()
boolean
unload()
Unloads the world.boolean
unloadChunk
(int x, int z) boolean
unloadChunk
(int x, int z, boolean save) boolean
unloadChunk
(int x, int z, boolean save, boolean safe) boolean
unloadChunk
(org.bukkit.Chunk chunk) boolean
unloadChunkRequest
(int x, int z) boolean
unloadChunkRequest
(int x, int z, boolean safe) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.kyori.adventure.audience.Audience
openBook, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter
Methods inherited from interface net.kyori.adventure.audience.ForwardingAudience
clearTitle, hideBossBar, openBook, playSound, playSound, resetTitle, sendActionBar, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, showBossBar, showTitle, stopSound
Methods inherited from interface org.bukkit.World
audiences, createExplosion, createExplosion, createExplosion, createExplosion, createExplosion, getBlockAtKey, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsync, getChunkAtAsyncUrgently, getChunkAtAsyncUrgently, getChunkAtAsyncUrgently, getChunkAtAsyncUrgently, getChunkAtAsyncUrgently, getHighestBlockAt, getHighestBlockAt, getHighestBlockYAt, getLocationAtKey, getNearbyEntitiesByType, getNearbyEntitiesByType, getNearbyEntitiesByType, getNearbyEntitiesByType, getNearbyEntitiesByType, getNearbyEntitiesByType, getNearbyLivingEntities, getNearbyLivingEntities, getNearbyLivingEntities, getNearbyLivingEntities, getNearbyLivingEntities, getNearbyLivingEntities, getNearbyPlayers, getNearbyPlayers, getNearbyPlayers, getNearbyPlayers, getNearbyPlayers, getNearbyPlayers, isChunkGenerated, spawn, spawn, spawnEntity, spawnEntity
-
Constructor Details
-
GlowWorld
public GlowWorld(GlowServer server, org.bukkit.WorldCreator creator, WorldStorageProvider worldStorageProvider) Creates a new world from the options in the given WorldCreator.- Parameters:
server
- The server for the world.creator
- The WorldCreator to use.worldStorageProvider
- The storage provider to use.
-
-
Method Details
-
newChunkLock
Get a new chunk lock object a player or other party can use to keep chunkManager loaded.- Parameters:
desc
- A description for this chunk lock.- Returns:
- The ChunkLock.
-
pulse
public void pulse()Updates all the entities within this world. -
broadcastBlockChangeInRange
-
rayTrace
Calculates how much the rays from the location to the entity's bounding box is blocked.- Parameters:
location
- The location for the rays to startentity
- The entity that's bounding box is the ray's end point- Returns:
- a value between 0 and 1, where 0 = all rays blocked and 1 = all rays unblocked
-
rayTrace
@Nullable public @Nullable org.bukkit.util.RayTraceResult rayTrace(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.util.Vector vector, double v, @NotNull @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode, boolean b, double v1, @Nullable @Nullable Predicate<org.bukkit.entity.Entity> predicate) - Specified by:
rayTrace
in interfaceorg.bukkit.World
-
getMoonPhase
public io.papermc.paper.world.MoonPhase getMoonPhase()- Specified by:
getMoonPhase
in interfaceorg.bukkit.World
-
getMoonPhaseFraction
public double getMoonPhaseFraction()Returns the fraction of the moon that is illuminated, ranging from 0.0 at new moon to 1.0 at full moon. Always a multiple of 0.25. See Moon Phases at Gamepedia.- Returns:
- the fraction of the moon that is illuminated
-
getRawPlayers
-
getPlayers
- Specified by:
getPlayers
in interfaceorg.bukkit.World
-
getEntity
- Specified by:
getEntity
in interfaceorg.bukkit.World
-
getNearbyEntities
public Collection<org.bukkit.entity.Entity> getNearbyEntities(org.bukkit.Location location, double x, double y, double z) Returns a list of entities within a bounding box centered around a Location.Some implementations may impose artificial restrictions on the size of the search bounding box.
- Specified by:
getNearbyEntities
in interfaceorg.bukkit.World
- Parameters:
location
- The center of the bounding boxx
- 1/2 the size of the box along x axisy
- 1/2 the size of the box along y axisz
- 1/2 the size of the box along z axis- Returns:
- the collection of entities near location. This will always be a non-null collection.
-
getNearbyEntities
@NotNull public @NotNull Collection<org.bukkit.entity.Entity> getNearbyEntities(@NotNull @NotNull org.bukkit.Location location, double v, double v1, double v2, @Nullable @Nullable Predicate<org.bukkit.entity.Entity> predicate) - Specified by:
getNearbyEntities
in interfaceorg.bukkit.World
-
getNearbyEntities
@NotNull public @NotNull Collection<org.bukkit.entity.Entity> getNearbyEntities(@NotNull org.bukkit.util.BoundingBox boundingBox) - Specified by:
getNearbyEntities
in interfaceorg.bukkit.World
-
getNearbyEntities
@NotNull public @NotNull Collection<org.bukkit.entity.Entity> getNearbyEntities(@NotNull org.bukkit.util.BoundingBox boundingBox, @Nullable @Nullable Predicate<org.bukkit.entity.Entity> predicate) - Specified by:
getNearbyEntities
in interfaceorg.bukkit.World
-
rayTraceEntities
@Nullable public @Nullable org.bukkit.util.RayTraceResult rayTraceEntities(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.util.Vector vector, double v) - Specified by:
rayTraceEntities
in interfaceorg.bukkit.World
-
rayTraceEntities
@Nullable public @Nullable org.bukkit.util.RayTraceResult rayTraceEntities(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.util.Vector vector, double v, double v1) - Specified by:
rayTraceEntities
in interfaceorg.bukkit.World
-
rayTraceEntities
@Nullable public @Nullable org.bukkit.util.RayTraceResult rayTraceEntities(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.util.Vector vector, double v, @Nullable @Nullable Predicate<org.bukkit.entity.Entity> predicate) - Specified by:
rayTraceEntities
in interfaceorg.bukkit.World
-
rayTraceEntities
@Nullable public @Nullable org.bukkit.util.RayTraceResult rayTraceEntities(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.util.Vector vector, double v, double v1, @Nullable @Nullable Predicate<org.bukkit.entity.Entity> predicate) - Specified by:
rayTraceEntities
in interfaceorg.bukkit.World
-
rayTraceBlocks
@Nullable public @Nullable org.bukkit.util.RayTraceResult rayTraceBlocks(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.util.Vector vector, double v) - Specified by:
rayTraceBlocks
in interfaceorg.bukkit.World
-
rayTraceBlocks
@Nullable public @Nullable org.bukkit.util.RayTraceResult rayTraceBlocks(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.util.Vector vector, double v, @NotNull @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode) - Specified by:
rayTraceBlocks
in interfaceorg.bukkit.World
-
rayTraceBlocks
@Nullable public @Nullable org.bukkit.util.RayTraceResult rayTraceBlocks(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.util.Vector vector, double v, @NotNull @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode, boolean b) - Specified by:
rayTraceBlocks
in interfaceorg.bukkit.World
-
getEntities
- Specified by:
getEntities
in interfaceorg.bukkit.World
-
getLivingEntities
- Specified by:
getLivingEntities
in interfaceorg.bukkit.World
-
getEntitiesByClass
@Deprecated public <T extends org.bukkit.entity.Entity> Collection<T> getEntitiesByClass(Class<T>... classes) Deprecated.- Specified by:
getEntitiesByClass
in interfaceorg.bukkit.World
-
getEntitiesByClass
- Specified by:
getEntitiesByClass
in interfaceorg.bukkit.World
-
getEntitiesByClasses
- Specified by:
getEntitiesByClasses
in interfaceorg.bukkit.World
-
getSpawnLocation
public org.bukkit.Location getSpawnLocation()- Specified by:
getSpawnLocation
in interfaceorg.bukkit.World
-
setSpawnLocation
public boolean setSpawnLocation(org.bukkit.Location newSpawn) - Specified by:
setSpawnLocation
in interfaceorg.bukkit.World
-
setSpawnLocation
public boolean setSpawnLocation(int x, int y, int z, float angle) - Specified by:
setSpawnLocation
in interfaceorg.bukkit.World
-
setSpawnLocation
public boolean setSpawnLocation(int x, int y, int z) - Specified by:
setSpawnLocation
in interfaceorg.bukkit.World
-
setSpawnLocation
public boolean setSpawnLocation(org.bukkit.Location newSpawn, boolean anchor) Sets the spawn location of the world.- Parameters:
newSpawn
- the new spawn locationanchor
- if true, the spawn is never unloaded while the world is running- Returns:
- true if the spawn location has changed
-
setSpawnLocation
public boolean setSpawnLocation(int x, int y, int z, boolean anchor) -
getPVP
public boolean getPVP()- Specified by:
getPVP
in interfaceorg.bukkit.World
-
setPVP
public void setPVP(boolean pvp) - Specified by:
setPVP
in interfaceorg.bukkit.World
-
getKeepSpawnInMemory
public boolean getKeepSpawnInMemory()- Specified by:
getKeepSpawnInMemory
in interfaceorg.bukkit.World
-
setKeepSpawnInMemory
public void setKeepSpawnInMemory(boolean keepLoaded) - Specified by:
setKeepSpawnInMemory
in interfaceorg.bukkit.World
-
setDifficulty
public void setDifficulty(org.bukkit.Difficulty difficulty) - Specified by:
setDifficulty
in interfaceorg.bukkit.World
-
setSpawnFlags
public void setSpawnFlags(boolean allowMonsters, boolean allowAnimals) - Specified by:
setSpawnFlags
in interfaceorg.bukkit.World
-
getAllowAnimals
public boolean getAllowAnimals()- Specified by:
getAllowAnimals
in interfaceorg.bukkit.World
-
getAllowMonsters
public boolean getAllowMonsters()- Specified by:
getAllowMonsters
in interfaceorg.bukkit.World
-
getUID
- Specified by:
getUID
in interfaceorg.bukkit.World
-
getSeaLevel
public int getSeaLevel()- Specified by:
getSeaLevel
in interfaceorg.bukkit.World
-
canGenerateStructures
public boolean canGenerateStructures()- Specified by:
canGenerateStructures
in interfaceorg.bukkit.World
-
getTicksPerAnimalSpawns
public long getTicksPerAnimalSpawns()- Specified by:
getTicksPerAnimalSpawns
in interfaceorg.bukkit.World
-
getTicksPerMonsterSpawns
public long getTicksPerMonsterSpawns()- Specified by:
getTicksPerMonsterSpawns
in interfaceorg.bukkit.World
-
getTicksPerWaterSpawns
public long getTicksPerWaterSpawns()- Specified by:
getTicksPerWaterSpawns
in interfaceorg.bukkit.World
-
getTicksPerWaterAmbientSpawns
public long getTicksPerWaterAmbientSpawns()- Specified by:
getTicksPerWaterAmbientSpawns
in interfaceorg.bukkit.World
-
getTicksPerAmbientSpawns
public long getTicksPerAmbientSpawns()- Specified by:
getTicksPerAmbientSpawns
in interfaceorg.bukkit.World
-
save
public void save()- Specified by:
save
in interfaceorg.bukkit.World
-
save
public void save(boolean async) Saves world to disk synchronously or asynchronously.- Parameters:
async
- if true, save asynchronously
-
getGenerator
public org.bukkit.generator.ChunkGenerator getGenerator()- Specified by:
getGenerator
in interfaceorg.bukkit.World
-
getPopulators
- Specified by:
getPopulators
in interfaceorg.bukkit.World
-
generateTree
public boolean generateTree(org.bukkit.Location location, org.bukkit.TreeType type) - Specified by:
generateTree
in interfaceorg.bukkit.World
-
generateTree
public boolean generateTree(org.bukkit.Location loc, org.bukkit.TreeType type, org.bukkit.BlockChangeDelegate delegate) - Specified by:
generateTree
in interfaceorg.bukkit.World
-
getStructures
-
getEntityCount
public int getEntityCount()- Specified by:
getEntityCount
in interfaceorg.bukkit.World
-
getTileEntityCount
Deprecated.- Specified by:
getTileEntityCount
in interfaceorg.bukkit.World
-
getBlockEntityCount
public int getBlockEntityCount()Returns the number of block entities in loaded chunkManager.- Returns:
- the number of block entities
-
getTickableTileEntityCount
Deprecated.- Specified by:
getTickableTileEntityCount
in interfaceorg.bukkit.World
-
getTickableBlockEntityCount
public int getTickableBlockEntityCount()Returns the number of tickable block entities in loaded chunkManager.- Returns:
- the number of tickable block entities
-
getChunkCount
public int getChunkCount()- Specified by:
getChunkCount
in interfaceorg.bukkit.World
-
getPlayerCount
public int getPlayerCount()- Specified by:
getPlayerCount
in interfaceorg.bukkit.World
-
getBlockAt
- Specified by:
getBlockAt
in interfaceorg.bukkit.World
-
getBlockAt
- Specified by:
getBlockAt
in interfaceorg.bukkit.World
-
getBlockTypeAt
public org.bukkit.Material getBlockTypeAt(int x, int y, int z) -
getBlockDataAt
public org.bukkit.block.data.BlockData getBlockDataAt(int x, int y, int z) -
getHighestBlockYAt
public int getHighestBlockYAt(org.bukkit.Location location) - Specified by:
getHighestBlockYAt
in interfaceorg.bukkit.World
-
getHighestBlockYAt
public int getHighestBlockYAt(int x, int z, @NotNull @NotNull com.destroystokyo.paper.HeightmapType heightmapType) - Specified by:
getHighestBlockYAt
in interfaceorg.bukkit.World
-
getHighestBlockYAt
public int getHighestBlockYAt(int x, int z, @NotNull @NotNull org.bukkit.HeightMap heightMap) - Specified by:
getHighestBlockYAt
in interfaceorg.bukkit.World
-
getHighestBlockYAt
public int getHighestBlockYAt(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.HeightMap heightMap) - Specified by:
getHighestBlockYAt
in interfaceorg.bukkit.World
-
getHighestBlockYAt
public int getHighestBlockYAt(int x, int z) - Specified by:
getHighestBlockYAt
in interfaceorg.bukkit.World
-
getHighestBlockAt
@NotNull public @NotNull org.bukkit.block.Block getHighestBlockAt(int x, int z, @NotNull @NotNull org.bukkit.HeightMap heightMap) - Specified by:
getHighestBlockAt
in interfaceorg.bukkit.World
-
getHighestBlockAt
@NotNull public @NotNull org.bukkit.block.Block getHighestBlockAt(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.HeightMap heightMap) - Specified by:
getHighestBlockAt
in interfaceorg.bukkit.World
-
getHighestBlockAt
public org.bukkit.block.Block getHighestBlockAt(int x, int z) - Specified by:
getHighestBlockAt
in interfaceorg.bukkit.World
-
getHighestBlockAt
public org.bukkit.block.Block getHighestBlockAt(org.bukkit.Location location) - Specified by:
getHighestBlockAt
in interfaceorg.bukkit.World
-
getHighestBlockAt
public org.bukkit.block.Block getHighestBlockAt(org.bukkit.Location location, org.bukkit.Material... except) Gets the lowest block at the givenLocation
such that the block and all blocks above it are either air or one of the given materials.- Parameters:
location
- Coordinates to get the highest blockexcept
- Blocks to exclude in addition to air- Returns:
- Highest non-empty block
-
getChunkAt
- Specified by:
getChunkAt
in interfaceorg.bukkit.World
-
getChunkAt
public org.bukkit.Chunk getChunkAt(org.bukkit.Location location) - Specified by:
getChunkAt
in interfaceorg.bukkit.World
-
getChunkAt
- Specified by:
getChunkAt
in interfaceorg.bukkit.World
-
getChunkAt
public org.bukkit.Chunk getChunkAt(org.bukkit.block.Block block) - Specified by:
getChunkAt
in interfaceorg.bukkit.World
-
getChunk
-
getChunkAtAsync
public void getChunkAtAsync(int x, int z, org.bukkit.World.ChunkLoadCallback cb) - Specified by:
getChunkAtAsync
in interfaceorg.bukkit.World
-
getChunkAtAsync
public void getChunkAtAsync(org.bukkit.Location location, org.bukkit.World.ChunkLoadCallback cb) - Specified by:
getChunkAtAsync
in interfaceorg.bukkit.World
-
getChunkAtAsync
public void getChunkAtAsync(org.bukkit.block.Block block, org.bukkit.World.ChunkLoadCallback cb) - Specified by:
getChunkAtAsync
in interfaceorg.bukkit.World
-
getChunkAtAsync
@NotNull public @NotNull CompletableFuture<org.bukkit.Chunk> getChunkAtAsync(int x, int z, boolean gen) - Specified by:
getChunkAtAsync
in interfaceorg.bukkit.World
-
getChunkAtAsync
@NotNull public @NotNull CompletableFuture<org.bukkit.Chunk> getChunkAtAsync(int x, int z, boolean gen, boolean urgent) - Specified by:
getChunkAtAsync
in interfaceorg.bukkit.World
-
getKey
@NotNull public @NotNull org.bukkit.NamespacedKey getKey()- Specified by:
getKey
in interfaceorg.bukkit.Keyed
- Specified by:
getKey
in interfaceorg.bukkit.World
-
isChunkLoaded
public boolean isChunkLoaded(org.bukkit.Chunk chunk) - Specified by:
isChunkLoaded
in interfaceorg.bukkit.World
-
isChunkLoaded
public boolean isChunkLoaded(int x, int z) - Specified by:
isChunkLoaded
in interfaceorg.bukkit.World
-
isChunkGenerated
public boolean isChunkGenerated(int x, int z) - Specified by:
isChunkGenerated
in interfaceorg.bukkit.World
-
isChunkInUse
public boolean isChunkInUse(int x, int z) - Specified by:
isChunkInUse
in interfaceorg.bukkit.World
-
getLoadedChunks
public org.bukkit.Chunk[] getLoadedChunks()- Specified by:
getLoadedChunks
in interfaceorg.bukkit.World
-
loadChunk
public void loadChunk(org.bukkit.Chunk chunk) - Specified by:
loadChunk
in interfaceorg.bukkit.World
-
loadChunk
public void loadChunk(int x, int z) - Specified by:
loadChunk
in interfaceorg.bukkit.World
-
loadChunk
public boolean loadChunk(int x, int z, boolean generate) - Specified by:
loadChunk
in interfaceorg.bukkit.World
-
unloadChunk
public boolean unloadChunk(org.bukkit.Chunk chunk) - Specified by:
unloadChunk
in interfaceorg.bukkit.World
-
unloadChunk
public boolean unloadChunk(int x, int z) - Specified by:
unloadChunk
in interfaceorg.bukkit.World
-
unloadChunk
public boolean unloadChunk(int x, int z, boolean save) - Specified by:
unloadChunk
in interfaceorg.bukkit.World
-
unloadChunk
public boolean unloadChunk(int x, int z, boolean save, boolean safe) -
unloadChunkRequest
public boolean unloadChunkRequest(int x, int z) - Specified by:
unloadChunkRequest
in interfaceorg.bukkit.World
-
unloadChunkRequest
public boolean unloadChunkRequest(int x, int z, boolean safe) -
regenerateChunk
public boolean regenerateChunk(int x, int z) - Specified by:
regenerateChunk
in interfaceorg.bukkit.World
-
refreshChunk
public boolean refreshChunk(int x, int z) - Specified by:
refreshChunk
in interfaceorg.bukkit.World
-
isChunkForceLoaded
public boolean isChunkForceLoaded(int x, int z) - Specified by:
isChunkForceLoaded
in interfaceorg.bukkit.World
-
setChunkForceLoaded
public void setChunkForceLoaded(int x, int z, boolean forced) - Specified by:
setChunkForceLoaded
in interfaceorg.bukkit.World
-
getForceLoadedChunks
- Specified by:
getForceLoadedChunks
in interfaceorg.bukkit.World
-
addPluginChunkTicket
public boolean addPluginChunkTicket(int x, int z, @NotNull @NotNull org.bukkit.plugin.Plugin plugin) - Specified by:
addPluginChunkTicket
in interfaceorg.bukkit.World
-
removePluginChunkTicket
public boolean removePluginChunkTicket(int x, int z, @NotNull @NotNull org.bukkit.plugin.Plugin plugin) - Specified by:
removePluginChunkTicket
in interfaceorg.bukkit.World
-
removePluginChunkTickets
public void removePluginChunkTickets(@NotNull @NotNull org.bukkit.plugin.Plugin plugin) - Specified by:
removePluginChunkTickets
in interfaceorg.bukkit.World
-
getPluginChunkTickets
- Specified by:
getPluginChunkTickets
in interfaceorg.bukkit.World
-
getPluginChunkTickets
@NotNull public @NotNull Map<org.bukkit.plugin.Plugin,Collection<org.bukkit.Chunk>> getPluginChunkTickets()- Specified by:
getPluginChunkTickets
in interfaceorg.bukkit.World
-
getEmptyChunkSnapshot
public org.bukkit.ChunkSnapshot getEmptyChunkSnapshot(int x, int z, boolean includeBiome, boolean includeBiomeTempRain) - Specified by:
getEmptyChunkSnapshot
in interfaceorg.bukkit.World
-
getBiome
public org.bukkit.block.Biome getBiome(int x, int z) - Specified by:
getBiome
in interfaceorg.bukkit.World
-
getBiome
@NotNull public @NotNull org.bukkit.block.Biome getBiome(int x, int y, int z) - Specified by:
getBiome
in interfaceorg.bukkit.World
-
setBiome
public void setBiome(int x, int z, @NotNull @NotNull org.bukkit.block.Biome bio) - Specified by:
setBiome
in interfaceorg.bukkit.World
-
setBiome
public void setBiome(int x, int y, int z, @NotNull @NotNull org.bukkit.block.Biome biome) - Specified by:
setBiome
in interfaceorg.bukkit.World
-
getTemperature
public double getTemperature(int x, int z) - Specified by:
getTemperature
in interfaceorg.bukkit.World
-
getTemperature
public double getTemperature(int x, int y, int z) - Specified by:
getTemperature
in interfaceorg.bukkit.World
-
getHumidity
public double getHumidity(int x, int z) - Specified by:
getHumidity
in interfaceorg.bukkit.World
-
getHumidity
public double getHumidity(int x, int y, int z) - Specified by:
getHumidity
in interfaceorg.bukkit.World
-
getMinHeight
public int getMinHeight()- Specified by:
getMinHeight
in interfaceorg.bukkit.World
-
spawn
public <T extends org.bukkit.entity.Entity> T spawn(org.bukkit.Location location, Class<T> clazz) throws IllegalArgumentException - Specified by:
spawn
in interfaceorg.bukkit.World
- Throws:
IllegalArgumentException
-
spawn
public <T extends org.bukkit.entity.Entity> T spawn(org.bukkit.Location location, Class<T> clazz, org.bukkit.util.Consumer<T> function) throws IllegalArgumentException - Specified by:
spawn
in interfaceorg.bukkit.World
- Throws:
IllegalArgumentException
-
spawn
@NotNull public <T extends org.bukkit.entity.Entity> T spawn(org.bukkit.Location location, Class<T> clazz, org.bukkit.util.Consumer<T> function, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason spawnReason) throws IllegalArgumentException - Specified by:
spawn
in interfaceorg.bukkit.World
- Throws:
IllegalArgumentException
-
spawnGlowEntity
public <T extends GlowEntity,E extends org.bukkit.entity.Entity> GlowEntity spawnGlowEntity(org.bukkit.Location location, Class<T> clazz, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason, @Nullable @Nullable org.bukkit.util.Consumer<E> function) throws IllegalArgumentException Spawns an entity.- Parameters:
location
- theLocation
to spawn the entity atclazz
- the class of theEntity
to spawnreason
- the reason for the spawning of the entity- Returns:
- an instance of the spawned
Entity
- Throws:
IllegalArgumentException
- TODO: document the reason this can happen
-
spawnCustomEntity
public <T extends org.bukkit.entity.Entity> T spawnCustomEntity(org.bukkit.Location location, String id) throws IllegalArgumentException Spawn a custom entity at the givenLocation
.- Type Parameters:
T
- the class of theEntity
to spawn- Parameters:
location
- theLocation
to spawn the entity atid
- the id of the custom entity- Returns:
- an instance of the spawned
Entity
- Throws:
IllegalArgumentException
-
spawnCustomEntity
public <T extends org.bukkit.entity.Entity> T spawnCustomEntity(org.bukkit.Location location, String id, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason) throws IllegalArgumentException Spawn a custom entity at the givenLocation
, with the givenCreatureSpawnEvent.SpawnReason
.- Type Parameters:
T
- the class of theEntity
to spawn- Parameters:
location
- theLocation
to spawn the entity atid
- the id of the custom entityreason
- the reason for the spawning of the entity- Returns:
- an instance of the spawned
Entity
- Throws:
IllegalArgumentException
-
dropItem
Spawn an item at the givenLocation
without shooting effect.- Specified by:
dropItem
in interfaceorg.bukkit.World
- Parameters:
location
- theLocation
to spawn the item atitem
- theItemStack
the item should have
-
dropItem
@NotNull public @NotNull org.bukkit.entity.Item dropItem(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.inventory.ItemStack stack, @Nullable @Nullable org.bukkit.util.Consumer<org.bukkit.entity.Item> consumer) - Specified by:
dropItem
in interfaceorg.bukkit.World
-
dropItemNaturally
public GlowItem dropItemNaturally(org.bukkit.Location location, org.bukkit.inventory.ItemStack item) Spawn an item at the givenLocation
with shooting effect.- Specified by:
dropItemNaturally
in interfaceorg.bukkit.World
- Parameters:
location
- theLocation
to spawn the item atitem
- theItemStack
the item should have
-
dropItemNaturally
@NotNull public @NotNull org.bukkit.entity.Item dropItemNaturally(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.inventory.ItemStack stack, @Nullable @Nullable org.bukkit.util.Consumer<org.bukkit.entity.Item> consumer) - Specified by:
dropItemNaturally
in interfaceorg.bukkit.World
-
spawnArrow
public org.bukkit.entity.Arrow spawnArrow(org.bukkit.Location location, org.bukkit.util.Vector velocity, float speed, float spread) - Specified by:
spawnArrow
in interfaceorg.bukkit.World
-
spawnArrow
@NotNull public <T extends org.bukkit.entity.AbstractArrow> T spawnArrow(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.util.Vector vector, float speed, float spread, @NotNull @NotNull Class<T> clazz) - Specified by:
spawnArrow
in interfaceorg.bukkit.World
-
spawnFallingBlock
public org.bukkit.entity.FallingBlock spawnFallingBlock(org.bukkit.Location location, org.bukkit.material.MaterialData data) throws IllegalArgumentException - Specified by:
spawnFallingBlock
in interfaceorg.bukkit.World
- Throws:
IllegalArgumentException
-
spawnFallingBlock
@Deprecated public org.bukkit.entity.FallingBlock spawnFallingBlock(org.bukkit.Location location, org.bukkit.Material material, byte data) throws IllegalArgumentException Deprecated.- Specified by:
spawnFallingBlock
in interfaceorg.bukkit.World
- Throws:
IllegalArgumentException
-
spawnFallingBlock
public org.bukkit.entity.FallingBlock spawnFallingBlock(org.bukkit.Location location, org.bukkit.block.data.BlockData blockData) throws IllegalArgumentException - Specified by:
spawnFallingBlock
in interfaceorg.bukkit.World
- Throws:
IllegalArgumentException
-
spawnEntity
public org.bukkit.entity.Entity spawnEntity(org.bukkit.Location loc, org.bukkit.entity.EntityType type) - Specified by:
spawnEntity
in interfaceorg.bukkit.World
-
strikeLightning
- Specified by:
strikeLightning
in interfaceorg.bukkit.World
-
strikeLightningEffect
- Specified by:
strikeLightningEffect
in interfaceorg.bukkit.World
-
setTime
public void setTime(long time) - Specified by:
setTime
in interfaceorg.bukkit.World
-
isDayTime
public boolean isDayTime()- Specified by:
isDayTime
in interfaceorg.bukkit.World
-
getGameTime
public long getGameTime()- Specified by:
getGameTime
in interfaceorg.bukkit.World
-
hasStorm
public boolean hasStorm()- Specified by:
hasStorm
in interfaceorg.bukkit.World
-
setStorm
public void setStorm(boolean hasStorm) - Specified by:
setStorm
in interfaceorg.bukkit.World
-
setThundering
public void setThundering(boolean thundering) - Specified by:
setThundering
in interfaceorg.bukkit.World
-
isClearWeather
public boolean isClearWeather()- Specified by:
isClearWeather
in interfaceorg.bukkit.World
-
setClearWeatherDuration
public void setClearWeatherDuration(int i) - Specified by:
setClearWeatherDuration
in interfaceorg.bukkit.World
-
getClearWeatherDuration
public int getClearWeatherDuration()- Specified by:
getClearWeatherDuration
in interfaceorg.bukkit.World
-
createExplosion
public boolean createExplosion(org.bukkit.Location loc, float power) - Specified by:
createExplosion
in interfaceorg.bukkit.World
-
createExplosion
public boolean createExplosion(org.bukkit.Location loc, float power, boolean setFire) - Specified by:
createExplosion
in interfaceorg.bukkit.World
-
createExplosion
public boolean createExplosion(org.bukkit.entity.Entity source, org.bukkit.Location loc, float power, boolean setFire, boolean breakBlocks) - Specified by:
createExplosion
in interfaceorg.bukkit.World
-
createExplosion
public boolean createExplosion(@NotNull @NotNull org.bukkit.Location location, float power, boolean setFire, boolean breakBlocks) - Specified by:
createExplosion
in interfaceorg.bukkit.World
-
createExplosion
public boolean createExplosion(@NotNull @NotNull org.bukkit.Location location, float power, boolean setFire, boolean breakBlocks, @Nullable @Nullable org.bukkit.entity.Entity source) - Specified by:
createExplosion
in interfaceorg.bukkit.World
-
createExplosion
public boolean createExplosion(double x, double y, double z, float power) - Specified by:
createExplosion
in interfaceorg.bukkit.World
-
createExplosion
public boolean createExplosion(double x, double y, double z, float power, boolean setFire) - Specified by:
createExplosion
in interfaceorg.bukkit.World
-
createExplosion
public boolean createExplosion(double x, double y, double z, float power, boolean setFire, boolean breakBlocks) - Specified by:
createExplosion
in interfaceorg.bukkit.World
-
createExplosion
public boolean createExplosion(double x, double y, double z, float power, boolean setFire, boolean breakBlocks, @Nullable @Nullable org.bukkit.entity.Entity source) - Specified by:
createExplosion
in interfaceorg.bukkit.World
-
createExplosion
public boolean createExplosion(org.bukkit.entity.Entity source, double x, double y, double z, float power, boolean incendiary, boolean breakBlocks) Create an explosion with a specific entity as the source.- Parameters:
source
- The entity to treat as the source, or null.x
- X coordinatey
- Y coordinatez
- Z coordinatepower
- The power of explosion, where 4F is TNTincendiary
- Whether or not to set blocks on firebreakBlocks
- Whether or not to have blocks be destroyed- Returns:
- false if explosion was canceled, otherwise true
-
playEffect
public void playEffect(org.bukkit.Location location, org.bukkit.Effect effect, int data) - Specified by:
playEffect
in interfaceorg.bukkit.World
-
playEffect
public void playEffect(org.bukkit.Location location, org.bukkit.Effect effect, int data, int radius) - Specified by:
playEffect
in interfaceorg.bukkit.World
-
playEffect
public <T> void playEffect(org.bukkit.Location location, org.bukkit.Effect effect, T data) - Specified by:
playEffect
in interfaceorg.bukkit.World
-
playEffect
public <T> void playEffect(org.bukkit.Location location, org.bukkit.Effect effect, T data, int radius) - Specified by:
playEffect
in interfaceorg.bukkit.World
-
playEffectExceptTo
public void playEffectExceptTo(org.bukkit.Location location, org.bukkit.Effect effect, int data, int radius, org.bukkit.entity.Player exclude) Plays an effect to all but one player within a given radius around a location.- Parameters:
location
- theLocation
around which players must be to hear the effecteffect
- theEffect
data
- a data bit needed for some effectsradius
- the radius around the locationexclude
- the player who won't see the effect
-
playSound
public void playSound(org.bukkit.Location location, org.bukkit.Sound sound, float volume, float pitch) - Specified by:
playSound
in interfaceorg.bukkit.World
-
playSound
- Specified by:
playSound
in interfaceorg.bukkit.World
-
playSound
public void playSound(org.bukkit.Location location, org.bukkit.Sound sound, org.bukkit.SoundCategory category, float volume, float pitch) - Specified by:
playSound
in interfaceorg.bukkit.World
-
playSound
public void playSound(org.bukkit.Location location, String sound, org.bukkit.SoundCategory category, float volume, float pitch) - Specified by:
playSound
in interfaceorg.bukkit.World
-
spigot
public org.bukkit.World.Spigot spigot()- Specified by:
spigot
in interfaceorg.bukkit.World
-
locateNearestRaid
@Nullable public @Nullable org.bukkit.Raid locateNearestRaid(@NotNull @NotNull org.bukkit.Location location, int radius) - Specified by:
locateNearestRaid
in interfaceorg.bukkit.World
-
getRaids
- Specified by:
getRaids
in interfaceorg.bukkit.World
-
getEnderDragonBattle
@Nullable public @Nullable org.bukkit.boss.DragonBattle getEnderDragonBattle()- Specified by:
getEnderDragonBattle
in interfaceorg.bukkit.World
-
showParticle
public void showParticle(org.bukkit.Location loc, org.bukkit.Effect particle, float offsetX, float offsetY, float offsetZ, float speed, int amount) Displays the given particle to all players.- Parameters:
loc
- the locationparticle
- the particle typeoffsetX
- TODO: document this parameteroffsetY
- TODO: document this parameteroffsetZ
- TODO: document this parameterspeed
- TODO: document this parameteramount
- the number of particles
-
showParticle
public void showParticle(org.bukkit.Location loc, org.bukkit.Effect particle, int id, int data, float offsetX, float offsetY, float offsetZ, float speed, int amount, int radius) Displays the given particle to all players.- Parameters:
loc
- the locationparticle
- the particle typeid
- the block or item type IDdata
- the block or item dataoffsetX
- TODO: document this parameteroffsetY
- TODO: document this parameteroffsetZ
- TODO: document this parameterspeed
- TODO: document this parameteramount
- the number of particlesradius
- TODO: document this parameter
-
unload
public boolean unload()Unloads the world.- Returns:
- true if successful
-
getWorldFolder
Get the world folder.- Specified by:
getWorldFolder
in interfaceorg.bukkit.World
- Returns:
- world folder
-
getGameRules
- Specified by:
getGameRules
in interfaceorg.bukkit.World
-
getGameRuleValue
- Specified by:
getGameRuleValue
in interfaceorg.bukkit.World
-
getGameRuleValue
public <T> T getGameRuleValue(org.bukkit.GameRule<T> gameRule) - Specified by:
getGameRuleValue
in interfaceorg.bukkit.World
-
setGameRuleValue
- Specified by:
setGameRuleValue
in interfaceorg.bukkit.World
-
isGameRule
- Specified by:
isGameRule
in interfaceorg.bukkit.World
-
getGameRuleDefault
public <T> T getGameRuleDefault(org.bukkit.GameRule<T> gameRule) - Specified by:
getGameRuleDefault
in interfaceorg.bukkit.World
-
setGameRule
public <T> boolean setGameRule(org.bukkit.GameRule<T> gameRule, T t) - Specified by:
setGameRule
in interfaceorg.bukkit.World
-
getFunctions
-
spawnParticle
public void spawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count) - Specified by:
spawnParticle
in interfaceorg.bukkit.World
-
spawnParticle
public void spawnParticle(org.bukkit.Particle particle, double x, double y, double z, int count) - Specified by:
spawnParticle
in interfaceorg.bukkit.World
-
spawnParticle
public <T> void spawnParticle(org.bukkit.Particle particle, org.bukkit.Location location, int count, T data) - Specified by:
spawnParticle
in interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.bukkit.World
-
spawnParticle
public <T> void spawnParticle(org.bukkit.Particle particle, List<org.bukkit.entity.Player> receivers, org.bukkit.entity.Player source, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, T data) - Specified by:
spawnParticle
in interfaceorg.bukkit.World
-
spawnParticle
public <T> void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, @Nullable @Nullable List<org.bukkit.entity.Player> list, @Nullable @Nullable org.bukkit.entity.Player player, double v, double v1, double v2, int i, double v3, double v4, double v5, double v6, @Nullable T t, boolean b) - Specified by:
spawnParticle
in interfaceorg.bukkit.World
-
spawnParticle
public <T> void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, @NotNull @NotNull org.bukkit.Location location, int i, double v, double v1, double v2, double v3, @Nullable T t, boolean b) - Specified by:
spawnParticle
in interfaceorg.bukkit.World
-
spawnParticle
public <T> void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, double v, double v1, double v2, int i, double v3, double v4, double v5, double v6, @Nullable T t, boolean b) - Specified by:
spawnParticle
in interfaceorg.bukkit.World
-
locateNearestStructure
@Nullable public @Nullable org.bukkit.Location locateNearestStructure(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.StructureType structureType, int i, boolean b) - Specified by:
locateNearestStructure
in interfaceorg.bukkit.World
-
locateNearestBiome
@Nullable public @Nullable org.bukkit.Location locateNearestBiome(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.block.Biome biome, int i) - Specified by:
locateNearestBiome
in interfaceorg.bukkit.World
-
locateNearestBiome
@Nullable public @Nullable org.bukkit.Location locateNearestBiome(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.block.Biome biome, int i, int i1) - Specified by:
locateNearestBiome
in interfaceorg.bukkit.World
-
isUltrawarm
public boolean isUltrawarm()- Specified by:
isUltrawarm
in interfaceorg.bukkit.World
-
isNatural
public boolean isNatural()- Specified by:
isNatural
in interfaceorg.bukkit.World
-
getCoordinateScale
public double getCoordinateScale()- Specified by:
getCoordinateScale
in interfaceorg.bukkit.World
-
hasSkylight
public boolean hasSkylight()- Specified by:
hasSkylight
in interfaceorg.bukkit.World
-
hasBedrockCeiling
public boolean hasBedrockCeiling()- Specified by:
hasBedrockCeiling
in interfaceorg.bukkit.World
-
isPiglinSafe
public boolean isPiglinSafe()- Specified by:
isPiglinSafe
in interfaceorg.bukkit.World
-
doesBedWork
public boolean doesBedWork()- Specified by:
doesBedWork
in interfaceorg.bukkit.World
-
doesRespawnAnchorWork
public boolean doesRespawnAnchorWork()- Specified by:
doesRespawnAnchorWork
in interfaceorg.bukkit.World
-
hasRaids
public boolean hasRaids()- Specified by:
hasRaids
in interfaceorg.bukkit.World
-
isFixedTime
public boolean isFixedTime()- Specified by:
isFixedTime
in interfaceorg.bukkit.World
-
getInfiniburn
- Specified by:
getInfiniburn
in interfaceorg.bukkit.World
-
getNoTickViewDistance
public int getNoTickViewDistance()- Specified by:
getNoTickViewDistance
in interfaceorg.bukkit.World
-
setNoTickViewDistance
public void setNoTickViewDistance(int viewDistance) - Specified by:
setNoTickViewDistance
in interfaceorg.bukkit.World
-
setMetadata
- Specified by:
setMetadata
in interfaceorg.bukkit.metadata.Metadatable
-
getMetadata
- Specified by:
getMetadata
in interfaceorg.bukkit.metadata.Metadatable
-
hasMetadata
- Specified by:
hasMetadata
in interfaceorg.bukkit.metadata.Metadatable
-
removeMetadata
- Specified by:
removeMetadata
in interfaceorg.bukkit.metadata.Metadatable
-
sendPluginMessage
- Specified by:
sendPluginMessage
in interfaceorg.bukkit.plugin.messaging.PluginMessageRecipient
-
getListeningPluginChannels
- Specified by:
getListeningPluginChannels
in interfaceorg.bukkit.plugin.messaging.PluginMessageRecipient
-
getTickMap
-
requestPulse
-
requestPulse
public void requestPulse(org.bukkit.Location location) -
cancelPulse
-
cancelPulse
public void cancelPulse(org.bukkit.Location location) -
hashCode
public int hashCode() -
equals
-
toString
-
getServer
Get the world's parent server.- Returns:
- The GlowServer for the world.
-
getName
The name of this world.- Specified by:
getName
in interfaceorg.bukkit.World
-
getChunkManager
The chunk manager.- Returns:
- The ChunkManager for the world.
-
getStorage
The storage provider for the world.- Returns:
- The
WorldStorageProvider
.
-
getEntityManager
The entity manager.- Returns:
- the entity manager
-
getGameRuleMap
The game rules used in this world. -
getEnvironment
public org.bukkit.World.Environment getEnvironment()The environment.- Specified by:
getEnvironment
in interfaceorg.bukkit.World
-
getSeed
public long getSeed()The world seed.- Specified by:
getSeed
in interfaceorg.bukkit.World
-
getSeedHash
public byte[] getSeedHash()The SHA-256 hash of the world seed. -
getWorldBorder
The world border.- Specified by:
getWorldBorder
in interfaceorg.bukkit.World
-
getWorldType
public org.bukkit.WorldType getWorldType()The world type.- Specified by:
getWorldType
in interfaceorg.bukkit.World
-
setWorldType
public void setWorldType(org.bukkit.WorldType worldType) The world type. -
getWeatherDuration
public int getWeatherDuration()How many ticks until the rain/snow status is expected to change.- Specified by:
getWeatherDuration
in interfaceorg.bukkit.World
-
setWeatherDuration
public void setWeatherDuration(int weatherDuration) How many ticks until the rain/snow status is expected to change.- Specified by:
setWeatherDuration
in interfaceorg.bukkit.World
-
isThundering
public boolean isThundering()Whether it is currently thundering on this world.- Specified by:
isThundering
in interfaceorg.bukkit.World
-
getThunderDuration
public int getThunderDuration()How many ticks until the thundering status is expected to change.- Specified by:
getThunderDuration
in interfaceorg.bukkit.World
-
setThunderDuration
public void setThunderDuration(int thunderDuration) How many ticks until the thundering status is expected to change.- Specified by:
setThunderDuration
in interfaceorg.bukkit.World
-
getRainDensity
public float getRainDensity()The rain density on the current world tick. -
getSkyDarkness
public float getSkyDarkness()The sky darkness on the current world tick. -
getFullTime
public long getFullTime()The age of the world, in ticks.- Specified by:
getFullTime
in interfaceorg.bukkit.World
-
setFullTime
public void setFullTime(long fullTime) The age of the world, in ticks.- Specified by:
setFullTime
in interfaceorg.bukkit.World
-
getTime
public long getTime()The current world time.- Specified by:
getTime
in interfaceorg.bukkit.World
-
isAutoSave
public boolean isAutoSave()The check to autosave.- Specified by:
isAutoSave
in interfaceorg.bukkit.World
-
setAutoSave
public void setAutoSave(boolean autoSave) The check to autosave.- Specified by:
setAutoSave
in interfaceorg.bukkit.World
-
getDifficulty
public org.bukkit.Difficulty getDifficulty()The world's gameplay difficulty.- Specified by:
getDifficulty
in interfaceorg.bukkit.World
-
setTicksPerAnimalSpawns
public void setTicksPerAnimalSpawns(int ticksPerAnimalSpawns) Ticks between when passive mobs are spawned.- Specified by:
setTicksPerAnimalSpawns
in interfaceorg.bukkit.World
-
setTicksPerMonsterSpawns
public void setTicksPerMonsterSpawns(int ticksPerMonsterSpawns) Ticks between when hostile mobs are spawned.- Specified by:
setTicksPerMonsterSpawns
in interfaceorg.bukkit.World
-
setTicksPerWaterSpawns
public void setTicksPerWaterSpawns(int ticksPerWaterSpawns) Ticks between when water mobs are spawned.- Specified by:
setTicksPerWaterSpawns
in interfaceorg.bukkit.World
-
setTicksPerWaterAmbientSpawns
public void setTicksPerWaterAmbientSpawns(int ticksPerWaterAmbientSpawns) Ticks between when ambient water mobs are spawned.- Specified by:
setTicksPerWaterAmbientSpawns
in interfaceorg.bukkit.World
-
setTicksPerAmbientSpawns
public void setTicksPerAmbientSpawns(int ticksPerAmbientSpawns) Ticks between when ambient mobs are spawned.- Specified by:
setTicksPerAmbientSpawns
in interfaceorg.bukkit.World
-
getMonsterSpawnLimit
public int getMonsterSpawnLimit()Per-world spawn limits on hostile mobs.- Specified by:
getMonsterSpawnLimit
in interfaceorg.bukkit.World
-
setMonsterSpawnLimit
public void setMonsterSpawnLimit(int monsterSpawnLimit) Per-world spawn limits on hostile mobs.- Specified by:
setMonsterSpawnLimit
in interfaceorg.bukkit.World
-
getAnimalSpawnLimit
public int getAnimalSpawnLimit()Per-world spawn limits on passive mobs.- Specified by:
getAnimalSpawnLimit
in interfaceorg.bukkit.World
-
setAnimalSpawnLimit
public void setAnimalSpawnLimit(int animalSpawnLimit) Per-world spawn limits on passive mobs.- Specified by:
setAnimalSpawnLimit
in interfaceorg.bukkit.World
-
getWaterAnimalSpawnLimit
public int getWaterAnimalSpawnLimit()Per-world spawn limits on water mobs.- Specified by:
getWaterAnimalSpawnLimit
in interfaceorg.bukkit.World
-
setWaterAnimalSpawnLimit
public void setWaterAnimalSpawnLimit(int waterAnimalSpawnLimit) Per-world spawn limits on water mobs.- Specified by:
setWaterAnimalSpawnLimit
in interfaceorg.bukkit.World
-
getWaterAmbientSpawnLimit
public int getWaterAmbientSpawnLimit()Per-world spawn limits on water ambient mobs.- Specified by:
getWaterAmbientSpawnLimit
in interfaceorg.bukkit.World
-
setWaterAmbientSpawnLimit
public void setWaterAmbientSpawnLimit(int waterAmbientSpawnLimit) Per-world spawn limits on water ambient mobs.- Specified by:
setWaterAmbientSpawnLimit
in interfaceorg.bukkit.World
-
getAmbientSpawnLimit
public int getAmbientSpawnLimit()Per-world spawn limits on ambient mobs (bats).- Specified by:
getAmbientSpawnLimit
in interfaceorg.bukkit.World
-
setAmbientSpawnLimit
public void setAmbientSpawnLimit(int ambientSpawnLimit) Per-world spawn limits on ambient mobs (bats).- Specified by:
setAmbientSpawnLimit
in interfaceorg.bukkit.World
-
getMaxHeight
public int getMaxHeight()The maximum height at which players may place blocks.- Specified by:
getMaxHeight
in interfaceorg.bukkit.World
-
isInitialized
public boolean isInitialized()Whether the world has been initialized (i.e. loading/spawn generation is completed). -
getViewDistance
public int getViewDistance()Per-world view distance.- Specified by:
getViewDistance
in interfaceorg.bukkit.World
-
setViewDistance
public void setViewDistance(int viewDistance) Per-world view distance.- Specified by:
setViewDistance
in interfaceorg.bukkit.World
-
isHardcore
public boolean isHardcore()Per-world hardcore setting.- Specified by:
isHardcore
in interfaceorg.bukkit.World
-
setHardcore
public void setHardcore(boolean hardcore) Per-world hardcore setting.- Specified by:
setHardcore
in interfaceorg.bukkit.World
-