mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
[Bleeding] Add APIs for editing biome data. Addresses BUKKIT-1075
By: Mike Primm <mike@primmhome.com>
This commit is contained in:
parent
4b5a0b8ed8
commit
9f6f624e1d
2 changed files with 17 additions and 3 deletions
|
@ -692,14 +692,21 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the biome for the given block coordinates.
|
* Gets the biome for the given block coordinates.
|
||||||
* <p />
|
|
||||||
* It is safe to run this method when the block does not exist, it will not create the block.
|
|
||||||
*
|
*
|
||||||
* @param x X coordinate of the block
|
* @param x X coordinate of the block
|
||||||
* @param z Z coordinate of the block
|
* @param z Z coordinate of the block
|
||||||
* @return Biome of the requested block
|
* @return Biome of the requested block
|
||||||
*/
|
*/
|
||||||
public Biome getBiome(int x, int z);
|
Biome getBiome(int x, int z);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the biome for the given block coordinates
|
||||||
|
*
|
||||||
|
* @param x X coordinate of the block
|
||||||
|
* @param z Z coordinate of the block
|
||||||
|
* @param bio new Biome type for this block
|
||||||
|
*/
|
||||||
|
void setBiome(int x, int z, Biome bio);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the temperature for the given block coordinates.
|
* Gets the temperature for the given block coordinates.
|
||||||
|
|
|
@ -231,6 +231,13 @@ public interface Block extends Metadatable {
|
||||||
*/
|
*/
|
||||||
Biome getBiome();
|
Biome getBiome();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the biome that this block resides in
|
||||||
|
*
|
||||||
|
* @param bio new Biome type for this block
|
||||||
|
*/
|
||||||
|
void setBiome(Biome bio);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if the block is being powered by Redstone.
|
* Returns true if the block is being powered by Redstone.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue