GCPlayerStats stats = GCPlayerStats.get(playerBase);
switch (this.type)
{
case S_UPDATE_SLIMELING_DATA:
Entity entity = player.worldObj.getEntityByID((Integer) this.data.get(0));
if (entity instanceof EntitySlimeling)
{
EntitySlimeling slimeling = (EntitySlimeling) entity;
int subType = (Integer) this.data.get(1);
switch (subType)
{
case 0:
if (player == slimeling.getOwner() && !slimeling.worldObj.isRemote)
{
slimeling.setSittingAI(!slimeling.isSitting());
slimeling.setJumping(false);
slimeling.setPathToEntity(null);
slimeling.setTarget(null);
slimeling.setAttackTarget(null);
}
break;
case 1:
if (player == slimeling.getOwner() && !slimeling.worldObj.isRemote)
{
slimeling.slimelingName = (String) this.data.get(2);
slimeling.setName(slimeling.slimelingName);
}
break;
case 2:
if (player == slimeling.getOwner() && !slimeling.worldObj.isRemote)
{
slimeling.age += 5000;
}
break;
case 3:
if (!slimeling.isInLove() && player == slimeling.getOwner() && !slimeling.worldObj.isRemote)
{
slimeling.func_146082_f(playerBase);
}
break;
case 4:
if (player == slimeling.getOwner() && !slimeling.worldObj.isRemote)
{
slimeling.attackDamage = Math.min(slimeling.attackDamage + 0.1F, 1.0F);
}
break;
case 5:
if (player == slimeling.getOwner() && !slimeling.worldObj.isRemote)
{
slimeling.setHealth(slimeling.getHealth() + 5.0F);
}
break;
case 6:
if (player == slimeling.getOwner() && !slimeling.worldObj.isRemote)
{
MarsUtil.openSlimelingInventory(playerBase, slimeling);
}
break;
}
}
break;
case S_WAKE_PLAYER:
ChunkCoordinates c = playerBase.playerLocation;
if (c != null)
{
EventWakePlayer event = new EventWakePlayer(playerBase, c.posX, c.posY, c.posZ, false, true, true, true);
MinecraftForge.EVENT_BUS.post(event);
playerBase.wakeUpPlayer(false, true, true);
}
break;
case S_UPDATE_ADVANCED_GUI:
TileEntity tile = 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 (tile instanceof TileEntityLaunchController)
{
TileEntityLaunchController launchController = (TileEntityLaunchController) tile;
launchController.setFrequency((Integer) this.data.get(4));
}
break;
case 1:
if (tile instanceof TileEntityLaunchController)
{
TileEntityLaunchController launchController = (TileEntityLaunchController) tile;
launchController.setLaunchDropdownSelection((Integer) this.data.get(4));
}
break;
case 2:
if (tile instanceof TileEntityLaunchController)
{
TileEntityLaunchController launchController = (TileEntityLaunchController) tile;
launchController.setDestinationFrequency((Integer) this.data.get(4));
}
break;
case 3:
if (tile instanceof TileEntityLaunchController)
{
TileEntityLaunchController launchController = (TileEntityLaunchController) tile;
launchController.launchPadRemovalDisabled = (Integer) this.data.get(4) == 1;
}
break;
case 4:
if (tile instanceof TileEntityLaunchController)
{
TileEntityLaunchController launchController = (TileEntityLaunchController) tile;
launchController.setLaunchSchedulingEnabled((Integer) this.data.get(4) == 1);
}
break;
case 5:
if (tile instanceof TileEntityLaunchController)
{
TileEntityLaunchController launchController = (TileEntityLaunchController) tile;
launchController.requiresClientUpdate = true;
}
break;
default:
break;
}
break;
case S_UPDATE_CARGO_ROCKET_STATUS:
Entity entity2 = player.worldObj.getEntityByID((Integer) this.data.get(0));
if (entity2 instanceof EntityCargoRocket)
{
EntityCargoRocket rocket = (EntityCargoRocket) entity2;