Browse Source

added amount to item.java

added amount of items to constructor
remotes/origin/Julia
Juliakn66 2 years ago
parent
commit
fed6f0b61c
  1. 4
      src/main/java/org/bitbiome/entities/Item.java

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

@ -3,14 +3,16 @@ package org.bitbiome.entities;
public class Item { public class Item {
public String name; public String name;
public int amount;
public boolean doesDamage; public boolean doesDamage;
public float damage; public float damage;
public Item(String name, boolean doesDamage, float damage) {
public Item(String name, boolean doesDamage, float damage, int amount) {
this.name = name; this.name = name;
this.doesDamage = doesDamage; this.doesDamage = doesDamage;
this.damage = damage; this.damage = damage;
this.amount = amount;
} }
public String getName() { public String getName() {

Loading…
Cancel
Save