Browse Source

Created item class

remotes/origin/locations
David Hermann 2 years ago
parent
commit
666fa70a52
  1. 40
      src/main/java/org/bitbiome/classes/Item.java

40
src/main/java/org/bitbiome/classes/Item.java

@ -0,0 +1,40 @@
package org.bitbiome.classes;
public class Item {
public String name;
public boolean doesDamage;
public float damage;
public Item(String name, boolean doesDamage, float damage) {
this.name = name;
this.doesDamage = doesDamage;
this.damage = damage;
}
public String getName() {
return name;
}
public float getDamage() {
return damage;
}
public boolean doesDamage() {
return doesDamage;
}
public void setName(String name) {
this.name = name;
}
public void setDamage(float damage) {
this.damage = damage;
}
public void changeDoesDamage(boolean doesDamage) {
this.doesDamage = doesDamage;
}
}
Loading…
Cancel
Save