![]() |
FourKit 29eeeb8
The LCE C# Server Plugin API
|
Represents a world, which may contain entities, chunks and blocks. More...
Public Member Functions | |
| int | getDimensionId () |
| Gets the dimension ID of this world. | |
| string | getName () |
| Gets the unique name of this world. | |
| Block.Block | getBlockAt (int x, int y, int z) |
| Gets the Block at the given coordinates. | |
| Block.Block | getBlockAt (Location location) |
| Gets the Block at the given Location. | |
| int | getBlockTypeIdAt (int x, int y, int z) |
| Gets the block type ID at the given coordinates. | |
| int | getBlockTypeIdAt (Location location) |
| Gets the block type ID at the given Location. | |
| int | getHighestBlockYAt (int x, int z) |
| Gets the highest non-air coordinate at the given coordinates. | |
| int | getHighestBlockYAt (Location location) |
| Gets the highest non-air coordinate at the given Location. | |
| Block.Block | getHighestBlockAt (int x, int z) |
| Gets the highest non-empty block at the given coordinates. | |
| Block.Block | getHighestBlockAt (Location location) |
| Gets the highest non-empty block at the given Location. | |
| Location | getSpawnLocation () |
| Gets the default spawn Location of this world. | |
| bool | setSpawnLocation (int x, int y, int z) |
| Sets the spawn location of the world. | |
| long | getSeed () |
| Gets the Seed for this world. | |
| long | getTime () |
| Gets the relative in-game time of this world. | |
| void | setTime (long time) |
| Sets the relative in-game time on the server. | |
| void | setFullTime (long time) |
| Sets the in-game time on the server. | |
| void | setStorm (bool hasStorm) |
| Set whether there is a storm. | |
| void | setThundering (bool thundering) |
| Set whether it is thundering. | |
| void | setThunderDuration (int duration) |
| Set the thundering duration. | |
| List< Player > | getPlayers () |
| Get a list of all players in this World. | |
| List< Entity.Entity > | getEntities () |
| Get a list of all entities in this World. | |
| List< Entity.LivingEntity > | getLivingEntities () |
| Get a list of all living entities in this World. | |
| bool | createExplosion (double x, double y, double z, float power) |
| Creates explosion at given coordinates with given power. | |
| bool | createExplosion (double x, double y, double z, float power, bool setFire) |
| Creates explosion at given coordinates with given power and optionally setting blocks on fire. | |
| bool | createExplosion (double x, double y, double z, float power, bool setFire, bool breakBlocks) |
| Creates explosion at given coordinates with given power and optionally setting blocks on fire or breaking blocks. | |
| bool | createExplosion (Location loc, float power, bool setFire, bool breakBlocks) |
| Creates explosion at given coordinates with given power and optionally setting blocks on fire or breaking blocks. | |
| bool | createExplosion (Location loc, float power) |
| Creates explosion at given coordinates with given power. | |
| bool | createExplosion (Location loc, float power, bool setFire) |
| Creates explosion at given coordinates with given power and optionally setting blocks on fire. | |
| bool | strikeLightning (Location loc) |
| Strikes lightning at the given Location. | |
| bool | strikeLightningEffect (Location loc) |
| Strikes lightning at the given Location without doing damage. | |
| void | dropItem (Location location, ItemStack item) |
| Drops an item at the specified Location. | |
| void | dropItemNaturally (Location location, ItemStack item) |
| Drops an item at the specified Location with a random offset. | |
| Chunk.Chunk | getChunkAt (int x, int z) |
| Gets the Chunk at the given coordinates. | |
| Chunk.Chunk | getChunkAt (Location location) |
| Gets the Chunk at the given Location. | |
| Chunk.Chunk | getChunkAt (Block.Block block) |
| Gets the Chunk that contains the given Block. | |
| bool | isChunkLoaded (Chunk.Chunk chunk) |
| Checks if the specified Chunk is loaded. | |
| bool | isChunkLoaded (int x, int z) |
| Checks if the Chunk at the specified coordinates is loaded. | |
| Chunk.Chunk[] | getLoadedChunks () |
| Gets an array of all loaded Chunks. | |
| void | loadChunk (Chunk.Chunk chunk) |
| Loads the specified Chunk. | |
| void | loadChunk (int x, int z) |
| Loads the Chunk at the specified coordinates. If the chunk does not exist, it will be generated. This method is analogous to loadChunk(int, int, boolean) where generate is true. | |
| bool | loadChunk (int x, int z, bool generate) |
| Loads the Chunk at the specified coordinates. | |
| bool | isChunkInUse (int x, int z) |
| Checks if the Chunk at the specified coordinates is loaded and in use by one or more players. | |
| bool | unloadChunk (Chunk.Chunk chunk) |
| Safely unloads and saves the Chunk at the specified coordinates. This method is analogous to unloadChunk(int, int, boolean, boolean) where safe and save is true. | |
| bool | unloadChunk (int x, int z) |
| Safely unloads and saves the Chunk at the specified coordinates. This method is analogous to unloadChunk(int, int, boolean, boolean) where safe and save is true. | |
| bool | unloadChunk (int x, int z, bool save) |
| Safely unloads and optionally saves the Chunk at the specified coordinates. | |
| bool | unloadChunk (int x, int z, bool save, bool safe) |
| Unloads and optionally saves the Chunk at the specified coordinates. | |
| bool | unloadChunkRequest (int x, int z) |
| Safely queues the Chunk at the specified coordinates for unloading. This method is analogous to unloadChunkRequest(int, int, boolean) where safe is true. | |
| bool | unloadChunkRequest (int x, int z, bool safe) |
| Queues the Chunk at the specified coordinates for unloading. | |
| bool | regenerateChunk (int x, int z) |
| Regenerates the Chunk at the specified coordinates. | |
| bool | refreshChunk (int x, int z) |
| Resends the Chunk to all clients. | |
Represents a world, which may contain entities, chunks and blocks.
| bool Minecraft.Server.FourKit.World.createExplosion | ( | double | x, |
| double | y, | ||
| double | z, | ||
| float | power ) |
Creates explosion at given coordinates with given power.
| x | X-coordinate. |
| y | Y-coordinate. |
| z | Z-coordinate. |
| power | The power of explosion, where 4F is TNT. |
| bool Minecraft.Server.FourKit.World.createExplosion | ( | double | x, |
| double | y, | ||
| double | z, | ||
| float | power, | ||
| bool | setFire ) |
Creates explosion at given coordinates with given power and optionally setting blocks on fire.
| x | X-coordinate. |
| y | Y-coordinate. |
| z | Z-coordinate. |
| power | The power of explosion, where 4F is TNT. |
| setFire | Whether or not to set blocks on fire. |
| bool Minecraft.Server.FourKit.World.createExplosion | ( | double | x, |
| double | y, | ||
| double | z, | ||
| float | power, | ||
| bool | setFire, | ||
| bool | breakBlocks ) |
Creates explosion at given coordinates with given power and optionally setting blocks on fire or breaking blocks.
| x | X-coordinate. |
| y | Y-coordinate. |
| z | Z-coordinate. |
| power | The power of explosion, where 4F is TNT. |
| setFire | Whether or not to set blocks on fire. |
| breakBlocks | Whether or not to have blocks be destroyed. |
| bool Minecraft.Server.FourKit.World.createExplosion | ( | Location | loc, |
| float | power ) |
Creates explosion at given coordinates with given power.
| loc | Location to blow up. |
| power | The power of explosion, where 4F is TNT. |
| bool Minecraft.Server.FourKit.World.createExplosion | ( | Location | loc, |
| float | power, | ||
| bool | setFire ) |
Creates explosion at given coordinates with given power and optionally setting blocks on fire.
| loc | Location to blow up. |
| power | The power of explosion, where 4F is TNT. |
| setFire | Whether or not to set blocks on fire. |
| bool Minecraft.Server.FourKit.World.createExplosion | ( | Location | loc, |
| float | power, | ||
| bool | setFire, | ||
| bool | breakBlocks ) |
Creates explosion at given coordinates with given power and optionally setting blocks on fire or breaking blocks.
| loc | Location to blow up. |
| power | The power of explosion, where 4F is TNT. |
| setFire | Whether or not to set blocks on fire. |
| breakBlocks | Whether or not to have blocks be destroyed. |
| Block.Block Minecraft.Server.FourKit.World.getBlockAt | ( | int | x, |
| int | y, | ||
| int | z ) |
| Block.Block Minecraft.Server.FourKit.World.getBlockAt | ( | Location | location | ) |
| int Minecraft.Server.FourKit.World.getBlockTypeIdAt | ( | int | x, |
| int | y, | ||
| int | z ) |
Gets the block type ID at the given coordinates.
| x | X-coordinate of the block. |
| y | Y-coordinate of the block. |
| z | Z-coordinate of the block. |
| int Minecraft.Server.FourKit.World.getBlockTypeIdAt | ( | Location | location | ) |
| Chunk.Chunk Minecraft.Server.FourKit.World.getChunkAt | ( | Block.Block | block | ) |
| Chunk.Chunk Minecraft.Server.FourKit.World.getChunkAt | ( | int | x, |
| int | z ) |
| Chunk.Chunk Minecraft.Server.FourKit.World.getChunkAt | ( | Location | location | ) |
| int Minecraft.Server.FourKit.World.getDimensionId | ( | ) |
Gets the dimension ID of this world.
| List< Entity.Entity > Minecraft.Server.FourKit.World.getEntities | ( | ) |
Get a list of all entities in this World.
| Block.Block Minecraft.Server.FourKit.World.getHighestBlockAt | ( | int | x, |
| int | z ) |
Gets the highest non-empty block at the given coordinates.
| x | X-coordinate. |
| z | Z-coordinate. |
| Block.Block Minecraft.Server.FourKit.World.getHighestBlockAt | ( | Location | location | ) |
Gets the highest non-empty block at the given Location.
| location | Coordinates to get the highest block at. |
| int Minecraft.Server.FourKit.World.getHighestBlockYAt | ( | int | x, |
| int | z ) |
Gets the highest non-air coordinate at the given coordinates.
| x | X-coordinate. |
| z | Z-coordinate. |
| int Minecraft.Server.FourKit.World.getHighestBlockYAt | ( | Location | location | ) |
| List< Entity.LivingEntity > Minecraft.Server.FourKit.World.getLivingEntities | ( | ) |
Get a list of all living entities in this World.
| Chunk.Chunk[] Minecraft.Server.FourKit.World.getLoadedChunks | ( | ) |
Gets an array of all loaded Chunks.
| string Minecraft.Server.FourKit.World.getName | ( | ) |
Gets the unique name of this world.
| List< Player > Minecraft.Server.FourKit.World.getPlayers | ( | ) |
Get a list of all players in this World.
| long Minecraft.Server.FourKit.World.getSeed | ( | ) |
Gets the Seed for this world.
| Location Minecraft.Server.FourKit.World.getSpawnLocation | ( | ) |
Gets the default spawn Location of this world.
| long Minecraft.Server.FourKit.World.getTime | ( | ) |
Gets the relative in-game time of this world.
| bool Minecraft.Server.FourKit.World.isChunkInUse | ( | int | x, |
| int | z ) |
Checks if the Chunk at the specified coordinates is loaded and in use by one or more players.
| x | X-coordinate of the chunk. |
| z | Z-coordinate of the chunk. |
| bool Minecraft.Server.FourKit.World.isChunkLoaded | ( | Chunk.Chunk | chunk | ) |
Checks if the specified Chunk is loaded.
| chunk | The chunk to check. |
| bool Minecraft.Server.FourKit.World.isChunkLoaded | ( | int | x, |
| int | z ) |
Checks if the Chunk at the specified coordinates is loaded.
| x | X-coordinate of the chunk. |
| z | Z-coordinate of the chunk. |
| void Minecraft.Server.FourKit.World.loadChunk | ( | Chunk.Chunk | chunk | ) |
Loads the specified Chunk.
| chunk | The chunk to load. |
| void Minecraft.Server.FourKit.World.loadChunk | ( | int | x, |
| int | z ) |
Loads the Chunk at the specified coordinates. If the chunk does not exist, it will be generated. This method is analogous to loadChunk(int, int, boolean) where generate is true.
| x | X-coordinate of the chunk. |
| z | Z-coordinate of the chunk. |
| bool Minecraft.Server.FourKit.World.loadChunk | ( | int | x, |
| int | z, | ||
| bool | generate ) |
Loads the Chunk at the specified coordinates.
| x | X-coordinate of the chunk. |
| z | Z-coordinate of the chunk. |
| generate | Whether or not to generate a chunk if it doesn't already exist. |
| bool Minecraft.Server.FourKit.World.refreshChunk | ( | int | x, |
| int | z ) |
Resends the Chunk to all clients.
| x | X-coordinate of the chunk. |
| z | Z-coordinate of the chunk. |
| bool Minecraft.Server.FourKit.World.regenerateChunk | ( | int | x, |
| int | z ) |
Regenerates the Chunk at the specified coordinates.
| x | X-coordinate of the chunk. |
| z | Z-coordinate of the chunk. |
| void Minecraft.Server.FourKit.World.setFullTime | ( | long | time | ) |
Sets the in-game time on the server.
| time | The new absolute time to set this world to. |
| bool Minecraft.Server.FourKit.World.setSpawnLocation | ( | int | x, |
| int | y, | ||
| int | z ) |
Sets the spawn location of the world.
| x | X-coordinate. |
| y | Y-coordinate. |
| z | Z-coordinate. |
| void Minecraft.Server.FourKit.World.setStorm | ( | bool | hasStorm | ) |
Set whether there is a storm.
| hasStorm | Whether there is rain and snow. |
| void Minecraft.Server.FourKit.World.setThunderDuration | ( | int | duration | ) |
Set the thundering duration.
| duration | Duration in ticks. |
| void Minecraft.Server.FourKit.World.setThundering | ( | bool | thundering | ) |
Set whether it is thundering.
| thundering | Whether it is thundering. |
| void Minecraft.Server.FourKit.World.setTime | ( | long | time | ) |
Sets the relative in-game time on the server.
| time | The new relative time to set the in-game time to. |
| bool Minecraft.Server.FourKit.World.strikeLightning | ( | Location | loc | ) |
Strikes lightning at the given Location.
| loc | The location to strike lightning. |
| bool Minecraft.Server.FourKit.World.strikeLightningEffect | ( | Location | loc | ) |
Strikes lightning at the given Location without doing damage.
| loc | The location to strike lightning. |
| bool Minecraft.Server.FourKit.World.unloadChunk | ( | Chunk.Chunk | chunk | ) |
Safely unloads and saves the Chunk at the specified coordinates. This method is analogous to unloadChunk(int, int, boolean, boolean) where safe and save is true.
| chunk | The chunk to unload. |
| bool Minecraft.Server.FourKit.World.unloadChunk | ( | int | x, |
| int | z ) |
Safely unloads and saves the Chunk at the specified coordinates. This method is analogous to unloadChunk(int, int, boolean, boolean) where safe and save is true.
| x | X-coordinate of the chunk. |
| z | Z-coordinate of the chunk. |
| bool Minecraft.Server.FourKit.World.unloadChunk | ( | int | x, |
| int | z, | ||
| bool | save ) |
Safely unloads and optionally saves the Chunk at the specified coordinates.
| x | X-coordinate of the chunk. |
| z | Z-coordinate of the chunk. |
| save | Whether or not to save the chunk. |
| bool Minecraft.Server.FourKit.World.unloadChunk | ( | int | x, |
| int | z, | ||
| bool | save, | ||
| bool | safe ) |
Unloads and optionally saves the Chunk at the specified coordinates.
| x | X-coordinate of the chunk. |
| z | Z-coordinate of the chunk. |
| save | Controls whether the chunk is saved. |
| safe | Controls whether to unload the chunk when players are nearby. |
| bool Minecraft.Server.FourKit.World.unloadChunkRequest | ( | int | x, |
| int | z ) |
Safely queues the Chunk at the specified coordinates for unloading. This method is analogous to unloadChunkRequest(int, int, boolean) where safe is true.
| x | X-coordinate of the chunk. |
| z | Z-coordinate of the chunk. |
| bool Minecraft.Server.FourKit.World.unloadChunkRequest | ( | int | x, |
| int | z, | ||
| bool | safe ) |
Queues the Chunk at the specified coordinates for unloading.
| x | X-coordinate of the chunk. |
| z | Z-coordinate of the chunk. |
| safe | Controls whether to queue the chunk when players are nearby. |