mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-24 09:04:49 +00:00
Turn inspections up to 11
OK, so let's get this out of the way, there's some actual changes mixed in here too. I'm really sorry: - Turtles can now not be renamed with unnamed item tags (previously it would clear the name, this seemed a little unideal). - commands.getBlock(s)Data will also include NBT. Now, onto the horror story which is these inspection changes: - Make a lot of methods static - Typo fixes - Make utility classes final + private constructor - Lots of reformatting (ifs -> ternary, invert control flow, etc...) - ??? - Profit! I'm so going to regret this - can pretty much guarantee this is going to break something.
This commit is contained in:
@@ -44,12 +44,6 @@ public class GuiPrintout extends GuiContainer
|
||||
m_book = ItemPrintout.getType( container.getStack() ) == ItemPrintout.Type.Book;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean doesGuiPauseGame()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void keyTyped( char c, int k ) throws IOException
|
||||
{
|
||||
@@ -80,7 +74,7 @@ public class GuiPrintout extends GuiContainer
|
||||
}
|
||||
else if( mouseWheelChange > 0 )
|
||||
{
|
||||
// Scroll down goes to the next page
|
||||
// Scroll down goes to the previous page
|
||||
if( m_page > 0 ) m_page--;
|
||||
}
|
||||
}
|
||||
@@ -99,9 +93,9 @@ public class GuiPrintout extends GuiContainer
|
||||
public void drawScreen( int mouseX, int mouseY, float partialTicks )
|
||||
{
|
||||
// We must take the background further back in order to not overlap with our printed pages.
|
||||
zLevel = zLevel - 1;
|
||||
zLevel--;
|
||||
drawDefaultBackground();
|
||||
zLevel = zLevel + 1;
|
||||
zLevel++;
|
||||
|
||||
super.drawScreen( mouseX, mouseY, partialTicks );
|
||||
renderHoveredToolTip( mouseX, mouseY );
|
||||
|
||||
Reference in New Issue
Block a user