switch ((Integer) this.data.get(0))
{
case 0:
if (tile1 instanceof TileEntityAirLockController)
{
TileEntityAirLockController airlockController = (TileEntityAirLockController) tile1;
airlockController.redstoneActivation = (Integer) this.data.get(4) == 1;
}
break;
case 1:
if (tile1 instanceof TileEntityAirLockController)
{
TileEntityAirLockController airlockController = (TileEntityAirLockController) tile1;
airlockController.playerDistanceActivation = (Integer) this.data.get(4) == 1;
}
break;
case 2:
if (tile1 instanceof TileEntityAirLockController)
{
TileEntityAirLockController airlockController = (TileEntityAirLockController) tile1;
airlockController.playerDistanceSelection = (Integer) this.data.get(4);
}
break;
case 3:
if (tile1 instanceof TileEntityAirLockController)
{
TileEntityAirLockController airlockController = (TileEntityAirLockController) tile1;
airlockController.playerNameMatches = (Integer) this.data.get(4) == 1;
}
break;
case 4:
if (tile1 instanceof TileEntityAirLockController)
{
TileEntityAirLockController airlockController = (TileEntityAirLockController) tile1;
airlockController.invertSelection = (Integer) this.data.get(4) == 1;
}
break;
case 5:
if (tile1 instanceof TileEntityAirLockController)
{
TileEntityAirLockController airlockController = (TileEntityAirLockController) tile1;
airlockController.lastHorizontalModeEnabled = airlockController.horizontalModeEnabled;
airlockController.horizontalModeEnabled = (Integer) this.data.get(4) == 1;
}
break;
case 6:
if (tile1 instanceof IBubbleProvider)
{
IBubbleProvider distributor = (IBubbleProvider) tile1;
distributor.setBubbleVisible((Integer) this.data.get(4) == 1);
}
break;
default:
break;
}
break;
case S_ON_ADVANCED_GUI_CLICKED_STRING:
TileEntity tile2 = player.worldObj.getTileEntity((Integer) this.data.get(1), (Integer) this.data.get(2), (Integer) this.data.get(3));
switch ((Integer) this.data.get(0))
{
case 0:
if (tile2 instanceof TileEntityAirLockController)
{
TileEntityAirLockController airlockController = (TileEntityAirLockController) tile2;
airlockController.playerToOpenFor = (String) this.data.get(4);
}
break;
default:
break;