Skip to content

ABlockStateProvider

abstract class ABlockStateProvider(
    val output: PackOutput, 
    val mod: Mod, 
    val exitOnError: Boolean
) : IADataProvider

Constructors

ABlockStateProvider

constructor(
    output: PackOutput, 
    mod: Mod, 
    exitOnError: Boolean
)

Types

Companion

object Companion

ConfiguredModelList

Properties

exitOnError

override val exitOnError: Boolean

mod

override val mod: Mod

name

open override val name: String

output

override val output: PackOutput

Functions

axisBlock

@JvmOverloads
fun axisBlock(block: RotatedPillarBlock, baseName: ResourceLocation = blockTexture(block))
fun axisBlock(
    block: RotatedPillarBlock, 
    side: ResourceLocation, 
    end: ResourceLocation
)
fun axisBlock(
    block: RotatedPillarBlock, 
    vertical: AModelFile, 
    horizontal: AModelFile
)

axisBlockWithRenderType

fun axisBlockWithRenderType(block: RotatedPillarBlock, renderType: String)
fun axisBlockWithRenderType(
    block: RotatedPillarBlock, 
    baseName: ResourceLocation, 
    renderType: String
)
fun axisBlockWithRenderType(
    block: RotatedPillarBlock, 
    side: ResourceLocation, 
    end: ResourceLocation, 
    renderType: String
)
fun axisBlockWithRenderType(block: RotatedPillarBlock, renderType: ResourceLocation)
fun axisBlockWithRenderType(
    block: RotatedPillarBlock, 
    baseName: ResourceLocation, 
    renderType: ResourceLocation
)
fun axisBlockWithRenderType(
    block: RotatedPillarBlock, 
    side: ResourceLocation, 
    end: ResourceLocation, 
    renderType: ResourceLocation
)

blockModels

blockTexture

fun blockTexture(block: Block): ResourceLocation

buttonBlock

fun buttonBlock(block: ButtonBlock, texture: ResourceLocation)
fun buttonBlock(
    block: ButtonBlock, 
    button: AModelFile, 
    buttonPressed: AModelFile
)

cubeAll

fun cubeAll(block: Block): AModelFile

directionalBlock

@JvmOverloads
fun directionalBlock(
    block: Block, 
    model: AModelFile, 
    angleOffset: Int = DEFAULT_ANGLE_OFFSET
)
@JvmOverloads
fun directionalBlock(
    block: Block, 
    modelFunc: Function<BlockState, AModelFile>, 
    angleOffset: Int = DEFAULT_ANGLE_OFFSET
)

doorBlock

fun doorBlock(
    block: DoorBlock, 
    bottom: ResourceLocation, 
    top: ResourceLocation
)
fun doorBlock(
    block: DoorBlock, 
    name: String, 
    bottom: ResourceLocation, 
    top: ResourceLocation
)
fun doorBlock(
    block: DoorBlock, 
    bottomLeft: AModelFile, 
    bottomLeftOpen: AModelFile, 
    bottomRight: AModelFile, 
    bottomRightOpen: AModelFile, 
    topLeft: AModelFile, 
    topLeftOpen: AModelFile, 
    topRight: AModelFile, 
    topRightOpen: AModelFile
)

doorBlockWithRenderType

fun doorBlockWithRenderType(
    block: DoorBlock, 
    bottom: ResourceLocation, 
    top: ResourceLocation, 
    renderType: String
)
fun doorBlockWithRenderType(
    block: DoorBlock, 
    name: String, 
    bottom: ResourceLocation, 
    top: ResourceLocation, 
    renderType: String
)
fun doorBlockWithRenderType(
    block: DoorBlock, 
    bottom: ResourceLocation, 
    top: ResourceLocation, 
    renderType: ResourceLocation
)
fun doorBlockWithRenderType(
    block: DoorBlock, 
    name: String, 
    bottom: ResourceLocation, 
    top: ResourceLocation, 
    renderType: ResourceLocation
)

fenceBlock

fun fenceBlock(block: FenceBlock, texture: ResourceLocation)
fun fenceBlock(
    block: FenceBlock, 
    name: String, 
    texture: ResourceLocation
)

fenceBlockWithRenderType

fun fenceBlockWithRenderType(
    block: FenceBlock, 
    texture: ResourceLocation, 
    renderType: String
)
fun fenceBlockWithRenderType(
    block: FenceBlock, 
    name: String, 
    texture: ResourceLocation, 
    renderType: String
)
fun fenceBlockWithRenderType(
    block: FenceBlock, 
    texture: ResourceLocation, 
    renderType: ResourceLocation
)
fun fenceBlockWithRenderType(
    block: FenceBlock, 
    name: String, 
    texture: ResourceLocation, 
    renderType: ResourceLocation
)

fenceGateBlock

