public GuiBrainLogicBlock(TileEntityBlockBrainLogicBlock tileentityblockbrainlogicblock) { super(new ContainerBlockBrainLightSensor()); username = BrainStone.proxy.getPlayer().username; tileentity = tileentityblockbrainlogicblock; tileentity.logIn(username); help = false; scrollbarPos = 0; mousePos = 1; movingPin = -1; movingPinOffsetX = 0; movingPinOffsetY = 0; swappedPin = -1; mousePosX = 0; mousePosY = 0; direction = TileEntityBlockBrainLogicBlock.guiDirection; localToBlockDirections = new byte[] { 0, 1, (byte) (2 + direction), (byte) (2 + ((direction + 3) & 3)), (byte) (2 + ((direction + 2) & 3)), (byte) (2 + ((direction + 1) & 3)) }; }
private void closeHelpGui() { this.click(); help = false; tileentity.logIn(username); }