From fed6f0b61c227f157e43249603dd04e43bc4b1bd Mon Sep 17 00:00:00 2001 From: Juliakn66 <117075450+Juliakn66@users.noreply.github.com> Date: Fri, 27 Jan 2023 12:54:50 +0100 Subject: [PATCH] added amount to item.java added amount of items to constructor --- src/main/java/org/bitbiome/entities/Item.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/bitbiome/entities/Item.java b/src/main/java/org/bitbiome/entities/Item.java index 2817cd5..be02837 100644 --- a/src/main/java/org/bitbiome/entities/Item.java +++ b/src/main/java/org/bitbiome/entities/Item.java @@ -3,14 +3,16 @@ package org.bitbiome.entities; public class Item { public String name; + public int amount; public boolean doesDamage; 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.doesDamage = doesDamage; this.damage = damage; + this.amount = amount; } public String getName() {