mirror of
https://github.com/naalit/slotlink.git
synced 2025-12-31 04:13:02 +00:00
27 lines
729 B
Kotlin
27 lines
729 B
Kotlin
package badasintended.slotlink.block
|
|
|
|
import badasintended.slotlink.util.modId
|
|
import net.fabricmc.fabric.api.`object`.builder.v1.block.FabricBlockSettings
|
|
import net.minecraft.block.BlockRenderType
|
|
import net.minecraft.block.BlockState
|
|
import net.minecraft.block.BlockWithEntity
|
|
import net.minecraft.block.Material
|
|
|
|
abstract class ModBlock(id: String, settings: Settings = SETTINGS) : BlockWithEntity(settings) {
|
|
|
|
companion object {
|
|
|
|
val SETTINGS: Settings = FabricBlockSettings
|
|
.of(Material.STONE)
|
|
.breakByHand(true)
|
|
.hardness(5f)
|
|
|
|
}
|
|
|
|
val id = modId(id)
|
|
|
|
override fun getRenderType(state: BlockState?): BlockRenderType {
|
|
return BlockRenderType.MODEL
|
|
}
|
|
|
|
}
|