fun fenceGateBlock(block: FenceGateBlock, texture: ResourceLocation)
fun fenceGateBlock(
    block: FenceGateBlock, 
    name: String, 
    texture: ResourceLocation
)
fun fenceGateBlock(
    block: FenceGateBlock, 
    gate: AModelFile, 
    gateOpen: AModelFile, 
    gateWall: AModelFile, 
    gateWallOpen: AModelFile
)

fenceGateBlockWithRenderType

fun fenceGateBlockWithRenderType(
    block: FenceGateBlock, 
    texture: ResourceLocation, 
    renderType: String
)
fun fenceGateBlockWithRenderType(
    block: FenceGateBlock, 
    name: String, 
    texture: ResourceLocation, 
    renderType: String
)
fun fenceGateBlockWithRenderType(
    block: FenceGateBlock, 
    texture: ResourceLocation, 
    renderType: ResourceLocation
)
fun fenceGateBlockWithRenderType(
    block: FenceGateBlock, 
    name: String, 
    texture: ResourceLocation, 
    renderType: ResourceLocation
)

format

open fun format(name: String): String

fourWayBlock

fun fourWayBlock(
    block: CrossCollisionBlock, 
    post: AModelFile, 
    side: AModelFile
)

fourWayMultipart

getMultipartBuilder

getName

open override fun getName(): String

getVariantBuilder

horizontalBlock

fun horizontalBlock(
    block: Block, 
    side: ResourceLocation, 
    front: ResourceLocation, 
    top: ResourceLocation
)
@JvmOverloads
fun horizontalBlock(
    block: Block, 
    model: AModelFile, 
    angleOffset: Int = DEFAULT_ANGLE_OFFSET
)
@JvmOverloads
fun horizontalBlock(
    block: Block, 
    modelFunc: Function<BlockState, AModelFile>, 
    angleOffset: Int = DEFAULT_ANGLE_OFFSET
)

horizontalFaceBlock

@JvmOverloads
fun horizontalFaceBlock(
    block: Block, 
    model: AModelFile, 
    angleOffset: Int = DEFAULT_ANGLE_OFFSET
)
@JvmOverloads
fun horizontalFaceBlock(
    block: Block, 
    modelFunc: Function<BlockState, AModelFile>, 
    angleOffset: Int = DEFAULT_ANGLE_OFFSET
)

itemModels

logBlock

fun logBlock(block: RotatedPillarBlock)

logBlockWithRenderType

fun logBlockWithRenderType(block: RotatedPillarBlock, renderType: String)
fun logBlockWithRenderType(block: RotatedPillarBlock, renderType: ResourceLocation)

mcLoc

open fun mcLoc(name: String): ResourceLocation

modLoc

open fun modLoc(name: String): ResourceLocation

paneBlock

fun paneBlock(
    block: IronBarsBlock, 
    pane: ResourceLocation, 
    edge: ResourceLocation
)
fun paneBlock(
    block: IronBarsBlock, 
    name: String, 
    pane: ResourceLocation, 
    edge: ResourceLocation
)
fun paneBlock(
    block: IronBarsBlock, 
    post: AModelFile, 
    side: AModelFile, 
    sideAlt: AModelFile, 
    noSide: AModelFile, 
    noSideAlt: AModelFile
)

paneBlockWithRenderType

fun paneBlockWithRenderType(
    block: IronBarsBlock, 
    pane: ResourceLocation, 
    edge: ResourceLocation, 
    renderType: String
)
fun paneBlockWithRenderType(
    block: IronBarsBlock, 
    name: String, 
    pane: ResourceLocation, 
    edge: ResourceLocation, 
    renderType: String
)
fun paneBlockWithRenderType(
    block: IronBarsBlock, 
    pane: ResourceLocation, 
    edge: ResourceLocation, 
    renderType: ResourceLocation
)
fun paneBlockWithRenderType(
    block: IronBarsBlock, 
    name: String, 
    pane: ResourceLocation, 
    edge: ResourceLocation, 
    renderType: ResourceLocation
)

pressurePlateBlock

fun pressurePlateBlock(block: PressurePlateBlock, texture: ResourceLocation)
fun pressurePlateBlock(
    block: PressurePlateBlock, 
    pressurePlate: AModelFile, 
    pressurePlateDown: AModelFile
)

run

open override fun run(cache: CachedOutput): CompletableFuture<*>

signBlock

fun signBlock(
    signBlock: StandingSignBlock, 
    wallSignBlock: WallSignBlock, 
    texture: ResourceLocation
)
fun signBlock(
    signBlock: StandingSignBlock, 
    wallSignBlock: WallSignBlock, 
    sign: AModelFile
)

simpleBlock

fun simpleBlock(block: Block, expander: Function<AModelFile, Array<AConfiguredModel>>)
@JvmOverloads
fun simpleBlock(block: Block, model: AModelFile = cubeAll(block))
fun simpleBlock(block: Block, vararg models: AConfiguredModel)

simpleBlockItem

fun simpleBlockItem(block: Block, model: AModelFile)

simpleBlockWithItem

