Browse Source

Update Item.java

Changed the privacy of the variables
Added empty constructor for unit tests
remotes/origin/develop
David Hermann 2 years ago
parent
commit
ce6247312e
  1. 10
      src/main/java/org/bitbiome/entities/Item.java

10
src/main/java/org/bitbiome/entities/Item.java

@ -2,9 +2,9 @@ package org.bitbiome.entities;
public class Item {
public String name;
public boolean doesDamage;
public float damage;
private String name;
private boolean doesDamage;
private float damage;
public Item(String name, boolean doesDamage, float damage) {
@ -13,6 +13,10 @@ public class Item {
this.damage = damage;
}
public Item() {
}
public String getName() {
return name;
}

Loading…
Cancel
Save