Adds a new generation callback using string hash to generate a unique random seed for the chunk generator
one of the generation callbacks, see {@page Callbacks} for details
callback function
if specified, will be used as string hash for seed generation, otherwise default hash string will be used
If the block on the specified coordinates is a TileEntity block and is not initialized, initializes it and returns created TileEntity object
TileEntity if one was created, null otherwise
true, if one can see sky from the specified position, false otherwise
true, if tile can be replaced (for example, grass and water can be replaced), false otherwise
Destroys block on the specified coordinates producing appropriate drop and particles. Do not use for massive tasks due to particles being produced
whether to provide drop for the block or not
Drops item or block with specified id, count, data and extra on the specified coordinates. For blocks, be sure to use block id, not the tile id
created drop entity id
Creates an explosion on the specified coordinates
defines how many blocks can the explosion destroy and what blocks can or cannot be destroyed
if true, puts the crater on fire
biome id on the specified coordinates
Gets biome on the specified coordinates when generating biome map. Should be called only in GenerateBiomeMap callback
block x coordinate
block y coordinate
biome's numeric id
biome name on the specified coordinates
data of the block located on the specified coordinates
tile id of the block located on the specified coordinates
BlockSource
if the block on the specified coordinates is a TileEntity, returns its container, if the block is a NativeTileEntity, returns it, if none of above, returns null
grass color for specified coordinates, uses android integer color model
grass color for specified coordinates, uses rgb color model
number from 0 to 6 (exclusive)
opposite side to argument
light level on the specified coordinates, from 0 to 15
Retrieves coordinates relative to the block. For example, the following code will return coordinates of the block above the specified:
World.getRelativeCoords(x, y, z, Native.BlockSide.UP);
block side
relative coordinates
current tick number since the player joined the world
TileEntity located on the specified coordinates
block side
normal vector for this side
current weather object. This value should not be edited, call World.setWeather to change current weather
current world's time in ticks
chunk coordinate
chunk coordinate
whether the chunk with specified coordinates is loaded or not
block coordinate
block coordinate
block coordinate
whether the chunk containing specified block coordinates is loaded or not
whether the world is loaded or not
data of the block located on the specified coordinates
tile id of the block located on the specified coordinates
Sets block in the world using its tile id and data
block tile id
block data
Plays standart Minecraft sound on the specified coordinates
sound name
sound volume from 0 to 1
sound pitch, from 0 to 1, 0.5 is default value
Plays standart Minecraft sound from the specified entity
sound name
sound volume from 0 to 1
sound pitch, from 0 to 1, 0.5 is default value
Enables "BlockChanged" event for specified block ids and registers callback function for the ids
string or numeric tile id, or an array of string and/or numeric tile ids
function that will be called when "BlockChanged" callback occurs involving one of the blocks. Warning! If both old and new blocks are in the ids list, callback function will be called twice.
If the block on the specified coordinates is a TileEntity, destroys it, dropping its container
true if the TileEntity was destroyed successfully, false otherwise
Sets biome on the specified coordinates when generating biome map. Should be called only in GenerateBiomeMap callback
block x coordinate
block y coordinate
biome id to be set on the specified coordinates
Sets block in the world using its tile id and data
block tile id
block data
Enables "BlockChanged" event for the block id. Event occurs when either old block or new block is registered using this method
numeric tile id
if true, the block will be watched
Sets current time to day or night
if true, sets time to 10000 (day), else to 13000 (night)
Sets grass color on the specified coordinates, uses android integer color model
grass color to be set for the specified coordinates
Sets grass color on the specified coordinates, uses rgb color model
Setups the module to work properly with the world. Usually called by Core Engine, so you generally shouldn't call it yourself
whether the world is loaded or not
Sets current time to day or night
Sets current world time
time in ticks
Generated using TypeDoc
Module that allows to work with current Minecraft world Most of the methods are out of date in multiplayer, use BlockSource instead