From 889ffb52dc8277ddc92e320e12183ab0fd707baf Mon Sep 17 00:00:00 2001 From: ah-OOG-ah <75745146+ah-OOG-ah@users.noreply.github.com> Date: Sun, 12 Jan 2025 12:30:36 -0500 Subject: [PATCH] Update ModelDisplay.java --- .../client/model/json/ModelDisplay.java | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/main/java/com/gtnewhorizon/gtnhlib/client/model/json/ModelDisplay.java b/src/main/java/com/gtnewhorizon/gtnhlib/client/model/json/ModelDisplay.java index febe6400..d1a8ae77 100644 --- a/src/main/java/com/gtnewhorizon/gtnhlib/client/model/json/ModelDisplay.java +++ b/src/main/java/com/gtnewhorizon/gtnhlib/client/model/json/ModelDisplay.java @@ -22,25 +22,25 @@ public class ModelDisplay { public enum Position { - thirdperson_righthand, - thirdperson_lefthand, - firstperson_righthand, - firstperson_lefthand, - gui, - head, - ground, - fixed; + THIRDPERSON_RIGHTHAND, + THIRDPERSON_LEFTHAND, + FIRSTPERSON_RIGHTHAND, + FIRSTPERSON_LEFTHAND, + GUI, // inventory + HEAD, + GROUND, // dropped item I think + FIXED; // item frames public static Position getByName(String name) { return switch (name) { - case "thirdperson_righthand" -> thirdperson_righthand; - case "thirdperson_lefthand" -> thirdperson_lefthand; - case "firstperson_righthand" -> firstperson_righthand; - case "firstperson_lefthand" -> firstperson_lefthand; - case "gui" -> gui; - case "head" -> head; - case "ground" -> ground; - case "fixed" -> fixed; + case "thirdperson_righthand" -> THIRDPERSON_RIGHTHAND; + case "thirdperson_lefthand" -> THIRDPERSON_LEFTHAND; + case "firstperson_righthand" -> FIRSTPERSON_RIGHTHAND; + case "firstperson_lefthand" -> FIRSTPERSON_LEFTHAND; + case "gui" -> GUI; + case "head" -> HEAD; + case "ground" -> GROUND; + case "fixed" -> FIXED; default -> null; }; }