XCraftBots/src/main/java/xcraftbot/xcraftobjects/Material.java

49 lines
1.2 KiB
Java

package xcraftbot.xcraftobjects;
public class Material {
//Attribute
private int amount;
private String name;
private int tier;
public static final String[] HOLZ = {"Nadelholz", "Hartholz", "Steineiche", "Düsterholz"};
public static final String[] METALL = {"Bronze", "Eisen", "Mithril", "Adamant"};
public static final String[] LEDER = {"Wildleder", "Alpha-Leder", "Mythenleder", "Drachenleder"};
public static final String[] PELZ = {"Wolfspelz", "Tigerpelz", "Löwenpelz", "Schneetigerpelz"};
//Konstruktor
public Material(int amount, String name, int tier) {
this.amount = amount;
this.name = name;
this.tier = tier;
}
//Getter und Setter
public int getAmount() {
return amount;
}
public void setAmount(int amount) {
this.amount = amount;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getTier() {
return tier;
}
public void setTier(int tier) {
this.tier = tier;
}
//ToString
@Override
public String toString() {
return "Material{" + "amount=" + amount + ", name=" + name + ", tier=" + tier + '}';
}
}