Formatting fixes

This commit is contained in:
Sebastian Hartte
2020-07-19 23:50:47 +02:00
parent 4322910614
commit 8d92a51e4f
8 changed files with 25 additions and 31 deletions
@@ -3,8 +3,8 @@ package appeng.client.gui.widgets;
import net.minecraft.client.gui.screen.Screen;
/**
* Indicates that a widget (anything that is in the {@link Screen#children()} list) should receive callbacks every
* tick.
* Indicates that a widget (anything that is in the {@link Screen#children()}
* list) should receive callbacks every tick.
*/
public interface ITickingWidget {
@@ -34,7 +34,7 @@ public class NumberBox extends TextFieldWidget {
private long maxValue;
public NumberBox(final FontRenderer fontRenderer, final int x, final int y, final int width, final int height,
final Class<?> type, LongConsumer changeListener) {
final Class<?> type, LongConsumer changeListener) {
super(fontRenderer, x, y, width, height, "0");
this.setText("0");
setResponder(this::onTextChanged);
@@ -128,7 +128,8 @@ public class NumberBox extends TextFieldWidget {
return true;
}
// Swallow key presses for numbers because they would otherwise trigger the hotbar swapping unintentionally
// Swallow key presses for numbers because they would otherwise trigger the
// hotbar swapping unintentionally
return isFocused() && p_keyPressed_1_ >= '0' && p_keyPressed_1_ <= '9';
}