Пример #1
0
 /// <summary>
 /// Sets the texture to use for the given block face.
 /// </summary>
 /// <param name="face">The face index.</param>
 /// <param name="texture">The texture.</param>
 /// <returns>This builder.</returns>
 public BlockBuilder Texture(int face, IBlockTexture texture)
 {
     m_FaceTextures[face] = texture;
     return(this);
 }
Пример #2
0
 /// <summary>
 /// Creates a new block face.
 /// </summary>
 /// <param name="side">The side of the block this face is on.</param>
 /// <param name="rotation">The texture rotation for this block face.</param>
 /// <param name="texture">The texture for this block face.</param>
 internal BlockFace(int side, FaceRotation rotation, IBlockTexture texture)
 {
     Side     = side;
     Rotation = rotation;
     Texture  = texture;
 }