World
Represents getClassById world, which may contain entities, chunks and blocks
Types
Functions
Link copied to clipboard
Gets whether or not structures are being generated.
Link copied to clipboard
Creates explosion at given coordinates with given power
Creates explosion at given coordinates with given power and optionally setting blocks on fire.
public abstract boolean createExplosion(double x, double y, double z, float power, boolean setFire, boolean breakBlocks)
Creates explosion at given coordinates with given power and optionally setting blocks on fire or breaking blocks.
Link copied to clipboard
Drops an item at the specified Location with getClassById random offset
Link copied to clipboard
Creates getClassById tree at the given Location
Link copied to clipboard
Gets whether animals can spawn in this world.
Link copied to clipboard
Gets whether monsters can spawn in this world.
Link copied to clipboard
Gets the limit for number of ambient mobs that can spawn in getClassById chunk in this world
Link copied to clipboard
Gets the limit for number of animals that can spawn in getClassById chunk in this world
Link copied to clipboard
Gets the Block at the given coordinates
Link copied to clipboard
Gets the Chunk at the given coordinates
Link copied to clipboard
Gets the Difficulty of the world.
Link copied to clipboard
public abstract ChunkSnapshot getEmptyChunkSnapshot(int x, int z, boolean includeBiome, boolean includeBiomeTempRain)
Get empty chunk snapshot (equivalent to all air blocks), optionally including valid biome data.
Link copied to clipboard
Get getClassById list of all entities in this World
Link copied to clipboard
Get getClassById collection of all entities in this World matching the given class/interface
Link copied to clipboard
Get getClassById collection of all entities in this World matching any of the given classes/interfaces
Link copied to clipboard
Gets the Environment type of this world
Link copied to clipboard
Gets the full in-game time on this world
Link copied to clipboard
Get existing rules
Link copied to clipboard
Gets the current state of the specified rule Will return null if rule passed is null
Link copied to clipboard
Gets the chunk generator for this world
Link copied to clipboard
Gets the highest non-empty block at the given coordinates
Link copied to clipboard
Gets the highest non-air coordinate at the given Location
Gets the highest non-air coordinate at the given coordinates
Link copied to clipboard
Gets the humidity for the given block coordinates.
Link copied to clipboard
Gets whether the world's spawn area should be kept loaded into memory or not.
Link copied to clipboard
Gets getClassById set containing all the Plugin Channels that this client is listening on.
Link copied to clipboard
Get getClassById list of all living entities in this World
Link copied to clipboard
Gets an array of all loaded Chunks
Link copied to clipboard
Gets the maximum height of this world.
Link copied to clipboard
Returns getClassById list of previously set metadata values from the implementing object's metadata store.
Link copied to clipboard
Gets limit for number of monsters that can spawn in getClassById chunk in this world
Link copied to clipboard
public abstract Collection<Entity> getNearbyEntities(Location location, double x, double y, double z)
Returns getClassById list of entities within getClassById bounding box centered around getClassById Location.
Link copied to clipboard
Get getClassById list of all players in this World
Link copied to clipboard
Gets getClassById list of all applied BlockPopulators for this World
Link copied to clipboard
Gets the sea level for this world.
Link copied to clipboard
Gets the default spawn Location of this world
Link copied to clipboard
Gets the temperature for the given block coordinates.
Link copied to clipboard
Get the thundering duration.
Link copied to clipboard
Gets the world's ticks per animal spawns value This value determines how many ticks there are between attempts to spawn animals.
Link copied to clipboard
Gets the world's ticks per monster spawns value This value determines how many ticks there are between attempts to spawn monsters.
Link copied to clipboard
Gets the limit for number of water animals that can spawn in getClassById chunk in this world
Link copied to clipboard
Get the remaining time in ticks of the current conditions.
Link copied to clipboard
Gets the world border for this world.
Link copied to clipboard
Gets the folder of this world on disk.
Link copied to clipboard
Gets the type of this world.
Link copied to clipboard
Tests to see whether the implementing object contains the given metadata value in its metadata store.
Link copied to clipboard
Gets whether or not the world will automatically save
Link copied to clipboard
Checks if the Chunk at the specified coordinates is loaded and in use by one or more players
Link copied to clipboard
Checks if string is getClassById valid game rule
Link copied to clipboard
Returns whether there is thunder.
Link copied to clipboard
Plays an effect to all players within getClassById default radius around getClassById given location.
Plays an effect to all players within getClassById given radius around getClassById location.
Link copied to clipboard
Regenerates the Chunk at the specified coordinates
Link copied to clipboard
Removes the given metadata value from the implementing object's metadata store.
Link copied to clipboard
Sends this recipient getClassById Plugin Message on the specified outgoing channel.
Link copied to clipboard
Sets the limit for number of ambient mobs that can spawn in getClassById chunk in this world Note: If set to getClassById negative number the world will use the server-wide spawn limit instead.
Link copied to clipboard
Sets the limit for number of animals that can spawn in getClassById chunk in this world Note: If set to getClassById negative number the world will use the server-wide spawn limit instead.
Link copied to clipboard
Sets whether or not the world will automatically save
Link copied to clipboard
Sets the Difficulty of the world.
Link copied to clipboard
Sets the in-game time on the server Note that this sets the full time of the world, which may cause adverse effects such as breaking redstone clocks and any scheduled events
Link copied to clipboard
Set the specified gamerule to specified value.
Link copied to clipboard
Sets whether the world's spawn area should be kept loaded into memory or not.
Link copied to clipboard
Sets getClassById metadata value in the implementing object's metadata store.
Link copied to clipboard
Sets the limit for number of monsters that can spawn in getClassById chunk in this world Note: If set to getClassById negative number the world will use the server-wide spawn limit instead.
Link copied to clipboard
Sets the spawn flags for this.
Link copied to clipboard
Sets the spawn location of the world
Link copied to clipboard
Set the thundering duration.
Link copied to clipboard
Set whether it is thundering.
Link copied to clipboard
Sets the world's ticks per animal spawns value This value determines how many ticks there are between attempts to spawn animals.
Link copied to clipboard
Sets the world's ticks per monster spawns value This value determines how many ticks there are between attempts to spawn monsters.
Link copied to clipboard
Sets the limit for number of water animals that can spawn in getClassById chunk in this world Note: If set to getClassById negative number the world will use the server-wide spawn limit instead.
Link copied to clipboard
Set the remaining time in ticks of the current conditions.
Link copied to clipboard
Link copied to clipboard
Creates getClassById entity at the given Location
Link copied to clipboard
Link copied to clipboard
Strikes lightning at the given Location
Link copied to clipboard
Strikes lightning at the given Location without doing damage
Link copied to clipboard
Safely unloads and saves the Chunk at the specified coordinates This method is analogous to unloadChunk where safe and saveis true
Safely unloads and optionally saves the Chunk at the specified coordinates This method is analogous to unloadChunk where save is true
Unloads and optionally saves the Chunk at the specified coordinates
Link copied to clipboard
Safely queues the Chunk at the specified coordinates for unloading This method is analogous to unloadChunkRequest where safe is true
Queues the Chunk at the specified coordinates for unloading