BlockPos

data class BlockPos(val world: World, val x: Int, val y: Int, val z: Int)

Constructors

Link copied to clipboard
constructor(world: World, x: Int, y: Int, z: Int)

Properties

Link copied to clipboard
Link copied to clipboard
val block: Block
Link copied to clipboard
val blockState: BlockState
Link copied to clipboard
Link copied to clipboard
val BlockPos.chunkSection: LevelChunkSection
Link copied to clipboard
val location: Location
Link copied to clipboard
val nmsBlockEntity: BlockEntity?
Link copied to clipboard
val nmsBlockState: BlockState
Link copied to clipboard
val nmsPos: BlockPos
Link copied to clipboard
Link copied to clipboard
val vector3i: Vector3i
Link copied to clipboard
val world: World
Link copied to clipboard
val x: Int
Link copied to clipboard
val y: Int
Link copied to clipboard
val z: Int

Functions

Link copied to clipboard
fun add(x: Int, y: Int, z: Int): BlockPos
Link copied to clipboard
fun advance(face: BlockFace, step: Int = 1): BlockPos
Link copied to clipboard
fun BlockPos.getBlockState(): BlockState
Link copied to clipboard
fun playSound(sound: String, volume: Float, pitch: Float)
fun playSound(sound: Sound, volume: Float, pitch: Float)
fun playSound(sound: String, category: SoundCategory, volume: Float, pitch: Float)
Link copied to clipboard
fun BlockPos.setBlockState(state: BlockState)
Link copied to clipboard
fun BlockPos.setBlockStateNoUpdate(state: BlockState)
Link copied to clipboard
fun BlockPos.setBlockStateSilently(state: BlockState)
Link copied to clipboard
open override fun toString(): String