public interface Level
| Modifier and Type | Method and Description |
|---|---|
void |
deregisterSystem(System system) |
DroppedItem |
dropItem(ItemInstance item,
Vector3f position) |
default CompletableFuture<Block> |
getBlock(int x,
int y,
int z) |
default CompletableFuture<Block> |
getBlock(Vector3i vector) |
default Optional<Block> |
getBlockIfChunkLoaded(int x,
int y,
int z) |
default Optional<Block> |
getBlockIfChunkLoaded(Vector3i vector) |
CompletableFuture<Chunk> |
getChunk(int x,
int z) |
default CompletableFuture<Chunk> |
getChunkForPosition(Vector3i position) |
Optional<Chunk> |
getChunkIfLoaded(int x,
int z) |
long |
getCurrentTick() |
LevelData |
getData() |
String |
getId() |
String |
getName() |
int |
getTime() |
void |
registerSystem(System system) |
void |
save() |
<T extends Entity> |
spawn(Class<? extends Entity> clazz,
Vector3f position) |
String getId()
String getName()
int getTime()
long getCurrentTick()
LevelData getData()
CompletableFuture<Chunk> getChunk(int x, int z)
void save()
default CompletableFuture<Chunk> getChunkForPosition(Vector3i position)
default CompletableFuture<Block> getBlock(@Nonnull Vector3i vector)
default CompletableFuture<Block> getBlock(int x, int y, int z)
<T extends Entity> CompletableFuture<T> spawn(Class<? extends Entity> clazz, Vector3f position)
DroppedItem dropItem(ItemInstance item, Vector3f position)
void registerSystem(System system)
void deregisterSystem(System system)
Copyright © 2017–2018 NukkitX. All rights reserved.