def write_block_model(self):
        if self.path == "":
            model_path = blocks_model_path
        else:
            model_path = f"{blocks_model_path}/{self.path}"

        write_json(path=model_path,
                   file_name=self.model_name,
                   content=self.encode_full_block_model())
Exemplo n.º 2
0
    def write_slab_models(self):
        if self.path == "":
            model_path = blocks_model_path
        else:
            model_path = f"{blocks_model_path}/{self.path}"

        write_json(path=model_path,
                   file_name=f"{self.model_name}_slab",
                   content=self.encode_slab_bottom_model())
        write_json(path=model_path,
                   file_name=f"{self.model_name}_slab_top",
                   content=self.encode_slab_top_model())
Exemplo n.º 3
0
    def write_wall_models(self):
        if self.path == "":
            model_path = blocks_model_path
        else:
            model_path = f"{blocks_model_path}/{self.path}"

        write_json(path=model_path,
                   file_name=f"{self.model_name}_wall_post",
                   content=self.encode_wall_post_model())
        write_json(path=model_path,
                   file_name=f"{self.model_name}_wall_side",
                   content=self.encode_wall_side_model())
        write_json(path=model_path,
                   file_name=f"{self.model_name}_wall_side_tall",
                   content=self.encode_wall_side_tall_model())
        write_json(path=model_path,
                   file_name=f"{self.model_name}_wall_inventory",
                   content=self.encode_wall_inventory_model())
    def write_stairs_models(self):
        if self.path == "":
            model_path = blocks_model_path
        else:
            model_path = f"{blocks_model_path}/{self.path}"

        write_json(path=model_path,
                   file_name=f"{self.model_name}_stairs",
                   content=self.encode_stairs_model())
        write_json(path=model_path,
                   file_name=f"{self.model_name}_stairs_inner",
                   content=self.encode_inner_stairs_model())
        write_json(path=model_path,
                   file_name=f"{self.model_name}_stairs_outer",
                   content=self.encode_outer_stairs_model())
Exemplo n.º 5
0
 def write_wall_blockstate(self):
     write_json(path=blockstates_model_path,
                file_name=f"{self.model_name}_wall",
                content=self.encode_blockstates())
Exemplo n.º 6
0
 def write_wall_item_model(self):
     write_json(path=block_items_model_path,
                file_name=f"{self.model_name}_wall",
                content=self.encode_wall_item_model())
 def write_block_blockstate(self):
     write_json(path=blockstates_model_path,
                file_name=self.model_name,
                content=self.encode_blockstates())
 def write_block_item_model(self):
     write_json(path=block_items_model_path,
                file_name=self.model_name,
                content=self.encode_block_item_model())