FourKit 1469f90c
The LCE C# Server Plugin API
Loading...
Searching...
No Matches
Minecraft.Server.FourKit.World Class Reference

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< PlayergetPlayers ()
 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.

Detailed Description

Represents a world, which may contain entities, chunks and blocks.

Member Function Documentation

◆ createExplosion() [1/6]

bool Minecraft.Server.FourKit.World.createExplosion ( double x,
double y,
double z,
float power )

Creates explosion at given coordinates with given power.

Parameters
xX-coordinate.
yY-coordinate.
zZ-coordinate.
powerThe power of explosion, where 4F is TNT.
Returns
false if explosion was canceled, otherwise true.

◆ createExplosion() [2/6]

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.

Parameters
xX-coordinate.
yY-coordinate.
zZ-coordinate.
powerThe power of explosion, where 4F is TNT.
setFireWhether or not to set blocks on fire.
Returns
false if explosion was canceled, otherwise true.

◆ createExplosion() [3/6]

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.

Parameters
xX-coordinate.
yY-coordinate.
zZ-coordinate.
powerThe power of explosion, where 4F is TNT.
setFireWhether or not to set blocks on fire.
breakBlocksWhether or not to have blocks be destroyed.
Returns
false if explosion was canceled, otherwise true.

◆ createExplosion() [4/6]

bool Minecraft.Server.FourKit.World.createExplosion ( Location loc,
float power )

Creates explosion at given coordinates with given power.

Parameters
locLocation to blow up.
powerThe power of explosion, where 4F is TNT.
Returns
false if explosion was canceled, otherwise true.

◆ createExplosion() [5/6]

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.

Parameters
locLocation to blow up.
powerThe power of explosion, where 4F is TNT.
setFireWhether or not to set blocks on fire.
Returns
false if explosion was canceled, otherwise true.

◆ createExplosion() [6/6]

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.

Parameters
locLocation to blow up.
powerThe power of explosion, where 4F is TNT.
setFireWhether or not to set blocks on fire.
breakBlocksWhether or not to have blocks be destroyed.
Returns
false if explosion was canceled, otherwise true.

◆ dropItem()

void Minecraft.Server.FourKit.World.dropItem ( Location location,
ItemStack item )

Drops an item at the specified Location.

Parameters
locationLocation to drop the item.
itemItemStack to drop.

◆ dropItemNaturally()

void Minecraft.Server.FourKit.World.dropItemNaturally ( Location location,
ItemStack item )

Drops an item at the specified Location with a random offset.

Parameters
locationLocation to drop the item.
itemItemStack to drop.

◆ getBlockAt() [1/2]

Block.Block Minecraft.Server.FourKit.World.getBlockAt ( int x,
int y,
int z )

Gets the Block at the given coordinates.

Parameters
xX-coordinate of the block.
yY-coordinate of the block.
zZ-coordinate of the block.
Returns
Block at the given coordinates.

◆ getBlockAt() [2/2]

Block.Block Minecraft.Server.FourKit.World.getBlockAt ( Location location)

Gets the Block at the given Location.

Parameters
locationLocation of the block.
Returns
Block at the given location.

◆ getBlockTypeIdAt() [1/2]

int Minecraft.Server.FourKit.World.getBlockTypeIdAt ( int x,
int y,
int z )

Gets the block type ID at the given coordinates.

Parameters
xX-coordinate of the block.
yY-coordinate of the block.
zZ-coordinate of the block.
Returns
Type ID of the block.

◆ getBlockTypeIdAt() [2/2]

int Minecraft.Server.FourKit.World.getBlockTypeIdAt ( Location location)

Gets the block type ID at the given Location.

Parameters
locationLocation of the block.
Returns
Type ID of the block.

◆ getHighestBlockAt() [1/2]

Block.Block Minecraft.Server.FourKit.World.getHighestBlockAt ( int x,
int z )

Gets the highest non-empty block at the given coordinates.

Parameters
xX-coordinate.
zZ-coordinate.
Returns
Highest non-empty block.

◆ getHighestBlockAt() [2/2]

Block.Block Minecraft.Server.FourKit.World.getHighestBlockAt ( Location location)

Gets the highest non-empty block at the given Location.

Parameters
locationCoordinates to get the highest block at.
Returns
Highest non-empty block.

◆ getHighestBlockYAt() [1/2]

int Minecraft.Server.FourKit.World.getHighestBlockYAt ( int x,
int z )

Gets the highest non-air coordinate at the given coordinates.

Parameters
xX-coordinate.
zZ-coordinate.
Returns
The Y-coordinate of the highest non-air block.

◆ getHighestBlockYAt() [2/2]

int Minecraft.Server.FourKit.World.getHighestBlockYAt ( Location location)

Gets the highest non-air coordinate at the given Location.

Parameters
locationLocation to check.
Returns
The Y-coordinate of the highest non-air block.

◆ getName()

string Minecraft.Server.FourKit.World.getName ( )

Gets the unique name of this world.

Returns
Name of this world.

◆ getPlayers()

List< Player > Minecraft.Server.FourKit.World.getPlayers ( )

Get a list of all players in this World.

Returns
A list of all Players currently residing in this world.

◆ getSeed()

long Minecraft.Server.FourKit.World.getSeed ( )

Gets the Seed for this world.

Returns
This world's Seed.

◆ getSpawnLocation()

Location Minecraft.Server.FourKit.World.getSpawnLocation ( )

Gets the default spawn Location of this world.

Returns
The spawn location of this world.

◆ getTime()

long Minecraft.Server.FourKit.World.getTime ( )

Gets the relative in-game time of this world.

Returns
The current relative time.

◆ setFullTime()

void Minecraft.Server.FourKit.World.setFullTime ( long time)

Sets the in-game time on the server.

Parameters
timeThe new absolute time to set this world to.

◆ setSpawnLocation()

bool Minecraft.Server.FourKit.World.setSpawnLocation ( int x,
int y,
int z )

Sets the spawn location of the world.

Parameters
xX-coordinate.
yY-coordinate.
zZ-coordinate.
Returns
True if the spawn was set successfully.

◆ setStorm()

void Minecraft.Server.FourKit.World.setStorm ( bool hasStorm)

Set whether there is a storm.

Parameters
hasStormWhether there is rain and snow.

◆ setThunderDuration()

void Minecraft.Server.FourKit.World.setThunderDuration ( int duration)

Set the thundering duration.

Parameters
durationDuration in ticks.

◆ setThundering()

void Minecraft.Server.FourKit.World.setThundering ( bool thundering)

Set whether it is thundering.

Parameters
thunderingWhether it is thundering.

◆ setTime()

void Minecraft.Server.FourKit.World.setTime ( long time)

Sets the relative in-game time on the server.

Parameters
timeThe new relative time to set the in-game time to.

◆ strikeLightning()

bool Minecraft.Server.FourKit.World.strikeLightning ( Location loc)

Strikes lightning at the given Location.

Parameters
locThe location to strike lightning.
Returns
true if lightning was successfully summoned.

◆ strikeLightningEffect()

bool Minecraft.Server.FourKit.World.strikeLightningEffect ( Location loc)

Strikes lightning at the given Location without doing damage.

Parameters
locThe location to strike lightning.
Returns
true if lightning was successfully summoned.

The documentation for this class was generated from the following file:
  • Minecraft.Server.FourKit/World.cs