Skip to content

Class BlockModelFactory

🏭 Constructors

constructor

ts
new BlockModelFactory(textureManager: TextureManager, option: Object= {}): BlockModelFactory

Parameters

  • textureManager: TextureManager
  • option: Object

Return Type

  • BlockModelFactory

Defined in: packages/model/block.ts:167

🏷️ Properties

cachedMaterial private

ts
cachedMaterial: Record<string, Material> = {}

Defined in: packages/model/block.ts:165

option readonly

ts
option: Object = {}

Defined in: packages/model/block.ts:167

textureManager readonly

ts
textureManager: TextureManager

Defined in: packages/model/block.ts:167

TRANSPARENT_MATERIAL static

ts
TRANSPARENT_MATERIAL: MeshBasicMaterial = ...

Defined in: packages/model/block.ts:163

🔧 Methods

getObject

ts
getObject(model: Resolved, options: Object= {}, fix: number= 0.001): BlockModelObject

Get threejs Object3D for that block model.

Parameters

  • model: Resolved
  • options: Object
  • fix: number

Return Type

  • BlockModelObject

Defined in: packages/model/block.ts:172