Перейти к основному содержанию

TileRenderer

Index

Type Aliases

BoxVertexes

BoxVertexes: [number, number, number, number, number, number]

Variables

constdata

data: {}

Type declaration

    Functions

    createBlockModel

    • createBlockModel(id: number, data: number, boxes: BoxVertexes[]): ICRender.Model
    • Parameters

      Returns ICRender.Model

    getBlockRotation

    • getBlockRotation(player: number, hasVertical?: boolean): number
    • Parameters

      • player: number
      • optionalhasVertical: boolean

      Returns number

    getCropModel

    • getCropModel(texture: [string, number]): ICRender.Model
    • Parameters

      • texture: [string, number]

      Returns ICRender.Model

    getRenderModel

    • getRenderModel(id: number, data: string | number): ICRender.Model
    • Parameters

      • id: number
      • data: string | number

      Returns ICRender.Model

    getRotatedBoxVertexes

    mapAtCoords

    • mapAtCoords(x: number, y: number, z: number, id: number, data: string | number): void
    • Parameters

      • x: number
      • y: number
      • z: number
      • id: number
      • data: string | number

      Returns void

    registerFullRotationModel

    • registerFullRotationModel(id: number, data: number, texture: [string, number][]): void
    • @deprecated

      use registerModelWithRotation instead


      Parameters

      • id: number
      • data: number
      • texture: [string, number][]

      Returns void

    registerModelWithRotation

    • registerModelWithRotation(id: number, data: number, texture: [string, number][], hasVertical?: boolean): void
    • Parameters

      • id: number
      • data: number
      • texture: [string, number][]
      • optionalhasVertical: boolean

      Returns void

    registerRenderModel

    • registerRenderModel(id: number, data: number, texture: [string, number][]): void
    • Parameters

      • id: number
      • data: number
      • texture: [string, number][]

      Returns void

    registerRotationModel

    • registerRotationModel(id: number, data: number, texture: [string, number][]): void
    • @deprecated

      use registerModelWithRotation instead


      Parameters

      • id: number
      • data: number
      • texture: [string, number][]

      Returns void

    setCollisionShape

    • setCollisionShape(id: number, data: number, boxes: BoxVertexes[]): void
    • Parameters

      Returns void

    setEmptyCollisionShape

    • setEmptyCollisionShape(id: number): void
    • Parameters

      • id: number

      Returns void

    setHandAndUiModel

    • setHandAndUiModel(id: number, data: number, texture: [string, number][]): void
    • Parameters

      • id: number
      • data: number
      • texture: [string, number][]

      Returns void

    setRotationFunction

    • setRotationFunction(id: string | number, hasVertical?: boolean, placeSound?: string): void
    • Parameters

      • id: string | number
      • optionalhasVertical: boolean
      • optionalplaceSound: string

      Returns void

    setRotationPlaceFunction

    • setRotationPlaceFunction(id: string | number, hasVertical?: boolean, placeSound?: string): void
    • @deprecated

      use setRotationFunction instead


      Parameters

      • id: string | number
      • optionalhasVertical: boolean
      • optionalplaceSound: string

      Returns void

    setStandardModel

    • setStandardModel(id: number, data: number, texture: [string, number][]): void
    • Parameters

      • id: number
      • data: number
      • texture: [string, number][]

      Returns void

    setStandardModelWithRotation

    • setStandardModelWithRotation(id: number, data: number, texture: [string, number][], hasVertical?: boolean): void
    • Parameters

      • id: number
      • data: number
      • texture: [string, number][]
      • optionalhasVertical: boolean

      Returns void

    setStandartModel

    • setStandartModel(id: number, texture: [string, number][], data?: number): void
    • @deprecated

      use setStandardModel instead


      Parameters

      • id: number
      • texture: [string, number][]
      • optionaldata: number

      Returns void

    setStaticModel

    • setStaticModel(id: number, data: number, boxes: BoxVertexes[]): void
    • Parameters

      Returns void

    setStaticModelWithRotation

    • setStaticModelWithRotation(id: number, boxes: BoxVertexes[]): void

    setupWireModel

    • setupWireModel(id: number, data: number, width: number, groupName: string, preventSelfAdd?: boolean): void
    • Parameters

      • id: number
      • data: number
      • width: number
      • groupName: string
      • optionalpreventSelfAdd: boolean

      Returns void