Minor code cleanup

This commit is contained in:
tastybento 2019-10-09 19:16:37 -07:00
parent a8ac0eca35
commit e2b0874844
2 changed files with 514 additions and 512 deletions

View File

@ -128,7 +128,6 @@ public class EditSettingsGUI extends CommonGUI
}
@SuppressWarnings("deprecation")
private PanelItem getSettingsButton(Button button)
{
ItemStack icon;

View File

@ -346,15 +346,17 @@ public class NumberGUI
break;
}
default:
break;
}
return itemBuilder.build();
}
// ---------------------------------------------------------------------
// Section: Conversation
// ---------------------------------------------------------------------
// ---------------------------------------------------------------------
// Section: Conversation
// ---------------------------------------------------------------------
/**
@ -402,6 +404,7 @@ public class NumberGUI
* @param input The number the player provided.
* @return The validity of the player's input.
*/
@Override
protected boolean isNumberValid(ConversationContext context, Number input)
{
return input.intValue() >= NumberGUI.this.minValue &&
@ -466,9 +469,9 @@ public class NumberGUI
}
// ---------------------------------------------------------------------
// Section: Enums
// ---------------------------------------------------------------------
// ---------------------------------------------------------------------
// Section: Enums
// ---------------------------------------------------------------------
/**
@ -489,9 +492,9 @@ public class NumberGUI
}
// ---------------------------------------------------------------------
// Section: Variables
// ---------------------------------------------------------------------
// ---------------------------------------------------------------------
// Section: Variables
// ---------------------------------------------------------------------
/**
* This variable stores current GUI consumer.