public class BD1Creator extends Object
| コンストラクタ | 説明 |
|---|---|
BD1Creator() |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
int |
AddBlock(BD1Block block) |
Adds a block to the map.
|
int |
CreateBlock(Vector[] vertex_positions) |
Creates a block.
|
int |
CreateCube(Vector center,
float edge_length) |
Creates a cube.
|
int |
DuplicateBlock(int block_handle) |
Duplicates a block.
|
Set<Integer> |
GetBlockHandles() |
Returns all block handles.
|
int |
RemoveBlock(int block_handle) |
Removes a block.
|
int |
RescaleBlock(int block_handle,
Vector scale) |
Rescales a block.
|
int |
RotateBlock(int block_handle,
Vector rotate) |
Rotates a block.
|
int |
SetBlockTextureID(int block_handle,
int face_index,
int texture_id) |
Sets the texture ID.
|
int |
SetBlockUVs(int block_handle,
int face_index,
float u,
float v) |
Sets the UVs.
|
int |
SetTextureFilename(int texture_id,
String texture_filename) |
|
int |
TranslateBlock(int block_handle,
Vector translate) |
Translates a block.
|
int |
WriteAsBD1(String bd1_filename,
float offset_y) |
Writes out blocks into a BD1 file.
|
public int SetTextureFilename(int texture_id,
String texture_filename)
public int AddBlock(BD1Block block)
block - Blockpublic int DuplicateBlock(int block_handle)
block_handle - Handle of the block to be duplicatedpublic int CreateCube(Vector center, float edge_length)
center - Center positionedge_length - Length of edgespublic int CreateBlock(Vector[] vertex_positions)
vertex_positions - Vertex positionspublic int TranslateBlock(int block_handle,
Vector translate)
block_handle - Block handletranslate - Translation vectorpublic int RotateBlock(int block_handle,
Vector rotate)
block_handle - Block handlerotate - Rotation angles (radian)public int RescaleBlock(int block_handle,
Vector scale)
block_handle - Block handlescale - Scalepublic int SetBlockUVs(int block_handle,
int face_index,
float u,
float v)
block_handle - Block handleface_index - Face indexu - U-coordinatev - V-coordinatepublic int SetBlockTextureID(int block_handle,
int face_index,
int texture_id)
block_handle - Block handleface_index - Face indextexture_id - Texture IDpublic int RemoveBlock(int block_handle)
block_handle - Block handlepublic int WriteAsBD1(String bd1_filename, float offset_y)
bd1_filename - BD1 filenameoffset_y - Y-direction offsetCopyright © 2019. All rights reserved.