Skip to content

common • net.kernelpanicsoft.archie.data.client.model • AModelBuilder

AModelBuilder


open class AModelBuilder<T : AModelBuilder<T>>(val location: ResourceLocation) : AModelFile

Inheritors

Constructors

AModelBuilder

constructor(location: ResourceLocation)

Types

Companion


object Companion

ElementBuilder


inner class ElementBuilder

FaceRotation


PlatformBlockElement


class PlatformBlockElement(from: Vector3f, to: Vector3f, faces: Map<Direction, BlockElementFace>, rotation: BlockElementRotation?, shade: Boolean, val faceData: AModelBuilder.PlatformFaceData) : BlockElement

PlatformBlockElementFace


class PlatformBlockElementFace(cullForDirection: Direction?, tintIndex: Int, texture: String, uv: BlockFaceUV, val faceData: AModelBuilder.PlatformFaceData) : BlockElementFace

PlatformFaceData


sealed class PlatformFaceData

PlatformItemTransform


class PlatformItemTransform(rotation: Vector3f, translation: Vector3f, scale: Vector3f, rightRotation: Vector3f)

RootTransformsBuilder


TransformsBuilder


inner class TransformsBuilder

Properties

location


val location: ResourceLocation

Functions

ao


fun ao(ao: Boolean): T

customLoader


fun <L : ACustomLoaderBuilder<T>?> customLoader(customLoaderFactory: Function<T, L>): L

element



getElementCount


{@return the number of elements in this model builder}

guiLight


fun guiLight(light: BlockModel.GuiLight?): T

invoke


operator fun invoke(block: AModelBuilder<T>.() -> Unit): AModelBuilder<T>

parent


fun parent(parent: AModelFile): T

renderType


fun renderType(renderType: String): T

fun renderType(renderType: ResourceLocation): T

rootTransforms


texture


fun texture(key: String, texture: String): T

fun texture(key: String, texture: ResourceLocation): T

toJson


open fun toJson(): JsonObject

toString


open override fun toString(): String

transforms