@@ -44,6 +44,8 @@ private void loadMessages() {
4444 // ==============================================
4545 // Creates an info block with material, name, and description
4646 // ==============================================
47+ // Keep the existing legacy text representation, formatting, and exact-string comparisons.
48+ @ SuppressWarnings ("deprecation" )
4749 public ItemStack createInfoBlock (Material material , String name , String description ) {
4850 ItemStack block = new ItemStack (material );
4951 ItemMeta meta = block .getItemMeta ();
@@ -58,6 +60,8 @@ public ItemStack createInfoBlock(Material material, String name, String descript
5860 // ==============================================
5961 // Creates an info block with material, name, and lore list
6062 // ==============================================
63+ // Keep the existing legacy text representation, formatting, and exact-string comparisons.
64+ @ SuppressWarnings ("deprecation" )
6165 public ItemStack createInfoBlock (Material material , String name , java .util .List <String > lore ) {
6266 ItemStack block = new ItemStack (material );
6367 ItemMeta meta = block .getItemMeta ();
@@ -72,6 +76,8 @@ public ItemStack createInfoBlock(Material material, String name, java.util.List<
7276 // ==============================================
7377 // Updates the incision block
7478 // ==============================================
79+ // Keep the existing legacy text representation, formatting, and exact-string comparisons.
80+ @ SuppressWarnings ("deprecation" )
7581 public void updateIncisionBlock (Inventory menu , UUID playerId , int incisions ) {
7682 Material incisionColor = SurgeryConstants .getIncisionColor (incisions );
7783 ItemStack incisionBlock = createInfoBlock (incisionColor , ChatColor .GOLD + "Incisions" , ChatColor .GRAY + String .valueOf (incisions ));
@@ -81,6 +87,8 @@ public void updateIncisionBlock(Inventory menu, UUID playerId, int incisions) {
8187 // ==============================================
8288 // Updates the temperature block
8389 // ==============================================
90+ // Keep the existing legacy text representation, formatting, and exact-string comparisons.
91+ @ SuppressWarnings ("deprecation" )
8492 public void updateTemperatureBlock (Inventory menu , UUID playerId , double temp ) {
8593 Material tempColor = SurgeryConstants .getTemperatureColor (temp );
8694 String tempDisplay = SurgeryConstants .formatTemperature (temp );
@@ -91,6 +99,8 @@ public void updateTemperatureBlock(Inventory menu, UUID playerId, double temp) {
9199 // ==============================================
92100 // Updates the operation site block
93101 // ==============================================
102+ // Keep the existing legacy text representation, formatting, and exact-string comparisons.
103+ @ SuppressWarnings ("deprecation" )
94104 public void updateOperationSiteBlock (Inventory menu , UUID playerId , String status ) {
95105 Material siteColor = SurgeryConstants .getOperationSiteColor (status );
96106 ItemStack siteBlock = createInfoBlock (siteColor , ChatColor .GOLD + "Operation Site" , ChatColor .GRAY + status );
@@ -100,6 +110,8 @@ public void updateOperationSiteBlock(Inventory menu, UUID playerId, String statu
100110 // ==============================================
101111 // Updates the status block
102112 // ==============================================
113+ // Keep the existing legacy text representation, formatting, and exact-string comparisons.
114+ @ SuppressWarnings ("deprecation" )
103115 public void updateStatusBlock (Inventory menu , UUID playerId , String status ) {
104116 Material statusColor = SurgeryConstants .getStatusColor (status );
105117 ItemStack statusBlock = createInfoBlock (statusColor , ChatColor .GOLD + "Status" , ChatColor .GRAY + status );
@@ -109,6 +121,8 @@ public void updateStatusBlock(Inventory menu, UUID playerId, String status) {
109121 // ==============================================
110122 // Updates the pulse block
111123 // ==============================================
124+ // Keep the existing legacy text representation, formatting, and exact-string comparisons.
125+ @ SuppressWarnings ("deprecation" )
112126 public void updatePulseBlock (Inventory menu , UUID playerId , String pulse ) {
113127 Material pulseColor = SurgeryConstants .getPulseColor (pulse );
114128 ItemStack pulseBlock = createInfoBlock (pulseColor , ChatColor .GOLD + "Pulse" , ChatColor .GRAY + pulse );
@@ -118,6 +132,8 @@ public void updatePulseBlock(Inventory menu, UUID playerId, String pulse) {
118132 // ==============================================
119133 // Updates the diagnosis block
120134 // ==============================================
135+ // Keep the existing legacy text representation, formatting, and exact-string comparisons.
136+ @ SuppressWarnings ("deprecation" )
121137 public void updateDiagnosisBlock (Inventory menu , UUID playerId ) {
122138 String diagnosis = stateManager .getDiagnosis (playerId );
123139 boolean cured = stateManager .isCured (playerId );
@@ -149,6 +165,8 @@ public void updateDiagnosisBlock(Inventory menu, UUID playerId) {
149165 // ==============================================
150166 // Sends a numbered message to the player
151167 // ==============================================
168+ // Keep the existing legacy text representation, formatting, and exact-string comparisons.
169+ @ SuppressWarnings ("deprecation" )
152170 public void sendNumberedMessage (Player player , String message ) {
153171 UUID playerId = player .getUniqueId ();
154172 int moveNumber = stateManager .getMoveCount (playerId ) + 1 ;
@@ -159,13 +177,17 @@ public void sendNumberedMessage(Player player, String message) {
159177 // ==============================================
160178 // Gets a message from messages.yml and translates color codes
161179 // ==============================================
180+ // Keep the existing legacy text representation, formatting, and exact-string comparisons.
181+ @ SuppressWarnings ("deprecation" )
162182 public String getMessage (String path ) {
163183 return ChatColor .translateAlternateColorCodes ('&' , messages .getString (path , "" ));
164184 }
165185
166186 // ==============================================
167187 // Gets a message with a fallback default, translating color codes
168188 // ==============================================
189+ // Keep the existing legacy text representation, formatting, and exact-string comparisons.
190+ @ SuppressWarnings ("deprecation" )
169191 public String getMessage (String path , String def ) {
170192 return ChatColor .translateAlternateColorCodes ('&' , messages .getString (path , def ));
171193 }
0 commit comments