mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-10-23 01:47:38 +00:00
A whole bunch of refomatting
- Remove redundant constructors and super calls - Standardise naming of texture fields - Always use postfix notations for loops - Cleanup several peripheral classes
This commit is contained in:
@@ -14,7 +14,7 @@ import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class GuiPrinter extends GuiContainer
|
||||
{
|
||||
private static final ResourceLocation background = new ResourceLocation( "computercraft", "textures/gui/printer.png" );
|
||||
private static final ResourceLocation BACKGROUND = new ResourceLocation( "computercraft", "textures/gui/printer.png" );
|
||||
|
||||
private final ContainerPrinter m_container;
|
||||
|
||||
@@ -36,7 +36,7 @@ public class GuiPrinter extends GuiContainer
|
||||
protected void drawGuiContainerBackgroundLayer( float f, int i, int j )
|
||||
{
|
||||
GlStateManager.color( 1.0F, 1.0F, 1.0F, 1.0F );
|
||||
this.mc.getTextureManager().bindTexture( background );
|
||||
this.mc.getTextureManager().bindTexture( BACKGROUND );
|
||||
int startX = (width - xSize) / 2;
|
||||
int startY = (height - ySize) / 2;
|
||||
drawTexturedModalRect( startX, startY, 0, 0, xSize, ySize );
|
||||
|
Reference in New Issue
Block a user