Files
DeltaZern/paper-api/src/main/java/org/bukkit/World.java
T
2011-01-02 18:00:57 -08:00

47 lines
1.1 KiB
Java

package org.bukkit;
/**
* Represents a world.
*
* Currently there is only one world in the default Minecraft spec, but this
* may change with the addition of a functional Nether world
*/
public interface World {
public Block getBlockAt(int x, int y, int z);
public Chunk getChunkAt(int x, int z);
public Chunk getChunkAt(Block block);
public boolean isChunkLoaded();
/**
* Spawns an arrow.
*
* @param loc
* @param velocity velocity vector
* @param speed a reasonable speed is 0.6
* @param spread a reasonable spread is 12
* @return the arrow entity
*/
public ArrowEntity spawnArrow(Location loc, Vector velocity,
float speed, float spread);
/**
* Spawns a tree at a location.
*
* @param loc
* @return whether the tree was created
*/
public boolean generateTree(Location loc);
/**
* Spawns a big tree at a location.
*
* @param loc
* @return whether the tree was created
*/
public boolean generateBigTree(Location loc);
}