diff options
Diffstat (limited to 'src/main/java/pers/gwyog/gtneioreplugin/util/SmallOre.java')
-rw-r--r-- | src/main/java/pers/gwyog/gtneioreplugin/util/SmallOre.java | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/src/main/java/pers/gwyog/gtneioreplugin/util/SmallOre.java b/src/main/java/pers/gwyog/gtneioreplugin/util/SmallOre.java deleted file mode 100644 index 75a691ad1c..0000000000 --- a/src/main/java/pers/gwyog/gtneioreplugin/util/SmallOre.java +++ /dev/null @@ -1,82 +0,0 @@ -package pers.gwyog.gtneioreplugin.util; - -import static pers.gwyog.gtneioreplugin.util.DimensionHelper.DimNameDisplayed; - -import java.util.Map; - -@SuppressWarnings("unused") -public class SmallOre implements Comparable<SmallOre> { - - private String oreName; - private int oreMeta; - private int amount; - private String height = ""; - private static final int sizeData = 4; // hors dims - - private Map<String, Boolean> dimensions; - - public void setDims(Map<String, Boolean> dims) { - this.dimensions = dims; - } - - public String getOreName() { - return this.oreName; - } - - public void setOreName(String s) { - this.oreName = s; - } - - public int getOreMeta() { - return this.oreMeta; - } - - public void setOreMeta(int meta) { - this.oreMeta = meta; - } - - public String getHeight() { - return this.height; - } - - public void setHeight(String s) { - this.height = s; - } - - public void setAmount(int i) { - this.amount = i; - } - - public int getAmount() { - return this.amount; - } - - public static String getCsvHeader() { - String[] headers = new String[sizeData + DimNameDisplayed.length]; - headers[0] = "Ore Name"; - headers[1] = "Block Meta"; - headers[2] = "Height"; - headers[3] = "Amount Per Chunk"; - for (int i = 0; i < DimNameDisplayed.length; i++) { - headers[sizeData + i] = DimensionHelper.getFullName(DimNameDisplayed[i]); - } - return String.join(",", headers); - } - - public String getCsvEntry() { - String[] values = new String[sizeData + DimNameDisplayed.length]; - values[0] = oreName; - values[1] = Integer.toString(oreMeta); - values[2] = getHeight(); - values[3] = Integer.toString(amount); - for (int i = 0; i < DimNameDisplayed.length; i++) { - values[sizeData + i] = Boolean.toString(dimensions.getOrDefault(DimNameDisplayed[i], false)); - } - return String.join(",", values); - } - - @Override - public int compareTo(SmallOre other) { - return oreName.compareTo(other.oreName); - } -} |