From cf236d6185d953998f19d8dde9c6771bd51371c2 Mon Sep 17 00:00:00 2001 From: fzzyhmstrs Date: Fri, 19 Apr 2024 09:40:05 -0400 Subject: [PATCH] Update 9.0.3, adding default values to the stub "Stats" classes in IMeleeWeaponID, IRangedWeaponID, and IShieldID --- gradle.properties | 2 +- .../chronosacaria/mcdw/enums/IMeleeWeaponID.java | 12 ++++++------ .../chronosacaria/mcdw/enums/IRangedWeaponID.java | 14 +++++++------- .../java/chronosacaria/mcdw/enums/IShieldID.java | 8 ++++---- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/gradle.properties b/gradle.properties index f4cf79d3..6e0e3af1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G loader_version=0.14.21 # Mod Properties - mod_version=9.0.2 + mod_version=9.0.3 maven_group=chronosacaria archives_base_name=mcdw diff --git a/src/main/java/chronosacaria/mcdw/enums/IMeleeWeaponID.java b/src/main/java/chronosacaria/mcdw/enums/IMeleeWeaponID.java index ee024471..48ae277a 100644 --- a/src/main/java/chronosacaria/mcdw/enums/IMeleeWeaponID.java +++ b/src/main/java/chronosacaria/mcdw/enums/IMeleeWeaponID.java @@ -25,11 +25,11 @@ static IMeleeWeaponID[] values() { MeleeStats getMeleeStats(); class MeleeStats { - boolean isEnabled; - String material; - int damage; - float attackSpeed; - String[] repairIngredient; + boolean isEnabled = true; + String material = "iron"; + int damage = 0; + float attackSpeed = -3f; + String[] repairIngredient = new String[]{}; public MeleeStats meleeStats(boolean isEnabled, String material, int damage, float attackSpeed, String[] repairIngredient) { this.isEnabled = isEnabled; @@ -40,4 +40,4 @@ public MeleeStats meleeStats(boolean isEnabled, String material, int damage, flo return this; } } -} +} \ No newline at end of file diff --git a/src/main/java/chronosacaria/mcdw/enums/IRangedWeaponID.java b/src/main/java/chronosacaria/mcdw/enums/IRangedWeaponID.java index 6aae7616..cbdb63cf 100644 --- a/src/main/java/chronosacaria/mcdw/enums/IRangedWeaponID.java +++ b/src/main/java/chronosacaria/mcdw/enums/IRangedWeaponID.java @@ -29,12 +29,12 @@ static IRangedWeaponID[] values() { RangedStats getRangedStats(); class RangedStats { - public boolean isEnabled; - public String material; - public double projectileDamage; - public int drawSpeed; - public float range; - String[] repairIngredient; + public boolean isEnabled = true; + public String material = "iron"; + public double projectileDamage = 0.0; + public int drawSpeed = 20; + public float range = 16f; + String[] repairIngredient = new String[]{}; public RangedStats rangedStats(boolean isEnabled, String material, double projectileDamage, int drawSpeed, float range, String[] repairIngredient) { this.isEnabled = isEnabled; @@ -50,4 +50,4 @@ public RangedStats rangedStats(boolean isEnabled, String material, double projec return this; } } -} +} \ No newline at end of file diff --git a/src/main/java/chronosacaria/mcdw/enums/IShieldID.java b/src/main/java/chronosacaria/mcdw/enums/IShieldID.java index c14437df..abf8cfd8 100644 --- a/src/main/java/chronosacaria/mcdw/enums/IShieldID.java +++ b/src/main/java/chronosacaria/mcdw/enums/IShieldID.java @@ -27,9 +27,9 @@ static IShieldID[] values() { ShieldStats getShieldStats(); class ShieldStats { - boolean isEnabled; - String material; - String[] repairIngredient; + boolean isEnabled = true; + String material = "diamond"; + String[] repairIngredient = new String[]{}; public ShieldStats shieldStats(boolean isEnabled, String material, String[] repairIngredient) { this.isEnabled = isEnabled; @@ -38,4 +38,4 @@ public ShieldStats shieldStats(boolean isEnabled, String material, String[] repa return this; } } -} +} \ No newline at end of file