API reference Obsidian.API.Client
BlockModelFace record
A face drawn in a block, like a face of a block model's element: the Face side of the box from From to To, in sixteenths of a block, with its texture mapped like a model face without uv.
public sealed record BlockModelFace : IEquatable<BlockModelFace>
In Obsidian.API.Client.
Constructors
BlockModelFace(VectorF, VectorF, BlockFace, string)
public BlockModelFace(VectorF From, VectorF To, BlockFace Face, string Texture);A face drawn in a block, like a face of a block model's element: the Face side of the box from From to To, in sixteenths of a block, with its texture mapped like a model face without uv.
Parameters
From- The box's lowest corner, in sixteenths of a block.
To- The box's highest corner, in sixteenths of a block.
Face- The side of the box drawn.
Texture- A block texture, like
minecraft:block/stoneorexamplemod:block/cable.
Properties
CullFace
public BlockFace? CullFace { get; init; }The side of the block whose neighbour hides the face when it's opaque, or null to always draw it.
Face
public BlockFace Face { get; init; }The side of the box drawn.
From
public VectorF From { get; init; }The box's lowest corner, in sixteenths of a block.
LightEmission
public int LightEmission { get; init; }The light level, from 0 to 15, the face is lit with at least, like a model element's light_emission: 15 for a face that glows in the dark. It lights the face alone, not the blocks around it.
Shade
public bool Shade { get; init; }Whether the face is shaded by its direction, like a model element's shade.
Texture
public string Texture { get; init; }A block texture, like minecraft:block/stone or examplemod:block/cable.
TintIndex
public int TintIndex { get; init; }The face's tint index, which the block's tint (see IClientRegistry.RegisterBlockTint) colours if it's 0 or more.
To
public VectorF To { get; init; }The box's highest corner, in sixteenths of a block.