Object[] packetReadout = PacketWrapper.readPacketData(data, decodeAs);
TileEntity te = ((EntityPlayer)player).worldObj.getBlockTileEntity((Integer)packetReadout[0], (Integer)packetReadout[1], (Integer)packetReadout[2]);
if(te instanceof TileEntityFactory)
{
TileEntityFactory tef = (TileEntityFactory) te;
tef.rotateDirectlyTo((Integer)packetReadout[3]);
tef.setIsActive((Boolean)packetReadout[4]);
}
}
else if (packetType == Packets.ConveyorDescription) // server -> client; server propagating conveyor color, activity state
{
Class[] decodeAs = { Integer.class, Integer.class, Integer.class, Integer.class, Boolean.class };