public class CloudLevel extends Object implements org.cloudburstmc.api.level.Level
| Modifier and Type | Field and Description |
|---|---|
static int |
COMPRESSION_LEVEL |
static int |
DIMENSION_NETHER |
static int |
DIMENSION_OVERWORLD |
static int |
DIMENSION_THE_END |
static int |
MAX_BLOCK_CACHE |
float |
skyLightSubtracted |
int |
sleepTicks |
int |
tickRateCounter |
int |
tickRateTime |
LevelTimings |
timings |
| Modifier and Type | Method and Description |
|---|---|
void |
addBlockEntity(org.cloudburstmc.api.blockentity.BlockEntity blockEntity) |
void |
addChunkPacket(int chunkX,
int chunkZ,
com.nukkitx.protocol.bedrock.BedrockPacket packet) |
void |
addChunkPacket(com.nukkitx.math.vector.Vector3f pos,
com.nukkitx.protocol.bedrock.BedrockPacket packet) |
void |
addChunkPacket(com.nukkitx.math.vector.Vector3i pos,
com.nukkitx.protocol.bedrock.BedrockPacket packet) |
void |
addEntity(org.cloudburstmc.api.entity.Entity entity) |
void |
addEntityMovement(org.cloudburstmc.api.entity.Entity entity,
double x,
double y,
double z,
double yaw,
double pitch,
double headYaw) |
void |
addLevelSoundEvent(com.nukkitx.math.vector.Vector3f pos,
com.nukkitx.protocol.bedrock.data.SoundEvent event) |
void |
addLevelSoundEvent(com.nukkitx.math.vector.Vector3f pos,
com.nukkitx.protocol.bedrock.data.SoundEvent event,
int data)
Broadcasts sound to players
|
void |
addLevelSoundEvent(com.nukkitx.math.vector.Vector3f pos,
com.nukkitx.protocol.bedrock.data.SoundEvent event,
int data,
org.cloudburstmc.api.entity.EntityType<?> type) |
void |
addLevelSoundEvent(com.nukkitx.math.vector.Vector3f pos,
com.nukkitx.protocol.bedrock.data.SoundEvent event,
int data,
org.cloudburstmc.api.entity.EntityType<?> type,
boolean isBaby,
boolean isGlobal) |
void |
addLevelSoundEvent(com.nukkitx.math.vector.Vector3f pos,
com.nukkitx.protocol.bedrock.data.SoundEvent event,
int data,
org.cloudburstmc.api.util.Identifier identifier,
boolean isBaby,
boolean isGlobal) |
void |
addLevelSoundEvent(com.nukkitx.math.vector.Vector3i pos,
com.nukkitx.protocol.bedrock.data.SoundEvent event) |
void |
addLevelSoundEvent(com.nukkitx.math.vector.Vector3i pos,
com.nukkitx.protocol.bedrock.data.SoundEvent event,
int data) |
void |
addLightUpdate(int x,
int y,
int z) |
void |
addParticle(Particle particle) |
void |
addParticle(Particle particle,
Collection<org.cloudburstmc.api.player.Player> players) |
void |
addParticle(Particle particle,
org.cloudburstmc.api.player.Player player) |
void |
addParticle(Particle particle,
org.cloudburstmc.api.player.Player[] players) |
void |
addParticleEffect(com.nukkitx.math.vector.Vector3f pos,
org.cloudburstmc.api.util.Identifier identifier) |
void |
addParticleEffect(com.nukkitx.math.vector.Vector3f pos,
org.cloudburstmc.api.util.Identifier identifier,
long uniqueEntityId) |
void |
addParticleEffect(com.nukkitx.math.vector.Vector3f pos,
org.cloudburstmc.api.util.Identifier identifier,
long uniqueEntityId,
int dimensionId) |
void |
addParticleEffect(com.nukkitx.math.vector.Vector3f pos,
org.cloudburstmc.api.util.Identifier identifier,
long uniqueEntityId,
int dimensionId,
Collection<org.cloudburstmc.api.player.Player> players) |
void |
addParticleEffect(com.nukkitx.math.vector.Vector3f pos,
org.cloudburstmc.api.util.Identifier identifier,
long uniqueEntityId,
int dimensionId,
org.cloudburstmc.api.player.Player... players) |
void |
addSound(com.nukkitx.math.vector.Vector3f pos,
Sound sound) |
void |
addSound(com.nukkitx.math.vector.Vector3f pos,
Sound sound,
float volume,
float pitch) |
void |
addSound(com.nukkitx.math.vector.Vector3f pos,
Sound sound,
float volume,
float pitch,
Collection<org.cloudburstmc.api.player.Player> players) |
void |
addSound(com.nukkitx.math.vector.Vector3f pos,
Sound sound,
float volume,
float pitch,
org.cloudburstmc.api.player.Player... players) |
void |
addSound(com.nukkitx.math.vector.Vector3i pos,
Sound sound) |
void |
addSound(com.nukkitx.math.vector.Vector3i pos,
Sound sound,
float volume,
float pitch) |
com.nukkitx.math.vector.Vector3f |
adjustPosToNearbyEntity(com.nukkitx.math.vector.Vector3f pos) |
float |
calculateCelestialAngle(int time,
float tickDiff) |
int |
calculateSkylightSubtracted(float tickDiff) |
boolean |
canBlockSeeSky(int x,
int y,
int z) |
boolean |
canBlockSeeSky(com.nukkitx.math.vector.Vector3f pos) |
boolean |
canBlockSeeSky(com.nukkitx.math.vector.Vector3i pos) |
boolean |
cancelScheduledUpdate(com.nukkitx.math.vector.Vector3i pos) |
void |
checkSleep() |
void |
checkTime() |
void |
close() |
void |
doChunkGarbageCollection() |
void |
doTick(int currentTick) |
void |
dropExpOrb(com.nukkitx.math.vector.Vector3f source,
int exp) |
void |
dropExpOrb(com.nukkitx.math.vector.Vector3f source,
int exp,
com.nukkitx.math.vector.Vector3f motion) |
void |
dropExpOrb(com.nukkitx.math.vector.Vector3f source,
int exp,
com.nukkitx.math.vector.Vector3f motion,
int delay) |
void |
dropExpOrb(com.nukkitx.math.vector.Vector3i source,
int exp) |
org.cloudburstmc.api.entity.misc.DroppedItem |
dropItem(com.nukkitx.math.vector.Vector3f source,
org.cloudburstmc.api.item.ItemStack item,
com.nukkitx.math.vector.Vector3f motion,
boolean dropAround,
int delay) |
boolean |
getAutoSave() |
int |
getBiomeId(int x,
int z) |
org.cloudburstmc.api.block.Block |
getBlock(int x,
int y,
int z) |
Set<org.cloudburstmc.api.blockentity.BlockEntity> |
getBlockEntities() |
org.cloudburstmc.api.blockentity.BlockEntity |
getBlockEntity(com.nukkitx.math.vector.Vector3i pos) |
int |
getBlockLightAt(int x,
int y,
int z) |
org.cloudburstmc.api.block.BlockState |
getBlockState(int x,
int y,
int z,
int layer) |
CloudChunk |
getChunk(int chunkX,
int chunkZ) |
CloudChunk |
getChunk(long chunkKey) |
CloudChunk |
getChunk(com.nukkitx.math.vector.Vector3f pos) |
CloudChunk |
getChunk(com.nukkitx.math.vector.Vector3i pos) |
Collection<BaseBlockEntity> |
getChunkBlockEntities(int chunkX,
int chunkZ) |
int |
getChunkCount() |
Set<BaseEntity> |
getChunkEntities(int chunkX,
int chunkZ) |
CompletableFuture<CloudChunk> |
getChunkFuture(int chunkX,
int chunkZ) |
Set<org.cloudburstmc.api.level.ChunkLoader> |
getChunkLoaders(int chunkX,
int chunkZ) |
Set<CloudPlayer> |
getChunkPlayers(int chunkX,
int chunkZ) |
Set<CloudChunk> |
getChunks() |
Set<org.cloudburstmc.api.entity.Entity> |
getCollidingEntities(org.cloudburstmc.api.util.AxisAlignedBB bb) |
Set<org.cloudburstmc.api.entity.Entity> |
getCollidingEntities(org.cloudburstmc.api.util.AxisAlignedBB bb,
org.cloudburstmc.api.entity.Entity entity) |
org.cloudburstmc.api.block.Block[] |
getCollisionBlocks(org.cloudburstmc.api.util.AxisAlignedBB bb) |
org.cloudburstmc.api.block.Block[] |
getCollisionBlocks(org.cloudburstmc.api.util.AxisAlignedBB bb,
boolean targetFirst) |
org.cloudburstmc.api.util.AxisAlignedBB[] |
getCollisionCubes(org.cloudburstmc.api.entity.Entity entity,
org.cloudburstmc.api.util.AxisAlignedBB bb) |
org.cloudburstmc.api.util.AxisAlignedBB[] |
getCollisionCubes(org.cloudburstmc.api.entity.Entity entity,
org.cloudburstmc.api.util.AxisAlignedBB bb,
boolean entities) |
org.cloudburstmc.api.util.AxisAlignedBB[] |
getCollisionCubes(org.cloudburstmc.api.entity.Entity entity,
org.cloudburstmc.api.util.AxisAlignedBB bb,
boolean entities,
boolean solidEntities) |
long |
getCurrentTick() |
int |
getDimension() |
org.cloudburstmc.api.entity.Entity[] |
getEntities() |
org.cloudburstmc.api.entity.Entity |
getEntity(long entityId) |
int |
getFullLight(com.nukkitx.math.vector.Vector3i pos) |
org.cloudburstmc.api.level.gamerule.GameRuleMap |
getGameRules() |
Generator |
getGenerator() |
int |
getHighestBlock(int x,
int z) |
int |
getHighestBlockAt(int x,
int z) |
String |
getId() |
org.cloudburstmc.api.block.Block |
getLoadedBlock(int x,
int y,
int z) |
Collection<BaseBlockEntity> |
getLoadedBlockEntities(int chunkX,
int chunkZ) |
org.cloudburstmc.api.blockentity.BlockEntity |
getLoadedBlockEntity(com.nukkitx.math.vector.Vector3i pos) |
CloudChunk |
getLoadedChunk(int chunkX,
int chunkZ) |
CloudChunk |
getLoadedChunk(long chunkKey) |
CloudChunk |
getLoadedChunk(com.nukkitx.math.vector.Vector3f pos) |
CloudChunk |
getLoadedChunk(com.nukkitx.math.vector.Vector3i pos) |
Set<BaseEntity> |
getLoadedChunkEntities(int chunkX,
int chunkZ) |
Map<Integer,org.cloudburstmc.api.level.ChunkLoader> |
getLoaders() |
org.cloudburstmc.api.util.data.BlockColor |
getMapColorAt(int x,
int z) |
int |
getMoonPhase(long worldTime) |
String |
getName() |
Set<org.cloudburstmc.api.entity.Entity> |
getNearbyEntities(org.cloudburstmc.api.util.AxisAlignedBB bb) |
Set<org.cloudburstmc.api.entity.Entity> |
getNearbyEntities(org.cloudburstmc.api.util.AxisAlignedBB bb,
org.cloudburstmc.api.entity.Entity entity) |
Set<org.cloudburstmc.api.entity.Entity> |
getNearbyEntities(org.cloudburstmc.api.util.AxisAlignedBB bb,
org.cloudburstmc.api.entity.Entity entity,
boolean loadChunks) |
Set<BlockUpdateEntry> |
getPendingBlockUpdates(org.cloudburstmc.api.util.AxisAlignedBB boundingBox) |
Set<BlockUpdateEntry> |
getPendingBlockUpdates(CloudChunk chunk) |
Map<Long,CloudPlayer> |
getPlayers() |
LevelProvider |
getProvider() |
int |
getRainTime() |
int |
getRedstonePower(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.util.Direction face) |
org.cloudburstmc.api.level.Location |
getSafeSpawn() |
org.cloudburstmc.api.level.Location |
getSafeSpawn(org.cloudburstmc.api.level.Location pos) |
long |
getSeed() |
CloudServer |
getServer() |
int |
getSkyLightAt(int x,
int y,
int z) |
com.nukkitx.math.vector.Vector3f |
getSpawnLocation() |
int |
getStrongPower(com.nukkitx.math.vector.Vector3i pos) |
int |
getStrongPower(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.util.Direction direction) |
int |
getThunderTime() |
int |
getTickRate() |
int |
getTickRateTime() |
int |
getTime() |
int |
getUpdateLCG() |
boolean |
hasCollision(org.cloudburstmc.api.entity.Entity entity,
org.cloudburstmc.api.util.AxisAlignedBB bb,
boolean entities) |
void |
init() |
boolean |
isAreaLoaded(org.cloudburstmc.api.util.AxisAlignedBB bb) |
int |
isBlockIndirectlyGettingPowered(com.nukkitx.math.vector.Vector3i pos) |
boolean |
isBlockPowered(com.nukkitx.math.vector.Vector3i pos) |
boolean |
isBlockTickPending(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.block.Block block) |
boolean |
isChunkLoaded(int x,
int z) |
boolean |
isChunkLoaded(com.nukkitx.math.vector.Vector3i pos) |
boolean |
isChunkLoaded(com.nukkitx.math.vector.Vector4i pos) |
boolean |
isDaytime() |
boolean |
isFullBlock(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.block.BlockState state) |
boolean |
isInSpawnRadius(com.nukkitx.math.vector.Vector3i vector3) |
boolean |
isRaining() |
boolean |
isSidePowered(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.util.Direction face) |
boolean |
isSpawnChunk(int x,
int z) |
boolean |
isThundering() |
boolean |
isUpdateScheduled(com.nukkitx.math.vector.Vector3i pos) |
void |
reloadGenerator() |
void |
removeBlockEntity(org.cloudburstmc.api.blockentity.BlockEntity entity) |
void |
removeEntity(org.cloudburstmc.api.entity.Entity entity) |
boolean |
save() |
boolean |
save(boolean force) |
CompletableFuture<Void> |
saveChunks() |
void |
scheduleBlockEntityUpdate(org.cloudburstmc.api.blockentity.BlockEntity entity) |
void |
scheduleEntityUpdate(org.cloudburstmc.api.entity.Entity entity) |
void |
scheduleUpdate(org.cloudburstmc.api.block.Block block,
int delay) |
void |
scheduleUpdate(BlockUpdate blockUpdate) |
void |
scheduleUpdate(org.cloudburstmc.api.block.Block block,
com.nukkitx.math.vector.Vector3i pos,
int delay) |
void |
scheduleUpdate(org.cloudburstmc.api.block.Block block,
com.nukkitx.math.vector.Vector3i pos,
int delay,
int priority) |
void |
scheduleUpdate(org.cloudburstmc.api.block.Block block,
com.nukkitx.math.vector.Vector3i pos,
int delay,
int priority,
boolean checkArea) |
void |
scheduleUpdate(com.nukkitx.math.vector.Vector3i pos,
int delay) |
void |
sendBlocks(org.cloudburstmc.api.player.Player[] target,
org.cloudburstmc.api.block.Block[] blocks) |
void |
sendBlocks(org.cloudburstmc.api.player.Player[] target,
org.cloudburstmc.api.block.Block[] blocks,
Set<com.nukkitx.protocol.bedrock.packet.UpdateBlockPacket.Flag> flags) |
void |
sendBlocks(org.cloudburstmc.api.player.Player[] target,
org.cloudburstmc.api.block.Block[] blocks,
Set<com.nukkitx.protocol.bedrock.packet.UpdateBlockPacket.Flag> flags,
boolean optimizeRebuilds) |
void |
sendTime() |
void |
sendTime(org.cloudburstmc.api.player.Player... players) |
void |
sendWeather(Collection<org.cloudburstmc.api.player.Player> players) |
void |
sendWeather(org.cloudburstmc.api.player.Player player) |
void |
sendWeather(org.cloudburstmc.api.player.Player[] players) |
void |
setAutoSave(boolean autoSave) |
void |
setBiomeId(int x,
int z,
byte biomeId) |
void |
setBlockLightAt(int x,
int y,
int z,
int level) |
boolean |
setBlockState(int x,
int y,
int z,
int layer,
org.cloudburstmc.api.block.BlockState state,
boolean direct,
boolean update) |
boolean |
setRaining(boolean raining) |
void |
setRainTime(int rainTime) |
void |
setSeed(long seed) |
void |
setSkyLightAt(int x,
int y,
int z,
int level) |
void |
setSpawnLocation(com.nukkitx.math.vector.Vector3f pos) |
boolean |
setThundering(boolean thundering) |
void |
setThunderTime(int thunderTime) |
void |
setTickRate(int tickRate) |
void |
setTime(int time) |
void |
startTime() |
void |
stopTime() |
String |
toString() |
boolean |
unload() |
boolean |
unload(boolean force) |
void |
updateAllLight(com.nukkitx.math.vector.Vector3f pos) |
void |
updateAround(int posX,
int posY,
int posZ) |
void |
updateAround(com.nukkitx.math.vector.Vector3i pos) |
void |
updateAroundRedstone(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.util.Direction face) |
void |
updateBlockLight(it.unimi.dsi.fastutil.longs.Long2ObjectMap<it.unimi.dsi.fastutil.shorts.ShortSet> map) |
void |
updateBlockSkyLight(int x,
int y,
int z) |
void |
updateComparatorOutputLevel(com.nukkitx.math.vector.Vector3i v) |
org.cloudburstmc.api.item.ItemStack |
useBreakOn(com.nukkitx.math.vector.Vector3i pos) |
org.cloudburstmc.api.item.ItemStack |
useBreakOn(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.util.Direction face,
org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.player.Player player,
boolean createParticles) |
org.cloudburstmc.api.item.ItemStack |
useBreakOn(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.item.ItemStack item) |
org.cloudburstmc.api.item.ItemStack |
useBreakOn(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.player.Player player) |
org.cloudburstmc.api.item.ItemStack |
useBreakOn(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.player.Player player,
boolean createParticles) |
org.cloudburstmc.api.item.ItemStack |
useItemOn(com.nukkitx.math.vector.Vector3i vector,
org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.util.Direction face,
com.nukkitx.math.vector.Vector3f clickPos) |
org.cloudburstmc.api.item.ItemStack |
useItemOn(com.nukkitx.math.vector.Vector3i vector,
org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.util.Direction face,
com.nukkitx.math.vector.Vector3f clickPos,
org.cloudburstmc.api.player.Player player) |
org.cloudburstmc.api.item.ItemStack |
useItemOn(com.nukkitx.math.vector.Vector3i vector,
org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.util.Direction face,
com.nukkitx.math.vector.Vector3f clickPos,
org.cloudburstmc.api.player.Player player,
boolean playSound) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdropItem, dropItem, dropItem, dropItem, dropItem, sendTimegetBlock, getBlock, getBlockState, getBlockState, getBlockState, getBlockState, getChunk, getLoadedBlock, getLoadedBlock, setBlockState, setBlockState, setBlockState, setBlockState, setBlockState, setBlockState, setBlockState, setBlockState, setBlockState, setBlockStatepublic static int COMPRESSION_LEVEL
public static final int DIMENSION_OVERWORLD
public static final int DIMENSION_NETHER
public static final int DIMENSION_THE_END
public static final int MAX_BLOCK_CACHE
public final LevelTimings timings
public float skyLightSubtracted
public int sleepTicks
public int tickRateTime
public int tickRateCounter
public void reloadGenerator()
public int getTickRate()
getTickRate in interface org.cloudburstmc.api.level.Levelpublic int getTickRateTime()
public void setTickRate(int tickRate)
public void init()
init in interface org.cloudburstmc.api.level.Levelpublic CloudServer getServer()
getServer in interface org.cloudburstmc.api.level.Levelpublic final LevelProvider getProvider()
public final String getId()
getId in interface org.cloudburstmc.api.level.Levelpublic void close()
close in interface org.cloudburstmc.api.level.Levelpublic void addSound(com.nukkitx.math.vector.Vector3i pos,
Sound sound)
public void addSound(com.nukkitx.math.vector.Vector3f pos,
Sound sound)
public void addSound(com.nukkitx.math.vector.Vector3i pos,
Sound sound,
float volume,
float pitch)
public void addSound(com.nukkitx.math.vector.Vector3f pos,
Sound sound,
float volume,
float pitch)
public void addSound(com.nukkitx.math.vector.Vector3f pos,
Sound sound,
float volume,
float pitch,
Collection<org.cloudburstmc.api.player.Player> players)
public void addSound(com.nukkitx.math.vector.Vector3f pos,
Sound sound,
float volume,
float pitch,
org.cloudburstmc.api.player.Player... players)
public void addLevelSoundEvent(com.nukkitx.math.vector.Vector3f pos,
com.nukkitx.protocol.bedrock.data.SoundEvent event,
int data,
org.cloudburstmc.api.entity.EntityType<?> type)
public void addLevelSoundEvent(com.nukkitx.math.vector.Vector3f pos,
com.nukkitx.protocol.bedrock.data.SoundEvent event,
int data,
org.cloudburstmc.api.entity.EntityType<?> type,
boolean isBaby,
boolean isGlobal)
public void addLevelSoundEvent(com.nukkitx.math.vector.Vector3i pos,
com.nukkitx.protocol.bedrock.data.SoundEvent event)
public void addLevelSoundEvent(com.nukkitx.math.vector.Vector3f pos,
com.nukkitx.protocol.bedrock.data.SoundEvent event)
public void addLevelSoundEvent(com.nukkitx.math.vector.Vector3i pos,
com.nukkitx.protocol.bedrock.data.SoundEvent event,
int data)
public void addLevelSoundEvent(com.nukkitx.math.vector.Vector3f pos,
com.nukkitx.protocol.bedrock.data.SoundEvent event,
int data)
pos - position where sound should be playedevent - ID of the sound from SoundEventdata - generic data that can affect soundpublic void addParticle(Particle particle)
public void addParticle(Particle particle, org.cloudburstmc.api.player.Player player)
public void addParticle(Particle particle, org.cloudburstmc.api.player.Player[] players)
public void addParticle(Particle particle, Collection<org.cloudburstmc.api.player.Player> players)
public void addParticleEffect(com.nukkitx.math.vector.Vector3f pos,
org.cloudburstmc.api.util.Identifier identifier)
public void addParticleEffect(com.nukkitx.math.vector.Vector3f pos,
org.cloudburstmc.api.util.Identifier identifier,
long uniqueEntityId)
public void addParticleEffect(com.nukkitx.math.vector.Vector3f pos,
org.cloudburstmc.api.util.Identifier identifier,
long uniqueEntityId,
int dimensionId)
public void addParticleEffect(com.nukkitx.math.vector.Vector3f pos,
org.cloudburstmc.api.util.Identifier identifier,
long uniqueEntityId,
int dimensionId,
Collection<org.cloudburstmc.api.player.Player> players)
public void addParticleEffect(com.nukkitx.math.vector.Vector3f pos,
org.cloudburstmc.api.util.Identifier identifier,
long uniqueEntityId,
int dimensionId,
org.cloudburstmc.api.player.Player... players)
public boolean getAutoSave()
public void setAutoSave(boolean autoSave)
public boolean unload()
unload in interface org.cloudburstmc.api.level.Levelpublic boolean unload(boolean force)
unload in interface org.cloudburstmc.api.level.Levelpublic Set<CloudPlayer> getChunkPlayers(int chunkX, int chunkZ)
getChunkPlayers in interface org.cloudburstmc.api.level.ChunkManagerpublic Set<org.cloudburstmc.api.level.ChunkLoader> getChunkLoaders(int chunkX, int chunkZ)
getChunkLoaders in interface org.cloudburstmc.api.level.ChunkManagerpublic void addLevelSoundEvent(com.nukkitx.math.vector.Vector3f pos,
com.nukkitx.protocol.bedrock.data.SoundEvent event,
int data,
org.cloudburstmc.api.util.Identifier identifier,
boolean isBaby,
boolean isGlobal)
public void checkTime()
public void sendTime(org.cloudburstmc.api.player.Player... players)
sendTime in interface org.cloudburstmc.api.level.Levelpublic void sendTime()
public org.cloudburstmc.api.level.gamerule.GameRuleMap getGameRules()
getGameRules in interface org.cloudburstmc.api.level.Levelpublic void addChunkPacket(com.nukkitx.math.vector.Vector3i pos,
com.nukkitx.protocol.bedrock.BedrockPacket packet)
public void addChunkPacket(com.nukkitx.math.vector.Vector3f pos,
com.nukkitx.protocol.bedrock.BedrockPacket packet)
public void addChunkPacket(int chunkX,
int chunkZ,
com.nukkitx.protocol.bedrock.BedrockPacket packet)
public void doTick(int currentTick)
doTick in interface org.cloudburstmc.api.level.Levelpublic void checkSleep()
public com.nukkitx.math.vector.Vector3f adjustPosToNearbyEntity(com.nukkitx.math.vector.Vector3f pos)
public void sendBlocks(org.cloudburstmc.api.player.Player[] target,
org.cloudburstmc.api.block.Block[] blocks)
public void sendBlocks(org.cloudburstmc.api.player.Player[] target,
org.cloudburstmc.api.block.Block[] blocks,
Set<com.nukkitx.protocol.bedrock.packet.UpdateBlockPacket.Flag> flags)
public void sendBlocks(org.cloudburstmc.api.player.Player[] target,
org.cloudburstmc.api.block.Block[] blocks,
Set<com.nukkitx.protocol.bedrock.packet.UpdateBlockPacket.Flag> flags,
boolean optimizeRebuilds)
public boolean save()
save in interface org.cloudburstmc.api.level.Levelpublic boolean save(boolean force)
save in interface org.cloudburstmc.api.level.Levelpublic CompletableFuture<Void> saveChunks()
public void updateAroundRedstone(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.util.Direction face)
public void updateComparatorOutputLevel(com.nukkitx.math.vector.Vector3i v)
public void updateAround(int posX,
int posY,
int posZ)
public void scheduleUpdate(com.nukkitx.math.vector.Vector3i pos,
int delay)
scheduleUpdate in interface org.cloudburstmc.api.level.Levelpublic void scheduleUpdate(org.cloudburstmc.api.block.Block block,
int delay)
public void updateAround(com.nukkitx.math.vector.Vector3i pos)
updateAround in interface org.cloudburstmc.api.level.Levelpublic void scheduleUpdate(org.cloudburstmc.api.block.Block block,
com.nukkitx.math.vector.Vector3i pos,
int delay)
public void scheduleUpdate(BlockUpdate blockUpdate)
public void scheduleUpdate(org.cloudburstmc.api.block.Block block,
com.nukkitx.math.vector.Vector3i pos,
int delay,
int priority)
public void scheduleUpdate(org.cloudburstmc.api.block.Block block,
com.nukkitx.math.vector.Vector3i pos,
int delay,
int priority,
boolean checkArea)
public boolean cancelScheduledUpdate(com.nukkitx.math.vector.Vector3i pos)
cancelScheduledUpdate in interface org.cloudburstmc.api.level.Levelpublic boolean isUpdateScheduled(com.nukkitx.math.vector.Vector3i pos)
isUpdateScheduled in interface org.cloudburstmc.api.level.Levelpublic Set<BlockUpdateEntry> getPendingBlockUpdates(CloudChunk chunk)
public Set<BlockUpdateEntry> getPendingBlockUpdates(org.cloudburstmc.api.util.AxisAlignedBB boundingBox)
public org.cloudburstmc.api.block.Block[] getCollisionBlocks(org.cloudburstmc.api.util.AxisAlignedBB bb)
getCollisionBlocks in interface org.cloudburstmc.api.level.Levelpublic org.cloudburstmc.api.block.Block[] getCollisionBlocks(org.cloudburstmc.api.util.AxisAlignedBB bb,
boolean targetFirst)
public boolean isBlockTickPending(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.block.Block block)
public org.cloudburstmc.api.util.AxisAlignedBB[] getCollisionCubes(org.cloudburstmc.api.entity.Entity entity,
org.cloudburstmc.api.util.AxisAlignedBB bb)
getCollisionCubes in interface org.cloudburstmc.api.level.Levelpublic org.cloudburstmc.api.util.AxisAlignedBB[] getCollisionCubes(org.cloudburstmc.api.entity.Entity entity,
org.cloudburstmc.api.util.AxisAlignedBB bb,
boolean entities)
getCollisionCubes in interface org.cloudburstmc.api.level.Levelpublic org.cloudburstmc.api.util.AxisAlignedBB[] getCollisionCubes(org.cloudburstmc.api.entity.Entity entity,
org.cloudburstmc.api.util.AxisAlignedBB bb,
boolean entities,
boolean solidEntities)
getCollisionCubes in interface org.cloudburstmc.api.level.Levelpublic boolean isFullBlock(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.block.BlockState state)
public boolean hasCollision(org.cloudburstmc.api.entity.Entity entity,
org.cloudburstmc.api.util.AxisAlignedBB bb,
boolean entities)
hasCollision in interface org.cloudburstmc.api.level.Levelpublic int calculateSkylightSubtracted(float tickDiff)
public float calculateCelestialAngle(int time,
float tickDiff)
public int getMoonPhase(long worldTime)
public int getFullLight(com.nukkitx.math.vector.Vector3i pos)
getFullLight in interface org.cloudburstmc.api.level.Level@Nullable public org.cloudburstmc.api.block.Block getLoadedBlock(int x, int y, int z)
getLoadedBlock in interface org.cloudburstmc.api.level.ChunkManager@Nonnull public org.cloudburstmc.api.block.Block getBlock(int x, int y, int z)
getBlock in interface org.cloudburstmc.api.level.ChunkManagerpublic void updateBlockSkyLight(int x,
int y,
int z)
public void updateAllLight(com.nukkitx.math.vector.Vector3f pos)
public void updateBlockLight(it.unimi.dsi.fastutil.longs.Long2ObjectMap<it.unimi.dsi.fastutil.shorts.ShortSet> map)
public void addLightUpdate(int x,
int y,
int z)
public boolean setBlockState(int x,
int y,
int z,
int layer,
org.cloudburstmc.api.block.BlockState state,
boolean direct,
boolean update)
setBlockState in interface org.cloudburstmc.api.level.ChunkManager@Nonnull public org.cloudburstmc.api.entity.misc.DroppedItem dropItem(com.nukkitx.math.vector.Vector3f source, org.cloudburstmc.api.item.ItemStack item, com.nukkitx.math.vector.Vector3f motion, boolean dropAround, int delay)
dropItem in interface org.cloudburstmc.api.level.Levelpublic org.cloudburstmc.api.item.ItemStack useBreakOn(com.nukkitx.math.vector.Vector3i pos)
useBreakOn in interface org.cloudburstmc.api.level.Levelpublic org.cloudburstmc.api.item.ItemStack useBreakOn(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.item.ItemStack item)
useBreakOn in interface org.cloudburstmc.api.level.Levelpublic org.cloudburstmc.api.item.ItemStack useBreakOn(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.player.Player player)
useBreakOn in interface org.cloudburstmc.api.level.Levelpublic org.cloudburstmc.api.item.ItemStack useBreakOn(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.player.Player player,
boolean createParticles)
useBreakOn in interface org.cloudburstmc.api.level.Levelpublic org.cloudburstmc.api.item.ItemStack useBreakOn(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.util.Direction face,
org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.player.Player player,
boolean createParticles)
useBreakOn in interface org.cloudburstmc.api.level.Levelpublic void dropExpOrb(com.nukkitx.math.vector.Vector3i source,
int exp)
public void dropExpOrb(com.nukkitx.math.vector.Vector3f source,
int exp)
public void dropExpOrb(com.nukkitx.math.vector.Vector3f source,
int exp,
com.nukkitx.math.vector.Vector3f motion)
public void dropExpOrb(com.nukkitx.math.vector.Vector3f source,
int exp,
com.nukkitx.math.vector.Vector3f motion,
int delay)
public org.cloudburstmc.api.item.ItemStack useItemOn(com.nukkitx.math.vector.Vector3i vector,
org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.util.Direction face,
com.nukkitx.math.vector.Vector3f clickPos)
useItemOn in interface org.cloudburstmc.api.level.Levelpublic org.cloudburstmc.api.item.ItemStack useItemOn(com.nukkitx.math.vector.Vector3i vector,
org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.util.Direction face,
com.nukkitx.math.vector.Vector3f clickPos,
org.cloudburstmc.api.player.Player player)
useItemOn in interface org.cloudburstmc.api.level.Levelpublic org.cloudburstmc.api.item.ItemStack useItemOn(com.nukkitx.math.vector.Vector3i vector,
org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.util.Direction face,
com.nukkitx.math.vector.Vector3f clickPos,
org.cloudburstmc.api.player.Player player,
boolean playSound)
useItemOn in interface org.cloudburstmc.api.level.Levelpublic boolean isInSpawnRadius(com.nukkitx.math.vector.Vector3i vector3)
public org.cloudburstmc.api.entity.Entity getEntity(long entityId)
getEntity in interface org.cloudburstmc.api.level.Levelpublic org.cloudburstmc.api.entity.Entity[] getEntities()
public Set<org.cloudburstmc.api.entity.Entity> getCollidingEntities(org.cloudburstmc.api.util.AxisAlignedBB bb)
getCollidingEntities in interface org.cloudburstmc.api.level.Levelpublic Set<org.cloudburstmc.api.entity.Entity> getCollidingEntities(org.cloudburstmc.api.util.AxisAlignedBB bb, org.cloudburstmc.api.entity.Entity entity)
getCollidingEntities in interface org.cloudburstmc.api.level.Levelpublic Set<org.cloudburstmc.api.entity.Entity> getNearbyEntities(org.cloudburstmc.api.util.AxisAlignedBB bb)
getNearbyEntities in interface org.cloudburstmc.api.level.Levelpublic Set<org.cloudburstmc.api.entity.Entity> getNearbyEntities(org.cloudburstmc.api.util.AxisAlignedBB bb, org.cloudburstmc.api.entity.Entity entity)
getNearbyEntities in interface org.cloudburstmc.api.level.Levelpublic Set<org.cloudburstmc.api.entity.Entity> getNearbyEntities(org.cloudburstmc.api.util.AxisAlignedBB bb, org.cloudburstmc.api.entity.Entity entity, boolean loadChunks)
getNearbyEntities in interface org.cloudburstmc.api.level.Levelpublic Set<org.cloudburstmc.api.blockentity.BlockEntity> getBlockEntities()
public Map<Long,CloudPlayer> getPlayers()
getPlayers in interface org.cloudburstmc.api.level.Levelpublic org.cloudburstmc.api.blockentity.BlockEntity getBlockEntity(com.nukkitx.math.vector.Vector3i pos)
getBlockEntity in interface org.cloudburstmc.api.level.Level@Nullable public org.cloudburstmc.api.blockentity.BlockEntity getLoadedBlockEntity(com.nukkitx.math.vector.Vector3i pos)
@Nonnull public Set<BaseEntity> getChunkEntities(int chunkX, int chunkZ)
@Nonnull public Set<BaseEntity> getLoadedChunkEntities(int chunkX, int chunkZ)
@Nonnull public Collection<BaseBlockEntity> getChunkBlockEntities(int chunkX, int chunkZ)
@Nonnull public Collection<BaseBlockEntity> getLoadedBlockEntities(int chunkX, int chunkZ)
public org.cloudburstmc.api.block.BlockState getBlockState(int x,
int y,
int z,
int layer)
getBlockState in interface org.cloudburstmc.api.level.ChunkManagerpublic int getBiomeId(int x,
int z)
getBiomeId in interface org.cloudburstmc.api.level.Levelpublic void setBiomeId(int x,
int z,
byte biomeId)
setBiomeId in interface org.cloudburstmc.api.level.Levelpublic int getSkyLightAt(int x,
int y,
int z)
public void setSkyLightAt(int x,
int y,
int z,
int level)
public int getBlockLightAt(int x,
int y,
int z)
public void setBlockLightAt(int x,
int y,
int z,
int level)
public int getHighestBlock(int x,
int z)
getHighestBlock in interface org.cloudburstmc.api.level.Levelpublic CloudChunk getLoadedChunk(long chunkKey)
getLoadedChunk in interface org.cloudburstmc.api.level.ChunkManagerpublic CloudChunk getLoadedChunk(int chunkX, int chunkZ)
getLoadedChunk in interface org.cloudburstmc.api.level.ChunkManagerpublic CloudChunk getLoadedChunk(com.nukkitx.math.vector.Vector3i pos)
getLoadedChunk in interface org.cloudburstmc.api.level.ChunkManagerpublic CloudChunk getLoadedChunk(com.nukkitx.math.vector.Vector3f pos)
getLoadedChunk in interface org.cloudburstmc.api.level.ChunkManager@Nonnull public Set<CloudChunk> getChunks()
getChunks in interface org.cloudburstmc.api.level.ChunkManagerpublic int getChunkCount()
public CloudChunk getChunk(com.nukkitx.math.vector.Vector3i pos)
getChunk in interface org.cloudburstmc.api.level.ChunkManagerpublic CloudChunk getChunk(com.nukkitx.math.vector.Vector3f pos)
getChunk in interface org.cloudburstmc.api.level.ChunkManagerpublic CloudChunk getChunk(long chunkKey)
getChunk in interface org.cloudburstmc.api.level.ChunkManagerpublic CloudChunk getChunk(int chunkX, int chunkZ)
getChunk in interface org.cloudburstmc.api.level.ChunkManagerpublic CompletableFuture<CloudChunk> getChunkFuture(int chunkX, int chunkZ)
getChunkFuture in interface org.cloudburstmc.api.level.ChunkManagerpublic int getHighestBlockAt(int x,
int z)
public org.cloudburstmc.api.util.data.BlockColor getMapColorAt(int x,
int z)
public boolean isChunkLoaded(com.nukkitx.math.vector.Vector4i pos)
public boolean isChunkLoaded(com.nukkitx.math.vector.Vector3i pos)
public boolean isChunkLoaded(int x,
int z)
public com.nukkitx.math.vector.Vector3f getSpawnLocation()
getSpawnLocation in interface org.cloudburstmc.api.level.Levelpublic void setSpawnLocation(com.nukkitx.math.vector.Vector3f pos)
setSpawnLocation in interface org.cloudburstmc.api.level.Levelpublic void scheduleEntityUpdate(org.cloudburstmc.api.entity.Entity entity)
scheduleEntityUpdate in interface org.cloudburstmc.api.level.Levelpublic void removeEntity(org.cloudburstmc.api.entity.Entity entity)
removeEntity in interface org.cloudburstmc.api.level.Levelpublic void addEntity(org.cloudburstmc.api.entity.Entity entity)
addEntity in interface org.cloudburstmc.api.level.Levelpublic void addBlockEntity(org.cloudburstmc.api.blockentity.BlockEntity blockEntity)
public void scheduleBlockEntityUpdate(org.cloudburstmc.api.blockentity.BlockEntity entity)
public void removeBlockEntity(org.cloudburstmc.api.blockentity.BlockEntity entity)
public boolean isSpawnChunk(int x,
int z)
public org.cloudburstmc.api.level.Location getSafeSpawn()
public org.cloudburstmc.api.level.Location getSafeSpawn(org.cloudburstmc.api.level.Location pos)
public int getTime()
getTime in interface org.cloudburstmc.api.level.Levelpublic boolean isDaytime()
public void setTime(int time)
setTime in interface org.cloudburstmc.api.level.Levelpublic long getCurrentTick()
getCurrentTick in interface org.cloudburstmc.api.level.Levelpublic String getName()
getName in interface org.cloudburstmc.api.level.Levelpublic void stopTime()
stopTime in interface org.cloudburstmc.api.level.Levelpublic void startTime()
startTime in interface org.cloudburstmc.api.level.Levelpublic long getSeed()
getSeed in interface org.cloudburstmc.api.level.ChunkManagergetSeed in interface org.cloudburstmc.api.level.Levelpublic void setSeed(long seed)
setSeed in interface org.cloudburstmc.api.level.Levelpublic void doChunkGarbageCollection()
public void addEntityMovement(org.cloudburstmc.api.entity.Entity entity,
double x,
double y,
double z,
double yaw,
double pitch,
double headYaw)
addEntityMovement in interface org.cloudburstmc.api.level.Levelpublic boolean isRaining()
isRaining in interface org.cloudburstmc.api.level.Levelpublic boolean setRaining(boolean raining)
setRaining in interface org.cloudburstmc.api.level.Levelpublic int getRainTime()
getRainTime in interface org.cloudburstmc.api.level.Levelpublic void setRainTime(int rainTime)
setRainTime in interface org.cloudburstmc.api.level.Levelpublic boolean isThundering()
isThundering in interface org.cloudburstmc.api.level.Levelpublic boolean setThundering(boolean thundering)
setThundering in interface org.cloudburstmc.api.level.Levelpublic int getThunderTime()
getThunderTime in interface org.cloudburstmc.api.level.Levelpublic void setThunderTime(int thunderTime)
setThunderTime in interface org.cloudburstmc.api.level.Levelpublic void sendWeather(org.cloudburstmc.api.player.Player[] players)
sendWeather in interface org.cloudburstmc.api.level.Levelpublic void sendWeather(org.cloudburstmc.api.player.Player player)
public void sendWeather(Collection<org.cloudburstmc.api.player.Player> players)
public int getDimension()
public boolean canBlockSeeSky(com.nukkitx.math.vector.Vector3f pos)
public boolean canBlockSeeSky(com.nukkitx.math.vector.Vector3i pos)
canBlockSeeSky in interface org.cloudburstmc.api.level.Levelpublic boolean canBlockSeeSky(int x,
int y,
int z)
public int getStrongPower(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.util.Direction direction)
public int getStrongPower(com.nukkitx.math.vector.Vector3i pos)
public boolean isSidePowered(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.util.Direction face)
public int getRedstonePower(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.util.Direction face)
public boolean isBlockPowered(com.nukkitx.math.vector.Vector3i pos)
public int isBlockIndirectlyGettingPowered(com.nukkitx.math.vector.Vector3i pos)
public boolean isAreaLoaded(org.cloudburstmc.api.util.AxisAlignedBB bb)
public int getUpdateLCG()
public Generator getGenerator()
Copyright © 2021. All rights reserved.