public abstract class World extends Object implements NegativityObject
Constructor and Description |
---|
World() |
Modifier and Type | Method and Description |
---|---|
Block |
getBlockAt(double x,
double y,
double z)
Get the block at the specified location on this world
Return a block with AIR type if not found
Can create error if world not loaded AND loading it async
|
abstract Block |
getBlockAt(int x,
int y,
int z)
Get the block at the specified location on this world
Return a block with AIR type if not found
Can create error if world not loaded AND loading it async
|
abstract Block |
getBlockAt(Location loc)
Get the block at the specified location on this world
Return a block with AIR type if not found
Can create error if world not loaded AND loading it async
|
Block |
getBlockAt(Vector v)
Get the block at the specified location on this world
Return a block with AIR type if not found
Can create error if world not loaded AND loading it async
|
abstract Difficulty |
getDifficulty()
Get the world difficulty
|
abstract List<Entity> |
getEntities()
Get all entities on this world
|
Entity |
getEntityWithID(int entityId)
Get an entity by the ID
|
abstract int |
getMaxHeight()
Get the max height of the world
|
abstract int |
getMinHeight()
Get the min height of the world
|
abstract String |
getName()
Get the world name
|
abstract boolean |
isPVP()
Know if the pvp is enabled in this world.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefault
public abstract String getName()
public abstract Block getBlockAt(int x, int y, int z)
x
- The X block locationy
- The Y block locationz
- The Z block locationpublic Block getBlockAt(double x, double y, double z)
x
- The X block locationy
- The Y block locationz
- The Z block locationpublic Block getBlockAt(Vector v)
loc
- the block locationpublic abstract Block getBlockAt(Location loc)
loc
- the block locationpublic abstract List<Entity> getEntities()
@Nullable public Entity getEntityWithID(int entityId)
entityId
- the ID of the entitypublic abstract Difficulty getDifficulty()
public abstract int getMaxHeight()
public abstract int getMinHeight()
public abstract boolean isPVP()