Skip to content

commonnet.kernelpanicsoft.archie.data.client.modelABlockModelProvider

ABlockModelProvider


abstract class ABlockModelProvider(output: PackOutput, mod: Mod, exitOnError: Boolean) : AModelProvider<ABlockModelBuilder> 

Constructors

ABlockModelProvider

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

Properties

exitOnError


override val exitOnError: Boolean

generatedModels


@VisibleForTestingval generatedModels: MutableMap<ResourceLocation, ABlockModelBuilder>

mod


override val mod: Mod

output


override val output: PackOutput

Functions

button


fun button(name: String, texture: ResourceLocation): ABlockModelBuilder

buttonInventory


fun buttonInventory(name: String, texture: ResourceLocation): ABlockModelBuilder

buttonPressed


fun buttonPressed(name: String, texture: ResourceLocation): ABlockModelBuilder

carpet


fun carpet(name: String, wool: ResourceLocation): ABlockModelBuilder

clear


fun clear()

crop


fun crop(name: String, crop: ResourceLocation): ABlockModelBuilder

cross


fun cross(name: String, cross: ResourceLocation): ABlockModelBuilder

cube


fun cube(name: String, down: ResourceLocation, up: ResourceLocation, north: ResourceLocation, south: ResourceLocation, east: ResourceLocation, west: ResourceLocation): ABlockModelBuilder

cubeAll


fun cubeAll(name: String, texture: ResourceLocation): ABlockModelBuilder

cubeBottomTop


fun cubeBottomTop(name: String, side: ResourceLocation, bottom: ResourceLocation, top: ResourceLocation): ABlockModelBuilder

cubeColumn


fun cubeColumn(name: String, side: ResourceLocation, end: ResourceLocation): ABlockModelBuilder

cubeColumnHorizontal


fun cubeColumnHorizontal(name: String, side: ResourceLocation, end: ResourceLocation): ABlockModelBuilder

cubeTop


fun cubeTop(name: String, side: ResourceLocation, top: ResourceLocation): ABlockModelBuilder

doorBottomLeft


fun doorBottomLeft(name: String, bottom: ResourceLocation, top: ResourceLocation): ABlockModelBuilder

doorBottomLeftOpen


fun doorBottomLeftOpen(name: String, bottom: ResourceLocation, top: ResourceLocation): ABlockModelBuilder

doorBottomRight


fun doorBottomRight(name: String, bottom: ResourceLocation, top: ResourceLocation): ABlockModelBuilder

doorBottomRightOpen


fun doorBottomRightOpen(name: String, bottom: ResourceLocation, top: ResourceLocation): ABlockModelBuilder

doorTopLeft


fun doorTopLeft(name: String, bottom: ResourceLocation, top: ResourceLocation): ABlockModelBuilder

doorTopLeftOpen


fun doorTopLeftOpen(name: String, bottom: ResourceLocation, top: ResourceLocation): ABlockModelBuilder

doorTopRight


fun doorTopRight(name: String, bottom: ResourceLocation, top: ResourceLocation): ABlockModelBuilder

doorTopRightOpen


fun doorTopRightOpen(name: String, bottom: ResourceLocation, top: ResourceLocation): ABlockModelBuilder

fenceGate


fun fenceGate(name: String, texture: ResourceLocation): ABlockModelBuilder

fenceGateOpen


fun fenceGateOpen(name: String, texture: ResourceLocation): ABlockModelBuilder

fenceGateWall


fun fenceGateWall(name: String, texture: ResourceLocation): ABlockModelBuilder

fenceGateWallOpen


fun fenceGateWallOpen(name: String, texture: ResourceLocation): ABlockModelBuilder

fenceInventory


fun fenceInventory(name: String, texture: ResourceLocation): ABlockModelBuilder

fencePost


fun fencePost(name: String, texture: ResourceLocation): ABlockModelBuilder

fenceSide


fun fenceSide(name: String, texture: ResourceLocation): ABlockModelBuilder

format


open fun format(name: String): String

generateAll


fun generateAll(cache: CachedOutput): CompletableFuture<*>

getBuilder


getExistingFile


fun getExistingFile(path: ResourceLocation): AModelFile

