public BlockVariation(File file) {
   this.textureFile = file;
   this.relPath = ChiselBlockPorter.INPUT_FOLDER.relativize(file.toPath());
   this.renderType = RenderType.forPath(file.getPath());
   // System.out.println("With suffix chopped is" + this.renderType.chopSuffix(path));
   String[] parts =
       this.renderType.chopSuffix(file.getPath()).split(File.separator + File.separator);
   this.name = parts[parts.length - 1];
   // System.out.println("Variation name "+name);
 }
예제 #2
0
 public BlockData(File file, List<BlockVariation> variations) {
   this.name = file.getName();
   this.variations = variations;
   this.relPath = ChiselBlockPorter.INPUT_FOLDER.relativize(file.toPath());
 }