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