Override override override!

This commit is contained in:
Electroblob77
2020-03-17 23:22:54 +00:00
parent 85b49b330a
commit 7f5786c28c
@@ -32,9 +32,7 @@ public class GuiSpellBook extends GuiScreen {
this.spell = Spell.byMetadata(stack.getItemDamage()); this.spell = Spell.byMetadata(stack.getItemDamage());
} }
/** @Override
* Draws the screen and all the components in it.
*/
public void drawScreen(int par1, int par2, float par3){ public void drawScreen(int par1, int par2, float par3){
int xPos = this.width / 2 - xSize / 2; int xPos = this.width / 2 - xSize / 2;
@@ -95,6 +93,7 @@ public class GuiSpellBook extends GuiScreen {
} }
} }
@Override
public void initGui(){ public void initGui(){
super.initGui(); super.initGui();
Keyboard.enableRepeatEvents(true); Keyboard.enableRepeatEvents(true);
@@ -103,6 +102,7 @@ public class GuiSpellBook extends GuiScreen {
this.mc.getSoundHandler().playSound(PositionedSoundRecord.getMasterRecord(WizardrySounds.MISC_BOOK_OPEN, 1)); this.mc.getSoundHandler().playSound(PositionedSoundRecord.getMasterRecord(WizardrySounds.MISC_BOOK_OPEN, 1));
} }
@Override
public void onGuiClosed(){ public void onGuiClosed(){
super.onGuiClosed(); super.onGuiClosed();
Keyboard.enableRepeatEvents(false); Keyboard.enableRepeatEvents(false);