![]() |
FourKit 1469f90c
The LCE C# Server Plugin API
|
Represents a world, which may contain entities, chunks and blocks. More...
Public Member Functions | |
| 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. | |
| 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. | |
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 | ) |
| 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 | ) |
| 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.
| 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. |