From 666fa70a5241645a56c6e67e7da4edae2eae9aed Mon Sep 17 00:00:00 2001 From: David Hermann Date: Wed, 18 Jan 2023 18:08:06 +0100 Subject: [PATCH] Created item class --- src/main/java/org/bitbiome/classes/Item.java | 40 ++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/main/java/org/bitbiome/classes/Item.java diff --git a/src/main/java/org/bitbiome/classes/Item.java b/src/main/java/org/bitbiome/classes/Item.java new file mode 100644 index 0000000..4230728 --- /dev/null +++ b/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; + } + +}