Package org.quiltmc.qkl.wrapper.qsl.blocks
Types
Link copied to clipboard
typealias EntityTest = (state: BlockState, world: BlockView, pos: BlockPos, entity: EntityType<*>) -> Boolean
Content copied to clipboard
Functions
Link copied to clipboard
fun blockSettingsOf( material: Material, color: MapColor = material.color, isCollidable: Boolean = true, soundGroup: BlockSoundGroup = BlockSoundGroup.STONE, luminance: Int = 0, luminanceFunction: (BlockState) -> Int? = null, resistance: Float = 0.0f, hardness: Float? = null, requiresTool: Boolean = false, ticksRandomly: Boolean = false, slipperiness: Float = 0.6f, velocityMultiplier: Float = 1.0f, jumpVelocityMultiplier: Float = 1.0f, lootTableId: Any? = null, isOpaque: Boolean = true, isAir: Boolean = false, spawnCheck: EntityTest? = null, isSolid: BlockTest? = null, causesSuffocation: BlockTest? = null, blocksVision: BlockTest? = null, shouldPostProcess: BlockTest? = null, isEmissive: BlockTest? = null): AbstractBlock.Settings
Content copied to clipboard
Create a new AbstractBlock.Settings with the given settings.
Link copied to clipboard
fun buildBlockSettings( material: Material, color: MapColor, block: QuiltBlockSettings.() -> Unit): AbstractBlock.Settings
Content copied to clipboard
Build a Block settings object with the given material and color, using builder-style syntax.
Link copied to clipboard
Link copied to clipboard
fun materialOf( color: MapColor, pistonBehavior: PistonBehavior = PistonBehavior.NORMAL, blocksMovement: Boolean = true, isBurnable: Boolean = false, isLiquid: Boolean = false, isReplaceable: Boolean = false, isSolid: Boolean = true, isOpaque: Boolean = true): Material
Content copied to clipboard
Create a Material with the given settings.