Class CloudLevel

java.lang.Object
org.cloudburstmc.server.level.CloudLevel
All Implemented Interfaces:
org.cloudburstmc.api.level.ChunkManager, org.cloudburstmc.api.level.Level

public class CloudLevel extends Object implements org.cloudburstmc.api.level.Level
author: MagicDroidX Nukkit Project
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static int
     
    static int
     
    static int
     
    static int
     
    static int
     
    float
     
    int
     
    int
     
    int
     
     

    Fields inherited from interface org.cloudburstmc.api.level.Level

    BLOCK_UPDATE_NORMAL, BLOCK_UPDATE_RANDOM, BLOCK_UPDATE_REDSTONE, BLOCK_UPDATE_SCHEDULED, BLOCK_UPDATE_TICK, BLOCK_UPDATE_TOUCH, BLOCK_UPDATE_WEAK, TIME_DAY, TIME_FULL, TIME_MIDNIGHT, TIME_NIGHT, TIME_NOON, TIME_SUNRISE, TIME_SUNSET
  • Method Summary

    Modifier and Type
    Method
    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
     
    void
     
    void
     
    void
     
    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
     
    int
    getBiomeId​(int x, int z)
     
    org.cloudburstmc.api.block.Block
    getBlock​(int x, int y, int z)
     
    Set<org.cloudburstmc.api.blockentity.BlockEntity>
     
    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)
     
    getChunk​(int chunkX, int chunkZ)
     
    getChunk​(long chunkKey)
     
    getChunk​(com.nukkitx.math.vector.Vector3f pos)
     
    getChunk​(com.nukkitx.math.vector.Vector3i pos)
     
    getChunkBlockEntities​(int chunkX, int chunkZ)
     
    int
     
    getChunkEntities​(int chunkX, int chunkZ)
     
    getChunkFuture​(int chunkX, int chunkZ)
     
    Set<org.cloudburstmc.api.level.ChunkLoader>
    getChunkLoaders​(int chunkX, int chunkZ)
     
    getChunkPlayers​(int chunkX, int chunkZ)
     
     
    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
     
    int
     
    org.cloudburstmc.api.entity.Entity[]
     
    org.cloudburstmc.api.entity.Entity
    getEntity​(long entityId)
     
    int
    getFullLight​(com.nukkitx.math.vector.Vector3i pos)
     
    org.cloudburstmc.api.level.gamerule.GameRuleMap
     
     
    int
    getHighestBlock​(int x, int z)
     
    int
    getHighestBlockAt​(int x, int z)
     
     
    org.cloudburstmc.api.block.Block
    getLoadedBlock​(int x, int y, int z)
     
    getLoadedBlockEntities​(int chunkX, int chunkZ)
     
    org.cloudburstmc.api.blockentity.BlockEntity
    getLoadedBlockEntity​(com.nukkitx.math.vector.Vector3i pos)
     
    getLoadedChunk​(int chunkX, int chunkZ)
     
    getLoadedChunk​(long chunkKey)
     
    getLoadedChunk​(com.nukkitx.math.vector.Vector3f pos)
     
    getLoadedChunk​(com.nukkitx.math.vector.Vector3i pos)
     
    getLoadedChunkEntities​(int chunkX, int chunkZ)
     
    Map<Integer,​org.cloudburstmc.api.level.ChunkLoader>
     
    org.cloudburstmc.api.util.data.BlockColor
    getMapColorAt​(int x, int z)
     
    int
    getMoonPhase​(long worldTime)
     
     
    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)
     
    getPendingBlockUpdates​(org.cloudburstmc.api.util.AxisAlignedBB boundingBox)
     
     
     
     
    int
     
    int
    getRedstonePower​(com.nukkitx.math.vector.Vector3i pos, org.cloudburstmc.api.util.Direction face)
     
    org.cloudburstmc.api.level.Location
     
    org.cloudburstmc.api.level.Location
    getSafeSpawn​(org.cloudburstmc.api.level.Location pos)
     
    long
     
     
    int
    getSkyLightAt​(int x, int y, int z)
     
    com.nukkitx.math.vector.Vector3f
     
    int
    getStrongPower​(com.nukkitx.math.vector.Vector3i pos)
     
    int
    getStrongPower​(com.nukkitx.math.vector.Vector3i pos, org.cloudburstmc.api.util.Direction direction)
     
    int
     
    int
     
    int
     
    int
     
    int
     
    boolean
    hasCollision​(org.cloudburstmc.api.entity.Entity entity, org.cloudburstmc.api.util.AxisAlignedBB bb, boolean entities)
     
    void
     
    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
     
    boolean
    isFullBlock​(com.nukkitx.math.vector.Vector3i pos, org.cloudburstmc.api.block.BlockState state)
     
    boolean
    isInSpawnRadius​(com.nukkitx.math.vector.Vector3i vector3)
     
    boolean
     
    boolean
    isSidePowered​(com.nukkitx.math.vector.Vector3i pos, org.cloudburstmc.api.util.Direction face)
     
    boolean
    isSpawnChunk​(int x, int z)
     
    boolean
     
    boolean
    isUpdateScheduled​(com.nukkitx.math.vector.Vector3i pos)
     
    void
     
    void
    removeBlockEntity​(org.cloudburstmc.api.blockentity.BlockEntity entity)
     
    void
    removeEntity​(org.cloudburstmc.api.entity.Entity entity)
     
    boolean
     
    boolean
    save​(boolean force)
     
     
    void
    scheduleBlockEntityUpdate​(org.cloudburstmc.api.blockentity.BlockEntity entity)
     
    void
    scheduleEntityUpdate​(org.cloudburstmc.api.entity.Entity entity)
     
    void
    scheduleUpdate​(com.nukkitx.math.vector.Vector3i pos, int delay)
     
    void
    scheduleUpdate​(org.cloudburstmc.api.block.Block block, int delay)
     
    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​(BlockUpdate blockUpdate)
     
    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
     
    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[] toSend)
     
    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
     
    void
     
     
    boolean
     
    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.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
    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
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.cloudburstmc.api.level.ChunkManager

    getBlock, getBlock, getBlockState, getBlockState, getBlockState, getBlockState, getChunk, getLoadedBlock, getLoadedBlock, setBlockState, setBlockState, setBlockState, setBlockState, setBlockState, setBlockState, setBlockState, setBlockState, setBlockState, setBlockState

    Methods inherited from interface org.cloudburstmc.api.level.Level

    dropItem, dropItem, dropItem, dropItem, dropItem, sendTime
  • Field Details

    • COMPRESSION_LEVEL

      public static int COMPRESSION_LEVEL
    • DIMENSION_OVERWORLD

      public static final int DIMENSION_OVERWORLD
      See Also:
      Constant Field Values
    • DIMENSION_NETHER

      public static final int DIMENSION_NETHER
      See Also:
      Constant Field Values
    • DIMENSION_THE_END

      public static final int DIMENSION_THE_END
      See Also:
      Constant Field Values
    • MAX_BLOCK_CACHE

      public static final int MAX_BLOCK_CACHE
      See Also:
      Constant Field Values
    • timings

      public final LevelTimings timings
    • skyLightSubtracted

      public float skyLightSubtracted
    • sleepTicks

      public int sleepTicks
    • tickRateTime

      public int tickRateTime
    • tickRateCounter

      public int tickRateCounter
  • Method Details

    • reloadGenerator

      public void reloadGenerator()
    • getTickRate

      public int getTickRate()
      Specified by:
      getTickRate in interface org.cloudburstmc.api.level.Level
    • getTickRateTime

      public int getTickRateTime()
    • setTickRate

      public void setTickRate(int tickRate)
    • init

      public void init()
      Specified by:
      init in interface org.cloudburstmc.api.level.Level
    • getServer

      public CloudServer getServer()
      Specified by:
      getServer in interface org.cloudburstmc.api.level.Level
    • getProvider

      public final LevelProvider getProvider()
    • getId

      public final String getId()
      Specified by:
      getId in interface org.cloudburstmc.api.level.Level
    • close

      public void close()
      Specified by:
      close in interface org.cloudburstmc.api.level.Level
    • addSound

      public void addSound(com.nukkitx.math.vector.Vector3i pos, Sound sound)
    • addSound

      public void addSound(com.nukkitx.math.vector.Vector3f pos, Sound sound)
    • addSound

      public void addSound(com.nukkitx.math.vector.Vector3i pos, Sound sound, float volume, float pitch)
    • addSound

      public void addSound(com.nukkitx.math.vector.Vector3f pos, Sound sound, float volume, float pitch)
    • addSound

      public void addSound(com.nukkitx.math.vector.Vector3f pos, Sound sound, float volume, float pitch, Collection<org.cloudburstmc.api.player.Player> players)
    • addSound

      public void addSound(com.nukkitx.math.vector.Vector3f pos, Sound sound, float volume, float pitch, org.cloudburstmc.api.player.Player... players)
    • addLevelSoundEvent

      public void addLevelSoundEvent(com.nukkitx.math.vector.Vector3f pos, com.nukkitx.protocol.bedrock.data.SoundEvent event, int data, org.cloudburstmc.api.entity.EntityType<?> type)
    • addLevelSoundEvent

      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)
    • addLevelSoundEvent

      public void addLevelSoundEvent(com.nukkitx.math.vector.Vector3i pos, com.nukkitx.protocol.bedrock.data.SoundEvent event)
    • addLevelSoundEvent

      public void addLevelSoundEvent(com.nukkitx.math.vector.Vector3f pos, com.nukkitx.protocol.bedrock.data.SoundEvent event)
    • addLevelSoundEvent

      public void addLevelSoundEvent(com.nukkitx.math.vector.Vector3i pos, com.nukkitx.protocol.bedrock.data.SoundEvent event, int data)
    • addLevelSoundEvent

      public void addLevelSoundEvent(com.nukkitx.math.vector.Vector3f pos, com.nukkitx.protocol.bedrock.data.SoundEvent event, int data)
      Broadcasts sound to players
      Parameters:
      pos - position where sound should be played
      event - ID of the sound from SoundEvent
      data - generic data that can affect sound
    • addParticle

      public void addParticle(Particle particle)
    • addParticle

      public void addParticle(Particle particle, org.cloudburstmc.api.player.Player player)
    • addParticle

      public void addParticle(Particle particle, org.cloudburstmc.api.player.Player[] players)
    • addParticle

      public void addParticle(Particle particle, Collection<org.cloudburstmc.api.player.Player> players)
    • addParticleEffect

      public void addParticleEffect(com.nukkitx.math.vector.Vector3f pos, org.cloudburstmc.api.util.Identifier identifier)
    • addParticleEffect

      public void addParticleEffect(com.nukkitx.math.vector.Vector3f pos, org.cloudburstmc.api.util.Identifier identifier, long uniqueEntityId)
    • addParticleEffect

      public void addParticleEffect(com.nukkitx.math.vector.Vector3f pos, org.cloudburstmc.api.util.Identifier identifier, long uniqueEntityId, int dimensionId)
    • addParticleEffect

      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)
    • addParticleEffect

      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)
    • getAutoSave

      public boolean getAutoSave()
    • setAutoSave

      public void setAutoSave(boolean autoSave)
    • unload

      public boolean unload()
      Specified by:
      unload in interface org.cloudburstmc.api.level.Level
    • unload

      public boolean unload(boolean force)
      Specified by:
      unload in interface org.cloudburstmc.api.level.Level
    • getChunkPlayers

      public Set<CloudPlayer> getChunkPlayers(int chunkX, int chunkZ)
      Specified by:
      getChunkPlayers in interface org.cloudburstmc.api.level.ChunkManager
    • getChunkLoaders

      public Set<org.cloudburstmc.api.level.ChunkLoader> getChunkLoaders(int chunkX, int chunkZ)
      Specified by:
      getChunkLoaders in interface org.cloudburstmc.api.level.ChunkManager
    • addLevelSoundEvent

      public 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)
    • checkTime

      public void checkTime()
    • sendTime

      public void sendTime(org.cloudburstmc.api.player.Player... players)
      Specified by:
      sendTime in interface org.cloudburstmc.api.level.Level
    • sendTime

      public void sendTime()
    • getGameRules

      public org.cloudburstmc.api.level.gamerule.GameRuleMap getGameRules()
      Specified by:
      getGameRules in interface org.cloudburstmc.api.level.Level
    • addChunkPacket

      public void addChunkPacket(com.nukkitx.math.vector.Vector3i pos, com.nukkitx.protocol.bedrock.BedrockPacket packet)
    • addChunkPacket

      public void addChunkPacket(com.nukkitx.math.vector.Vector3f pos, com.nukkitx.protocol.bedrock.BedrockPacket packet)
    • addChunkPacket

      public void addChunkPacket(int chunkX, int chunkZ, com.nukkitx.protocol.bedrock.BedrockPacket packet)
    • doTick

      public void doTick(int currentTick)
      Specified by:
      doTick in interface org.cloudburstmc.api.level.Level
    • checkSleep

      public void checkSleep()
    • adjustPosToNearbyEntity

      public com.nukkitx.math.vector.Vector3f adjustPosToNearbyEntity(com.nukkitx.math.vector.Vector3f pos)
    • sendBlocks

      public void sendBlocks(org.cloudburstmc.api.player.Player[] target, org.cloudburstmc.api.block.Block[] blocks)
    • sendBlocks

      public void sendBlocks(org.cloudburstmc.api.player.Player[] target, org.cloudburstmc.api.block.Block[] blocks, Set<com.nukkitx.protocol.bedrock.packet.UpdateBlockPacket.Flag> flags)
    • sendBlocks

      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)
    • save

      public boolean save()
      Specified by:
      save in interface org.cloudburstmc.api.level.Level
    • save

      public boolean save(boolean force)
      Specified by:
      save in interface org.cloudburstmc.api.level.Level
    • saveChunks

      public CompletableFuture<Void> saveChunks()
    • updateAroundRedstone

      public void updateAroundRedstone(com.nukkitx.math.vector.Vector3i pos, org.cloudburstmc.api.util.Direction face)
    • updateComparatorOutputLevel

      public void updateComparatorOutputLevel(com.nukkitx.math.vector.Vector3i v)
    • updateAround

      public void updateAround(int posX, int posY, int posZ)
    • scheduleUpdate

      public void scheduleUpdate(com.nukkitx.math.vector.Vector3i pos, int delay)
      Specified by:
      scheduleUpdate in interface org.cloudburstmc.api.level.Level
    • scheduleUpdate

      public void scheduleUpdate(org.cloudburstmc.api.block.Block block, int delay)
    • updateAround

      public void updateAround(com.nukkitx.math.vector.Vector3i pos)
      Specified by:
      updateAround in interface org.cloudburstmc.api.level.Level
    • scheduleUpdate

      public void scheduleUpdate(org.cloudburstmc.api.block.Block block, com.nukkitx.math.vector.Vector3i pos, int delay)
    • scheduleUpdate

      public void scheduleUpdate(BlockUpdate blockUpdate)
    • scheduleUpdate

      public void scheduleUpdate(org.cloudburstmc.api.block.Block block, com.nukkitx.math.vector.Vector3i pos, int delay, int priority)
    • scheduleUpdate

      public void scheduleUpdate(org.cloudburstmc.api.block.Block block, com.nukkitx.math.vector.Vector3i pos, int delay, int priority, boolean checkArea)
    • cancelScheduledUpdate

      public boolean cancelScheduledUpdate(com.nukkitx.math.vector.Vector3i pos)
      Specified by:
      cancelScheduledUpdate in interface org.cloudburstmc.api.level.Level
    • isUpdateScheduled

      public boolean isUpdateScheduled(com.nukkitx.math.vector.Vector3i pos)
      Specified by:
      isUpdateScheduled in interface org.cloudburstmc.api.level.Level
    • getPendingBlockUpdates

      public Set<BlockUpdateEntry> getPendingBlockUpdates(CloudChunk chunk)
    • getPendingBlockUpdates

      public Set<BlockUpdateEntry> getPendingBlockUpdates(org.cloudburstmc.api.util.AxisAlignedBB boundingBox)
    • getCollisionBlocks

      public org.cloudburstmc.api.block.Block[] getCollisionBlocks(org.cloudburstmc.api.util.AxisAlignedBB bb)
      Specified by:
      getCollisionBlocks in interface org.cloudburstmc.api.level.Level
    • getCollisionBlocks

      public org.cloudburstmc.api.block.Block[] getCollisionBlocks(org.cloudburstmc.api.util.AxisAlignedBB bb, boolean targetFirst)
    • isBlockTickPending

      public boolean isBlockTickPending(com.nukkitx.math.vector.Vector3i pos, org.cloudburstmc.api.block.Block block)
    • getCollisionCubes

      public org.cloudburstmc.api.util.AxisAlignedBB[] getCollisionCubes(org.cloudburstmc.api.entity.Entity entity, org.cloudburstmc.api.util.AxisAlignedBB bb)
      Specified by:
      getCollisionCubes in interface org.cloudburstmc.api.level.Level
    • getCollisionCubes

      public org.cloudburstmc.api.util.AxisAlignedBB[] getCollisionCubes(org.cloudburstmc.api.entity.Entity entity, org.cloudburstmc.api.util.AxisAlignedBB bb, boolean entities)
      Specified by:
      getCollisionCubes in interface org.cloudburstmc.api.level.Level
    • getCollisionCubes

      public org.cloudburstmc.api.util.AxisAlignedBB[] getCollisionCubes(org.cloudburstmc.api.entity.Entity entity, org.cloudburstmc.api.util.AxisAlignedBB bb, boolean entities, boolean solidEntities)
      Specified by:
      getCollisionCubes in interface org.cloudburstmc.api.level.Level
    • isFullBlock

      public boolean isFullBlock(com.nukkitx.math.vector.Vector3i pos, org.cloudburstmc.api.block.BlockState state)
    • hasCollision

      public boolean hasCollision(org.cloudburstmc.api.entity.Entity entity, org.cloudburstmc.api.util.AxisAlignedBB bb, boolean entities)
      Specified by:
      hasCollision in interface org.cloudburstmc.api.level.Level
    • calculateSkylightSubtracted

      public int calculateSkylightSubtracted(float tickDiff)
    • calculateCelestialAngle

      public float calculateCelestialAngle(int time, float tickDiff)
    • getMoonPhase

      public int getMoonPhase(long worldTime)
    • getFullLight

      public int getFullLight(com.nukkitx.math.vector.Vector3i pos)
      Specified by:
      getFullLight in interface org.cloudburstmc.api.level.Level
    • getLoadedBlock

      @Nullable public org.cloudburstmc.api.block.Block getLoadedBlock(int x, int y, int z)
      Specified by:
      getLoadedBlock in interface org.cloudburstmc.api.level.ChunkManager
    • getBlock

      @Nonnull public org.cloudburstmc.api.block.Block getBlock(int x, int y, int z)
      Specified by:
      getBlock in interface org.cloudburstmc.api.level.ChunkManager
    • updateBlockSkyLight

      public void updateBlockSkyLight(int x, int y, int z)
    • updateAllLight

      public void updateAllLight(com.nukkitx.math.vector.Vector3f pos)
    • updateBlockLight

      public void updateBlockLight(it.unimi.dsi.fastutil.longs.Long2ObjectMap<it.unimi.dsi.fastutil.shorts.ShortSet> map)
    • addLightUpdate

      public void addLightUpdate(int x, int y, int z)
    • setBlockState

      public boolean setBlockState(int x, int y, int z, int layer, org.cloudburstmc.api.block.BlockState state, boolean direct, boolean update)
      Specified by:
      setBlockState in interface org.cloudburstmc.api.level.ChunkManager
    • dropItem

      @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)
      Specified by:
      dropItem in interface org.cloudburstmc.api.level.Level
    • useBreakOn

      public org.cloudburstmc.api.item.ItemStack useBreakOn(com.nukkitx.math.vector.Vector3i pos)
      Specified by:
      useBreakOn in interface org.cloudburstmc.api.level.Level
    • useBreakOn

      public org.cloudburstmc.api.item.ItemStack useBreakOn(com.nukkitx.math.vector.Vector3i pos, org.cloudburstmc.api.item.ItemStack item)
      Specified by:
      useBreakOn in interface org.cloudburstmc.api.level.Level
    • useBreakOn

      public org.cloudburstmc.api.item.ItemStack useBreakOn(com.nukkitx.math.vector.Vector3i pos, org.cloudburstmc.api.item.ItemStack item, org.cloudburstmc.api.player.Player player)
      Specified by:
      useBreakOn in interface org.cloudburstmc.api.level.Level
    • useBreakOn

      public 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)
      Specified by:
      useBreakOn in interface org.cloudburstmc.api.level.Level
    • useBreakOn

      public 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)
      Specified by:
      useBreakOn in interface org.cloudburstmc.api.level.Level
    • dropExpOrb

      public void dropExpOrb(com.nukkitx.math.vector.Vector3i source, int exp)
    • dropExpOrb

      public void dropExpOrb(com.nukkitx.math.vector.Vector3f source, int exp)
    • dropExpOrb

      public void dropExpOrb(com.nukkitx.math.vector.Vector3f source, int exp, com.nukkitx.math.vector.Vector3f motion)
    • dropExpOrb

      public void dropExpOrb(com.nukkitx.math.vector.Vector3f source, int exp, com.nukkitx.math.vector.Vector3f motion, int delay)
    • useItemOn

      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)
      Specified by:
      useItemOn in interface org.cloudburstmc.api.level.Level
    • useItemOn

      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, org.cloudburstmc.api.player.Player player)
      Specified by:
      useItemOn in interface org.cloudburstmc.api.level.Level
    • useItemOn

      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, org.cloudburstmc.api.player.Player player, boolean playSound)
      Specified by:
      useItemOn in interface org.cloudburstmc.api.level.Level
    • isInSpawnRadius

      public boolean isInSpawnRadius(com.nukkitx.math.vector.Vector3i vector3)
    • getEntity

      public org.cloudburstmc.api.entity.Entity getEntity(long entityId)
      Specified by:
      getEntity in interface org.cloudburstmc.api.level.Level
    • getEntities

      public org.cloudburstmc.api.entity.Entity[] getEntities()
    • getCollidingEntities

      public Set<org.cloudburstmc.api.entity.Entity> getCollidingEntities(org.cloudburstmc.api.util.AxisAlignedBB bb)
      Specified by:
      getCollidingEntities in interface org.cloudburstmc.api.level.Level
    • getCollidingEntities

      public Set<org.cloudburstmc.api.entity.Entity> getCollidingEntities(org.cloudburstmc.api.util.AxisAlignedBB bb, org.cloudburstmc.api.entity.Entity entity)
      Specified by:
      getCollidingEntities in interface org.cloudburstmc.api.level.Level
    • getNearbyEntities

      public Set<org.cloudburstmc.api.entity.Entity> getNearbyEntities(org.cloudburstmc.api.util.AxisAlignedBB bb)
      Specified by:
      getNearbyEntities in interface org.cloudburstmc.api.level.Level
    • getNearbyEntities

      public Set<org.cloudburstmc.api.entity.Entity> getNearbyEntities(org.cloudburstmc.api.util.AxisAlignedBB bb, org.cloudburstmc.api.entity.Entity entity)
      Specified by:
      getNearbyEntities in interface org.cloudburstmc.api.level.Level
    • getNearbyEntities

      public Set<org.cloudburstmc.api.entity.Entity> getNearbyEntities(org.cloudburstmc.api.util.AxisAlignedBB bb, org.cloudburstmc.api.entity.Entity entity, boolean loadChunks)
      Specified by:
      getNearbyEntities in interface org.cloudburstmc.api.level.Level
    • getBlockEntities

      public Set<org.cloudburstmc.api.blockentity.BlockEntity> getBlockEntities()
    • getPlayers

      public Map<Long,​CloudPlayer> getPlayers()
      Specified by:
      getPlayers in interface org.cloudburstmc.api.level.Level
    • getLoaders

      public Map<Integer,​org.cloudburstmc.api.level.ChunkLoader> getLoaders()
    • getBlockEntity

      public org.cloudburstmc.api.blockentity.BlockEntity getBlockEntity(com.nukkitx.math.vector.Vector3i pos)
      Specified by:
      getBlockEntity in interface org.cloudburstmc.api.level.Level
    • getLoadedBlockEntity

      @Nullable public org.cloudburstmc.api.blockentity.BlockEntity getLoadedBlockEntity(com.nukkitx.math.vector.Vector3i pos)
    • getChunkEntities

      @Nonnull public Set<BaseEntity> getChunkEntities(int chunkX, int chunkZ)
    • getLoadedChunkEntities

      @Nonnull public Set<BaseEntity> getLoadedChunkEntities(int chunkX, int chunkZ)
    • getChunkBlockEntities

      @Nonnull public Collection<BaseBlockEntity> getChunkBlockEntities(int chunkX, int chunkZ)
    • getLoadedBlockEntities

      @Nonnull public Collection<BaseBlockEntity> getLoadedBlockEntities(int chunkX, int chunkZ)
    • getBlockState

      public org.cloudburstmc.api.block.BlockState getBlockState(int x, int y, int z, int layer)
      Specified by:
      getBlockState in interface org.cloudburstmc.api.level.ChunkManager
    • getBiomeId

      public int getBiomeId(int x, int z)
      Specified by:
      getBiomeId in interface org.cloudburstmc.api.level.Level
    • setBiomeId

      public void setBiomeId(int x, int z, byte biomeId)
      Specified by:
      setBiomeId in interface org.cloudburstmc.api.level.Level
    • getSkyLightAt

      public int getSkyLightAt(int x, int y, int z)
    • setSkyLightAt

      public void setSkyLightAt(int x, int y, int z, int level)
    • getBlockLightAt

      public int getBlockLightAt(int x, int y, int z)
    • setBlockLightAt

      public void setBlockLightAt(int x, int y, int z, int level)
    • getHighestBlock

      public int getHighestBlock(int x, int z)
      Specified by:
      getHighestBlock in interface org.cloudburstmc.api.level.Level
    • getLoadedChunk

      public CloudChunk getLoadedChunk(long chunkKey)
      Specified by:
      getLoadedChunk in interface org.cloudburstmc.api.level.ChunkManager
    • getLoadedChunk

      public CloudChunk getLoadedChunk(int chunkX, int chunkZ)
      Specified by:
      getLoadedChunk in interface org.cloudburstmc.api.level.ChunkManager
    • getLoadedChunk

      public CloudChunk getLoadedChunk(com.nukkitx.math.vector.Vector3i pos)
      Specified by:
      getLoadedChunk in interface org.cloudburstmc.api.level.ChunkManager
    • getLoadedChunk

      public CloudChunk getLoadedChunk(com.nukkitx.math.vector.Vector3f pos)
      Specified by:
      getLoadedChunk in interface org.cloudburstmc.api.level.ChunkManager
    • getChunks

      @Nonnull public Set<CloudChunk> getChunks()
      Specified by:
      getChunks in interface org.cloudburstmc.api.level.ChunkManager
    • getChunkCount

      public int getChunkCount()
    • getChunk

      public CloudChunk getChunk(com.nukkitx.math.vector.Vector3i pos)
      Specified by:
      getChunk in interface org.cloudburstmc.api.level.ChunkManager
    • getChunk

      public CloudChunk getChunk(com.nukkitx.math.vector.Vector3f pos)
      Specified by:
      getChunk in interface org.cloudburstmc.api.level.ChunkManager
    • getChunk

      public CloudChunk getChunk(long chunkKey)
      Specified by:
      getChunk in interface org.cloudburstmc.api.level.ChunkManager
    • getChunk

      public CloudChunk getChunk(int chunkX, int chunkZ)
      Specified by:
      getChunk in interface org.cloudburstmc.api.level.ChunkManager
    • getChunkFuture

      public CompletableFuture<CloudChunk> getChunkFuture(int chunkX, int chunkZ)
      Specified by:
      getChunkFuture in interface org.cloudburstmc.api.level.ChunkManager
    • getHighestBlockAt

      public int getHighestBlockAt(int x, int z)
    • getMapColorAt

      public org.cloudburstmc.api.util.data.BlockColor getMapColorAt(int x, int z)
    • isChunkLoaded

      public boolean isChunkLoaded(com.nukkitx.math.vector.Vector4i pos)
    • isChunkLoaded

      public boolean isChunkLoaded(com.nukkitx.math.vector.Vector3i pos)
    • isChunkLoaded

      public boolean isChunkLoaded(int x, int z)
    • getSpawnLocation

      public com.nukkitx.math.vector.Vector3f getSpawnLocation()
      Specified by:
      getSpawnLocation in interface org.cloudburstmc.api.level.Level
    • setSpawnLocation

      public void setSpawnLocation(com.nukkitx.math.vector.Vector3f pos)
      Specified by:
      setSpawnLocation in interface org.cloudburstmc.api.level.Level
    • scheduleEntityUpdate

      public void scheduleEntityUpdate(org.cloudburstmc.api.entity.Entity entity)
      Specified by:
      scheduleEntityUpdate in interface org.cloudburstmc.api.level.Level
    • removeEntity

      public void removeEntity(org.cloudburstmc.api.entity.Entity entity)
      Specified by:
      removeEntity in interface org.cloudburstmc.api.level.Level
    • addEntity

      public void addEntity(org.cloudburstmc.api.entity.Entity entity)
      Specified by:
      addEntity in interface org.cloudburstmc.api.level.Level
    • addBlockEntity

      public void addBlockEntity(org.cloudburstmc.api.blockentity.BlockEntity blockEntity)
    • scheduleBlockEntityUpdate

      public void scheduleBlockEntityUpdate(org.cloudburstmc.api.blockentity.BlockEntity entity)
    • removeBlockEntity

      public void removeBlockEntity(org.cloudburstmc.api.blockentity.BlockEntity entity)
    • isSpawnChunk

      public boolean isSpawnChunk(int x, int z)
    • getSafeSpawn

      public org.cloudburstmc.api.level.Location getSafeSpawn()
    • getSafeSpawn

      public org.cloudburstmc.api.level.Location getSafeSpawn(org.cloudburstmc.api.level.Location pos)
    • getTime

      public int getTime()
      Specified by:
      getTime in interface org.cloudburstmc.api.level.Level
    • isDaytime

      public boolean isDaytime()
    • setTime

      public void setTime(int time)
      Specified by:
      setTime in interface org.cloudburstmc.api.level.Level
    • getCurrentTick

      public long getCurrentTick()
      Specified by:
      getCurrentTick in interface org.cloudburstmc.api.level.Level
    • getName

      public String getName()
      Specified by:
      getName in interface org.cloudburstmc.api.level.Level
    • stopTime

      public void stopTime()
      Specified by:
      stopTime in interface org.cloudburstmc.api.level.Level
    • startTime

      public void startTime()
      Specified by:
      startTime in interface org.cloudburstmc.api.level.Level
    • getSeed

      public long getSeed()
      Specified by:
      getSeed in interface org.cloudburstmc.api.level.ChunkManager
      Specified by:
      getSeed in interface org.cloudburstmc.api.level.Level
    • setSeed

      public void setSeed(long seed)
      Specified by:
      setSeed in interface org.cloudburstmc.api.level.Level
    • doChunkGarbageCollection

      public void doChunkGarbageCollection()
    • addEntityMovement

      public void addEntityMovement(org.cloudburstmc.api.entity.Entity entity, double x, double y, double z, double yaw, double pitch, double headYaw)
      Specified by:
      addEntityMovement in interface org.cloudburstmc.api.level.Level
    • isRaining

      public boolean isRaining()
      Specified by:
      isRaining in interface org.cloudburstmc.api.level.Level
    • setRaining

      public boolean setRaining(boolean raining)
      Specified by:
      setRaining in interface org.cloudburstmc.api.level.Level
    • getRainTime

      public int getRainTime()
      Specified by:
      getRainTime in interface org.cloudburstmc.api.level.Level
    • setRainTime

      public void setRainTime(int rainTime)
      Specified by:
      setRainTime in interface org.cloudburstmc.api.level.Level
    • isThundering

      public boolean isThundering()
      Specified by:
      isThundering in interface org.cloudburstmc.api.level.Level
    • setThundering

      public boolean setThundering(boolean thundering)
      Specified by:
      setThundering in interface org.cloudburstmc.api.level.Level
    • getThunderTime

      public int getThunderTime()
      Specified by:
      getThunderTime in interface org.cloudburstmc.api.level.Level
    • setThunderTime

      public void setThunderTime(int thunderTime)
      Specified by:
      setThunderTime in interface org.cloudburstmc.api.level.Level
    • sendWeather

      public void sendWeather(org.cloudburstmc.api.player.Player[] toSend)
      Specified by:
      sendWeather in interface org.cloudburstmc.api.level.Level
    • sendWeather

      public void sendWeather(org.cloudburstmc.api.player.Player player)
    • sendWeather

      public void sendWeather(Collection<org.cloudburstmc.api.player.Player> players)
    • getDimension

      public int getDimension()
    • canBlockSeeSky

      public boolean canBlockSeeSky(com.nukkitx.math.vector.Vector3f pos)
    • canBlockSeeSky

      public boolean canBlockSeeSky(com.nukkitx.math.vector.Vector3i pos)
      Specified by:
      canBlockSeeSky in interface org.cloudburstmc.api.level.Level
    • canBlockSeeSky

      public boolean canBlockSeeSky(int x, int y, int z)
    • getStrongPower

      public int getStrongPower(com.nukkitx.math.vector.Vector3i pos, org.cloudburstmc.api.util.Direction direction)
    • getStrongPower

      public int getStrongPower(com.nukkitx.math.vector.Vector3i pos)
    • isSidePowered

      public boolean isSidePowered(com.nukkitx.math.vector.Vector3i pos, org.cloudburstmc.api.util.Direction face)
    • getRedstonePower

      public int getRedstonePower(com.nukkitx.math.vector.Vector3i pos, org.cloudburstmc.api.util.Direction face)
    • isBlockPowered

      public boolean isBlockPowered(com.nukkitx.math.vector.Vector3i pos)
    • isBlockIndirectlyGettingPowered

      public int isBlockIndirectlyGettingPowered(com.nukkitx.math.vector.Vector3i pos)
    • isAreaLoaded

      public boolean isAreaLoaded(org.cloudburstmc.api.util.AxisAlignedBB bb)
    • getUpdateLCG

      public int getUpdateLCG()
    • getGenerator

      public Generator getGenerator()
    • toString

      public String toString()
      Overrides:
      toString in class Object