Minor code cleanup
This commit is contained in:
parent
a8ac0eca35
commit
e2b0874844
|
@ -128,7 +128,6 @@ public class EditSettingsGUI extends CommonGUI
|
|||
}
|
||||
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private PanelItem getSettingsButton(Button button)
|
||||
{
|
||||
ItemStack icon;
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue