common • net.kernelpanicsoft.archie.data.client.model • AModelProvider
AModelProvider
abstract class AModelProvider<T : AModelBuilder<T>>(val output: PackOutput, val mod: Mod, folder: String, factory: Function<ResourceLocation, T>, val exitOnError: Boolean) : IADataProviderInheritors
Constructors
AModelProvider
constructor(output: PackOutput, mod: Mod, folder: String, factory: Function<ResourceLocation, T>, exitOnError: Boolean)Types
Companion
object CompanionProperties
exitOnError
override val exitOnError: BooleangeneratedModels
@VisibleForTestingval generatedModels: MutableMap<ResourceLocation, T>mod
override val mod: Modoutput
override val output: PackOutputFunctions
button
buttonInventory
fun buttonInventory(name: String, texture: ResourceLocation): TbuttonPressed
fun buttonPressed(name: String, texture: ResourceLocation): Tcarpet
clear
fun clear()crop
cross
cube
fun cube(name: String, down: ResourceLocation, up: ResourceLocation, north: ResourceLocation, south: ResourceLocation, east: ResourceLocation, west: ResourceLocation): TcubeAll
cubeBottomTop
fun cubeBottomTop(name: String, side: ResourceLocation, bottom: ResourceLocation, top: ResourceLocation): TcubeColumn
fun cubeColumn(name: String, side: ResourceLocation, end: ResourceLocation): TcubeColumnHorizontal
fun cubeColumnHorizontal(name: String, side: ResourceLocation, end: ResourceLocation): TcubeTop
doorBottomLeft
fun doorBottomLeft(name: String, bottom: ResourceLocation, top: ResourceLocation): TdoorBottomLeftOpen
fun doorBottomLeftOpen(name: String, bottom: ResourceLocation, top: ResourceLocation): TdoorBottomRight
fun doorBottomRight(name: String, bottom: ResourceLocation, top: ResourceLocation): TdoorBottomRightOpen
fun doorBottomRightOpen(name: String, bottom: ResourceLocation, top: ResourceLocation): TdoorTopLeft
fun doorTopLeft(name: String, bottom: ResourceLocation, top: ResourceLocation): TdoorTopLeftOpen
fun doorTopLeftOpen(name: String, bottom: ResourceLocation, top: ResourceLocation): TdoorTopRight
fun doorTopRight(name: String, bottom: ResourceLocation, top: ResourceLocation): TdoorTopRightOpen
fun doorTopRightOpen(name: String, bottom: ResourceLocation, top: ResourceLocation): TfenceGate
fenceGateOpen
fun fenceGateOpen(name: String, texture: ResourceLocation): TfenceGateWall
fun fenceGateWall(name: String, texture: ResourceLocation): TfenceGateWallOpen
fun fenceGateWallOpen(name: String, texture: ResourceLocation): TfenceInventory
fun fenceInventory(name: String, texture: ResourceLocation): TfencePost
fenceSide
format
generateAll
fun generateAll(cache: CachedOutput): CompletableFuture<*>getBuilder
fun getBuilder(path: String, block: T.() -> Unit = {}): TgetExistingFile
fun getExistingFile(path: ResourceLocation): AModelFilegetName
mcLoc
modLoc
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): TorientableVertical
fun orientableVertical(name: String, side: ResourceLocation, front: ResourceLocation): TorientableWithBottom
fun orientableWithBottom(name: String, side: ResourceLocation, front: ResourceLocation, bottom: ResourceLocation, top: ResourceLocation): TpaneNoSide
fun paneNoSide(name: String, pane: ResourceLocation): TpaneNoSideAlt
fun paneNoSideAlt(name: String, pane: ResourceLocation): TpanePost
paneSide
paneSideAlt
fun paneSideAlt(name: String, pane: ResourceLocation, edge: ResourceLocation): TpressurePlate
fun pressurePlate(name: String, texture: ResourceLocation): TpressurePlateDown
fun pressurePlateDown(name: String, texture: ResourceLocation): Trun
open override fun run(cache: CachedOutput): CompletableFuture<*>sign
singleTexture
fun singleTexture(name: String, parent: ResourceLocation, texture: ResourceLocation): Tfun singleTexture(name: String, parent: ResourceLocation, textureKey: String, texture: ResourceLocation): Tslab
slabTop
fun slabTop(name: String, side: ResourceLocation, bottom: ResourceLocation, top: ResourceLocation): Tstairs
fun stairs(name: String, side: ResourceLocation, bottom: ResourceLocation, top: ResourceLocation): TstairsInner
fun stairsInner(name: String, side: ResourceLocation, bottom: ResourceLocation, top: ResourceLocation): TstairsOuter
fun stairsOuter(name: String, side: ResourceLocation, bottom: ResourceLocation, top: ResourceLocation): Ttorch
torchWall
trapdoorBottom
fun trapdoorBottom(name: String, texture: ResourceLocation): TtrapdoorOpen
fun trapdoorOpen(name: String, texture: ResourceLocation): TtrapdoorOrientableBottom
fun trapdoorOrientableBottom(name: String, texture: ResourceLocation): TtrapdoorOrientableOpen
fun trapdoorOrientableOpen(name: String, texture: ResourceLocation): TtrapdoorOrientableTop
fun trapdoorOrientableTop(name: String, texture: ResourceLocation): TtrapdoorTop
fun trapdoorTop(name: String, texture: ResourceLocation): TwallInventory
fun wallInventory(name: String, wall: ResourceLocation): TwallPost
wallSide
wallSideTall
fun wallSideTall(name: String, wall: ResourceLocation): TwithExistingParent
fun withExistingParent(name: String, parent: ResourceLocation, block: T.() -> Unit = {}): T