fun simpleBlockWithItem(block: Block, model: AModelFile = cubeAll(block))

slabBlock

fun slabBlock(
    block: SlabBlock, 
    doubleslab: ResourceLocation, 
    texture: ResourceLocation
)
fun slabBlock(
    block: SlabBlock, 
    doubleslab: ResourceLocation, 
    side: ResourceLocation, 
    bottom: ResourceLocation, 
    top: ResourceLocation
)
fun slabBlock(
    block: SlabBlock, 
    bottom: AModelFile, 
    top: AModelFile, 
    doubleslab: AModelFile
)

stairsBlock

fun stairsBlock(block: StairBlock, texture: ResourceLocation)
fun stairsBlock(
    block: StairBlock, 
    name: String, 
    texture: ResourceLocation
)
fun stairsBlock(
    block: StairBlock, 
    side: ResourceLocation, 
    bottom: ResourceLocation, 
    top: ResourceLocation
)
fun stairsBlock(
    block: StairBlock, 
    name: String, 
    side: ResourceLocation, 
    bottom: ResourceLocation, 
    top: ResourceLocation
)
fun stairsBlock(
    block: StairBlock, 
    stairs: AModelFile, 
    stairsInner: AModelFile, 
    stairsOuter: AModelFile
)

stairsBlockWithRenderType

fun stairsBlockWithRenderType(
    block: StairBlock, 
    texture: ResourceLocation, 
    renderType: String
)
fun stairsBlockWithRenderType(
    block: StairBlock, 
    name: String, 
    texture: ResourceLocation, 
    renderType: String
)
fun stairsBlockWithRenderType(
    block: StairBlock, 
    side: ResourceLocation, 
    bottom: ResourceLocation, 
    top: ResourceLocation, 
    renderType: String
)
fun stairsBlockWithRenderType(
    block: StairBlock, 
    name: String, 
    side: ResourceLocation, 
    bottom: ResourceLocation, 
    top: ResourceLocation, 
    renderType: String
)
fun stairsBlockWithRenderType(
    block: StairBlock, 
    texture: ResourceLocation, 
    renderType: ResourceLocation
)
fun stairsBlockWithRenderType(
    block: StairBlock, 
    name: String, 
    texture: ResourceLocation, 
    renderType: ResourceLocation
)
fun stairsBlockWithRenderType(
    block: StairBlock, 
    side: ResourceLocation, 
    bottom: ResourceLocation, 
    top: ResourceLocation, 
    renderType: ResourceLocation
)
fun stairsBlockWithRenderType(
    block: StairBlock, 
    name: String, 
    side: ResourceLocation, 
    bottom: ResourceLocation, 
    top: ResourceLocation, 
    renderType: ResourceLocation
)

trapdoorBlock

fun trapdoorBlock(
    block: TrapDoorBlock, 
    texture: ResourceLocation, 
    orientable: Boolean
)
fun trapdoorBlock(
    block: TrapDoorBlock, 
    name: String, 
    texture: ResourceLocation, 
    orientable: Boolean
)
fun trapdoorBlock(
    block: TrapDoorBlock, 
    bottom: AModelFile, 
    top: AModelFile, 
    open: AModelFile, 
    orientable: Boolean
)

trapdoorBlockWithRenderType

fun trapdoorBlockWithRenderType(
    block: TrapDoorBlock, 
    texture: ResourceLocation, 
    orientable: Boolean, 
    renderType: String
)
fun trapdoorBlockWithRenderType(
    block: TrapDoorBlock, 
    name: String, 
    texture: ResourceLocation, 
    orientable: Boolean, 
    renderType: String
)
fun trapdoorBlockWithRenderType(
    block: TrapDoorBlock, 
    texture: ResourceLocation, 
    orientable: Boolean, 
    renderType: ResourceLocation
)
fun trapdoorBlockWithRenderType(
    block: TrapDoorBlock, 
    name: String, 
    texture: ResourceLocation, 
    orientable: Boolean, 
    renderType: ResourceLocation
)

wallBlock

fun wallBlock(block: WallBlock, texture: ResourceLocation)
fun wallBlock(
    block: WallBlock, 
    name: String, 
    texture: ResourceLocation
)
fun wallBlock(
    block: WallBlock, 
    post: AModelFile, 
    side: AModelFile, 
    sideTall: AModelFile
)

wallBlockWithRenderType

fun wallBlockWithRenderType(
    block: WallBlock, 
    texture: ResourceLocation, 
    renderType: String
)
fun wallBlockWithRenderType(
    block: WallBlock, 
    name: String, 
    texture: ResourceLocation, 
    renderType: String
)
fun wallBlockWithRenderType(
    block: WallBlock, 
    texture: ResourceLocation, 
    renderType: ResourceLocation
)
fun wallBlockWithRenderType(
    block: WallBlock, 
    name: String, 
    texture: ResourceLocation, 
    renderType: ResourceLocation
)