getName


open override fun getName(): String

mcLoc


open fun mcLoc(name: String): ResourceLocation

modLoc


open fun modLoc(name: String): ResourceLocation

nested


{@return a model builder that's not directly saved to disk. Meant for use in custom model loaders.}

orientable


fun orientable(name: String, side: ResourceLocation, front: ResourceLocation, top: ResourceLocation): ABlockModelBuilder

orientableVertical


fun orientableVertical(name: String, side: ResourceLocation, front: ResourceLocation): ABlockModelBuilder

orientableWithBottom


fun orientableWithBottom(name: String, side: ResourceLocation, front: ResourceLocation, bottom: ResourceLocation, top: ResourceLocation): ABlockModelBuilder

paneNoSide


fun paneNoSide(name: String, pane: ResourceLocation): ABlockModelBuilder

paneNoSideAlt


fun paneNoSideAlt(name: String, pane: ResourceLocation): ABlockModelBuilder

panePost


fun panePost(name: String, pane: ResourceLocation, edge: ResourceLocation): ABlockModelBuilder

paneSide


fun paneSide(name: String, pane: ResourceLocation, edge: ResourceLocation): ABlockModelBuilder

paneSideAlt


fun paneSideAlt(name: String, pane: ResourceLocation, edge: ResourceLocation): ABlockModelBuilder

pressurePlate


fun pressurePlate(name: String, texture: ResourceLocation): ABlockModelBuilder

pressurePlateDown


fun pressurePlateDown(name: String, texture: ResourceLocation): ABlockModelBuilder

run


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

sign


fun sign(name: String, texture: ResourceLocation): ABlockModelBuilder

singleTexture


fun singleTexture(name: String, parent: ResourceLocation, texture: ResourceLocation): ABlockModelBuilder

fun singleTexture(name: String, parent: ResourceLocation, textureKey: String, texture: ResourceLocation): ABlockModelBuilder

slab


fun slab(name: String, side: ResourceLocation, bottom: ResourceLocation, top: ResourceLocation): ABlockModelBuilder

slabTop


fun slabTop(name: String, side: ResourceLocation, bottom: ResourceLocation, top: ResourceLocation): ABlockModelBuilder

stairs


fun stairs(name: String, side: ResourceLocation, bottom: ResourceLocation, top: ResourceLocation): ABlockModelBuilder

stairsInner


fun stairsInner(name: String, side: ResourceLocation, bottom: ResourceLocation, top: ResourceLocation): ABlockModelBuilder

stairsOuter


fun stairsOuter(name: String, side: ResourceLocation, bottom: ResourceLocation, top: ResourceLocation): ABlockModelBuilder

torch


fun torch(name: String, torch: ResourceLocation): ABlockModelBuilder

torchWall


fun torchWall(name: String, torch: ResourceLocation): ABlockModelBuilder

trapdoorBottom


fun trapdoorBottom(name: String, texture: ResourceLocation): ABlockModelBuilder

trapdoorOpen


fun trapdoorOpen(name: String, texture: ResourceLocation): ABlockModelBuilder

trapdoorOrientableBottom


fun trapdoorOrientableBottom(name: String, texture: ResourceLocation): ABlockModelBuilder

trapdoorOrientableOpen


fun trapdoorOrientableOpen(name: String, texture: ResourceLocation): ABlockModelBuilder

trapdoorOrientableTop


fun trapdoorOrientableTop(name: String, texture: ResourceLocation): ABlockModelBuilder

trapdoorTop


fun trapdoorTop(name: String, texture: ResourceLocation): ABlockModelBuilder

wallInventory


fun wallInventory(name: String, wall: ResourceLocation): ABlockModelBuilder

wallPost


fun wallPost(name: String, wall: ResourceLocation): ABlockModelBuilder

wallSide


fun wallSide(name: String, wall: ResourceLocation): ABlockModelBuilder

wallSideTall


fun wallSideTall(name: String, wall: ResourceLocation): ABlockModelBuilder

withExistingParent



fun withExistingParent(name: String, parent: ResourceLocation, block: ABlockModelBuilder.() -> Unit = {}): ABlockModelBuilder