From 31aea13df574e525fb44d7732348e1b0f7adbebe Mon Sep 17 00:00:00 2001 From: Max Gerbeth Date: Mon, 9 Jan 2023 16:50:23 +0100 Subject: [PATCH] Constructor in Item.java --- src/main/java/org/bitbiome/shop/Item.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/bitbiome/shop/Item.java b/src/main/java/org/bitbiome/shop/Item.java index ffdca21..f725bbe 100644 --- a/src/main/java/org/bitbiome/shop/Item.java +++ b/src/main/java/org/bitbiome/shop/Item.java @@ -1,7 +1,16 @@ package org.bitbiome.shop; public class Item { - public Item(){ + public String name; + public String damage; + public boolean crafting; + public int durability; + public Item(String name, String damage, boolean crafting, int durability){ + this.name = name; + this.damage = damage; + this.crafting = crafting; + this.durability = durability; } -} + +} \ No newline at end of file