Class CloudBlock

java.lang.Object
org.cloudburstmc.server.block.CloudBlockSnapshot
org.cloudburstmc.server.block.CloudBlock
All Implemented Interfaces:
org.cloudburstmc.api.block.Block, org.cloudburstmc.api.block.BlockSnapshot

public class CloudBlock extends CloudBlockSnapshot implements org.cloudburstmc.api.block.Block
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static org.cloudburstmc.api.block.BlockState[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CloudBlock​(CloudLevel level, com.nukkitx.math.vector.Vector3i position, org.cloudburstmc.api.block.BlockState[] states)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    com.nukkitx.math.vector.Vector3i
     
    org.cloudburstmc.api.block.Block
    getRelative​(int x, int y, int z)
     
    org.cloudburstmc.api.block.BlockState
    getRelativeState​(int x, int y, int z, int layer)
     
    org.cloudburstmc.api.block.Block
    getSide​(org.cloudburstmc.api.util.Direction face, int step)
     
    org.cloudburstmc.api.block.BlockState
    getSideState​(org.cloudburstmc.api.util.Direction face, int step, int layer)
     
    boolean
     
    org.cloudburstmc.api.block.Block
     
    void
    set​(org.cloudburstmc.api.block.BlockState state, int layer, boolean direct, boolean update)
     
    org.cloudburstmc.api.block.BlockSnapshot
     

    Methods inherited from class org.cloudburstmc.server.block.CloudBlockSnapshot

    getState

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.cloudburstmc.api.block.Block

    down, down, downState, downState, east, east, eastState, eastState, getRelative, getRelativeState, getRelativeState, getRelativeState, getRelativeState, getSide, getSideState, getSideState, getX, getY, getZ, north, north, northState, northState, set, set, set, setExtra, setExtra, setExtra, south, south, southState, southState, up, up, upState, upState, west, west, westState, westState

    Methods inherited from interface org.cloudburstmc.api.block.BlockSnapshot

    getExtra, getLiquid, getLiquidLayer, getState, getState
  • Field Details

    • EMPTY

      public static org.cloudburstmc.api.block.BlockState[] EMPTY
  • Constructor Details

    • CloudBlock

      public CloudBlock(CloudLevel level, com.nukkitx.math.vector.Vector3i position, org.cloudburstmc.api.block.BlockState[] states)
  • Method Details

    • getLevel

      public CloudLevel getLevel()
      Specified by:
      getLevel in interface org.cloudburstmc.api.block.Block
    • getPosition

      public com.nukkitx.math.vector.Vector3i getPosition()
      Specified by:
      getPosition in interface org.cloudburstmc.api.block.Block
    • getChunk

      public CloudChunk getChunk()
      Specified by:
      getChunk in interface org.cloudburstmc.api.block.Block
    • getSide

      public org.cloudburstmc.api.block.Block getSide(org.cloudburstmc.api.util.Direction face, int step)
      Specified by:
      getSide in interface org.cloudburstmc.api.block.Block
    • getRelativeState

      public org.cloudburstmc.api.block.BlockState getRelativeState(int x, int y, int z, int layer)
      Specified by:
      getRelativeState in interface org.cloudburstmc.api.block.Block
    • getSideState

      public org.cloudburstmc.api.block.BlockState getSideState(org.cloudburstmc.api.util.Direction face, int step, int layer)
      Specified by:
      getSideState in interface org.cloudburstmc.api.block.Block
    • getRelative

      public org.cloudburstmc.api.block.Block getRelative(int x, int y, int z)
      Specified by:
      getRelative in interface org.cloudburstmc.api.block.Block
    • isWaterlogged

      public boolean isWaterlogged()
      Specified by:
      isWaterlogged in interface org.cloudburstmc.api.block.Block
    • set

      public void set(org.cloudburstmc.api.block.BlockState state, int layer, boolean direct, boolean update)
      Specified by:
      set in interface org.cloudburstmc.api.block.Block
    • snapshot

      public org.cloudburstmc.api.block.BlockSnapshot snapshot()
      Specified by:
      snapshot in interface org.cloudburstmc.api.block.Block
    • refresh

      public org.cloudburstmc.api.block.Block refresh()
      Specified by:
      refresh in interface org.cloudburstmc.api.block.Block