From f85070abdc36ca8a3c0cdec0a7d998f0c47b35fb Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Sat, 3 Jun 2023 15:36:00 -0400 Subject: [PATCH] Make subfield & drop classes final --- .../java/emu/grasscutter/data/server/DropSubfieldMapping.java | 2 +- .../emu/grasscutter/data/server/DropTableExcelConfigData.java | 4 ++-- .../java/emu/grasscutter/data/server/SubfieldMapping.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/emu/grasscutter/data/server/DropSubfieldMapping.java b/src/main/java/emu/grasscutter/data/server/DropSubfieldMapping.java index 6ecdc42ad..c0fd31f62 100644 --- a/src/main/java/emu/grasscutter/data/server/DropSubfieldMapping.java +++ b/src/main/java/emu/grasscutter/data/server/DropSubfieldMapping.java @@ -3,7 +3,7 @@ package emu.grasscutter.data.server; import lombok.Data; @Data -public class DropSubfieldMapping { +public final class DropSubfieldMapping { private int dropId; private int levelLimit; private int itemId; diff --git a/src/main/java/emu/grasscutter/data/server/DropTableExcelConfigData.java b/src/main/java/emu/grasscutter/data/server/DropTableExcelConfigData.java index b88017a5d..72507692a 100644 --- a/src/main/java/emu/grasscutter/data/server/DropTableExcelConfigData.java +++ b/src/main/java/emu/grasscutter/data/server/DropTableExcelConfigData.java @@ -3,7 +3,7 @@ package emu.grasscutter.data.server; import lombok.Data; @Data -public class DropTableExcelConfigData { +public final class DropTableExcelConfigData { private int id; private int randomType; private int dropLevel; @@ -16,7 +16,7 @@ public class DropTableExcelConfigData { private int activityLimit; @Data - public class DropVectorEntry { + public static class DropVectorEntry { private int itemId; private String countRange; private int weight; diff --git a/src/main/java/emu/grasscutter/data/server/SubfieldMapping.java b/src/main/java/emu/grasscutter/data/server/SubfieldMapping.java index 0a4afe1a4..606396311 100644 --- a/src/main/java/emu/grasscutter/data/server/SubfieldMapping.java +++ b/src/main/java/emu/grasscutter/data/server/SubfieldMapping.java @@ -3,12 +3,12 @@ package emu.grasscutter.data.server; import lombok.Data; @Data -public class SubfieldMapping { +public final class SubfieldMapping { private int entityId; private SubfieldMappingEntry[] subfields; @Data - public class SubfieldMappingEntry { + public static class SubfieldMappingEntry { private String subfieldName; private int drop_id; }