mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +01:00
36 lines
822 B
Java
36 lines
822 B
Java
package net.minestom.codegen;
|
|
|
|
import java.io.File;
|
|
|
|
public class PrismarinePaths {
|
|
|
|
private String blocks;
|
|
private String biomes;
|
|
private String effects;
|
|
private String items;
|
|
private String recipes;
|
|
private String instruments;
|
|
private String materials;
|
|
private String entities;
|
|
private String protocol;
|
|
private String windows;
|
|
private String version;
|
|
private String language;
|
|
|
|
public File getBlockFile() {
|
|
return getFile(blocks, "blocks");
|
|
}
|
|
|
|
public File getItemsFile() {
|
|
return getFile(items, "items");
|
|
}
|
|
|
|
public File getBiomesFile() {
|
|
return getFile(biomes, "biomes");
|
|
}
|
|
|
|
public File getFile(String path, String type) {
|
|
return new File("prismarine-minecraft-data/data/" + path + "/" + type + ".json");
|
|
}
|
|
}
|