From ce6247312e943b4e1d1eae3a62594745aef06ca1 Mon Sep 17 00:00:00 2001 From: David Hermann Date: Wed, 1 Feb 2023 19:43:06 +0100 Subject: [PATCH] Update Item.java Changed the privacy of the variables Added empty constructor for unit tests --- src/main/java/org/bitbiome/entities/Item.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/bitbiome/entities/Item.java b/src/main/java/org/bitbiome/entities/Item.java index 2817cd5..0ded3ff 100644 --- a/src/main/java/org/bitbiome/entities/Item.java +++ b/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; }